42.2 Features

The following are key features of the PDEC module:

  • Internal prescaler
  • Selectable mode of operation:
    • QDEC, HALL, or COUNTER
  • QDEC
    • Angular and revolution counts
    • Synchronous and asynchronous velocity measurements
    • Direction change detection
    • Check valid quadrature transitions
    • Check index position versus angular position
    • Auto correction mode
  • HALL
    • Window validation of Hall transitions
    • Hall code detection
    • Direction change detection
    • Check valid Hall transitions
    • Programmable event generation delay after a Hall transition
  • COUNTER
    • 16-bit counter with two compare channels
    • One of the compare channels can be configured with period settings
    • Counter overflow interrupt and event generation option
    • Compare match interrupt and event generation option