6.1.1 Position Decoder (PDEC)

Some PIC32CM device families include a Position Decoder (PDEC) peripheral for precise position and speed measurement in motor control and motion applications. The PDEC integrates a quadrature/Hall decoder and a counter with two compare channels, supporting multiple modes of operation.

Key Features:

  • Internal prescaler—Allows input signal frequency scaling for optimal performance and resolution
  • Selectable modes—Quadrature Decoder (QDEC), Hall Sensor Decoder (Hall), Counter
  • Event and interrupt generation