20 Quadrature Encoder Interface (QEI)

This section describes the Quadrature Encoder Interface (QEI) implemented in the PIC32AK1216GC41064 family of devices. The QEI is typically used in motor control applications to detect the mechanical position, direction or rotation and speed of rotation of quadrature encoders. The following high-level features are covered in this section:

  • Four Input Pins: Two Phase Signals, an Index Pulse and a Home Pulse
  • Programmable Digital Noise Filters on Inputs
  • Quadrature Decoder Providing Counter Pulses and Count Direction
  • x4 Count Resolution
  • Index Pulse to Reset the Position Counter
  • General Purpose 32-bit Timer/Counter Mode
  • Interrupts Generated by QEI or Counter Events
  • 32-bit Velocity Counter
  • 32-bit Position Counter
  • 32-bit Index Pulse Counter
  • 32-bit Interval Timer
  • 32-bit Position Initialization/Capture/Compare High Word Register
  • 32-bit Position Initialization/Capture/Compare Low Word Register
  • 4X Quadrature Count Mode
  • External Up/Down Count Mode
  • External Gated Count Mode
  • External Gated Timer Mode
  • Interval Timer Mode