Quadrature Decode

The Quadrature Decode uses two eTPU pins to decode a signal from an incremental rotary encoder.

Quadrature encoder and generated signals

How does quadrature decode work?

The OpenECU platform provides two blocks:

  • pdx_QuadratureDecode

  • pdx_QuadratureDecodeAndFrequencyInput

These blocks will automatically decode the input and report the number of edges sensed. A positive number indicates forward rotation and a negative number indicates reverse rotation. The latter block also senses the frequency of the input waveform.