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 Enhanced Event Breakpoints.

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.

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 here: Trigger Out Example

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.