53.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.