AN 994: Drive-on-Chip Design Example for Intel Agilex® 7 Devices

ID 780361
Date 6/26/2023
Public
Document Table of Contents

7.3.3. Quadrature Encoder Interface

The Drive-on-Chip Design Example quadrature encoder interface monitors and decodes the A, B and I signals from a quadrature encoder. The resulting output is a count value representing the position of the motor shaft.

The quadrature encoder interface allows you to:

  • Program maximum count value to match a wide range of encoders.
  • Increment or decrement the counter on each A or B input edge.
  • Capture the latest count value on an index pulse.
  • Reset the count value on an index pulse.
  • Reverse the direction of the count, equivalent to swapping the A and B inputs.
  • Capture the latest count by an external strobe to synchronize with the PWM module and ADC sampling.