Trigger In/Out

Last modified by Microchip on 2023/12/22 14:03

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.

SelectionDescription
PolarityTrigger-in pin pulse polarity:
Positive: a positive-going pulse
Negative: a negative-going pulse
Noise Reduction FilterReduce the noise on the trigger-in pin using a filter,
which helps mitigate spurious triggers from halting code.
Enable or disable this feature.
Trigger TraceTrigger 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:

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.

SelectionDescription
PolarityTrigger-out pin pulse polarity:
Positive: a positive-going pulse
Negative: a negative-going pulse
Slew Rate LimitingLimit the slew rate on the trigger out pulse.
Enable: slew rate is slow and limited
Disable: slew rate is as fast as possible
One ShotThe 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 OutClick this button to force a trigger out pulse.

An example of using trigger out can be found on the "Trigger Out Example" page.