Trigger In/Out
The emulation header is capable of producing an output pulse for external triggering and detecting an input pulse for internal triggering.
Trigger In/Out Hardware
Pins on the emulation header may be used for Trigger In/Out. Pin functions are labeled on the board silkscreen, namely:
- GND – ground
- TRIG IN – used for Trigger In
- TRIG OUT – used for Trigger Out
Trigger In Operation
A pulse on the Trigger In (TRIG IN) pin can be used to generate a trigger condition, halt, and/or trigger out signal. Set up Trigger In by selecting Window > Debugging > Triggers.
Selection | Description |
Polarity | Trigger-in pin pulse polarity: Positive: a positive-going pulse Negative: a negative-going pulse |
Noise Reduction Filter | Reduce the noise on the trigger-in pin using a filter, which helps mitigate spurious triggers from halting code. Enable or disable this feature. |
Trigger Trace | Trigger trace when a pulse is received on the trigger-in pin. Enable or disable this feature. |
An event breakpoint can be set up to break when a Trigger In pulse is detected. See the "Enhanced Event Breakpoints" page.
Trigger Out Operation
A pulse can be output on the Trigger Out (TRIG OUT) pin based on the setting of breakpoint types:
- Line
- Data or Address (see Section 2.6 “Hardware Address/Data Breakpoints”)
- Event (see the "Enhanced Event Breakpoints" page).
The breakpoint may be set up so that the pulse is emitted without halting device execution.
Set up Trigger Out by selecting Window > Debugging > Triggers.
Selection | Description |
Polarity | Trigger-out pin pulse polarity: Positive: a positive-going pulse Negative: a negative-going pulse |
Slew Rate Limiting | Limit the slew rate on the trigger out pulse. Enable: slew rate is slow and limited Disable: slew rate is as fast as possible |
One Shot | The trigger out pulse duration is: Enable: a fixed width, regardless of MCU operating frequency Disable: the length of the event itself, which is MCU frequency-dependent |
Force Trigger Out | Click this button to force a trigger out pulse. |
An example of using trigger out can be found on the "Trigger Out Example" page.