45.6.5 Events

The PDEC can generate the following output events:

  • Overflow/Underflow: OVF
  • Channel x Compare Match: MCx
  • Error: ERR
  • Velocity: VLC. This interrupt is available only in QDEC and HALL operation modes.
  • Direction: DIR. This interrupt is available only in QDEC and HALL operation modes.

Writing a '1' to an Event Output bit in the Event Control register (EVCTRL.MCEO) enables the corresponding output event. Writing a '0' to this bit disables the corresponding output event.

In counter mode the PDEC can take action on an input event. PDEC counter event input are available for each of the three PDEC channels.

  • Retrigger: Restart/retrigger on event

Refer to the Event System (EVSYS) for additional information.