AN 773: Drive-On-Chip Design Example for Intel® MAX® 10 Devices

ID 683072
Date 7/26/2023
Public
Document Table of Contents

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