Quadrature Decode
The Quadrature Decode uses two eTPU pins to decode a signal from an incremental rotary encoder:
How does quadrature decode work?
The OpenECU platform provides two blocks:
These blocks will automatically decode the input and report the number of edges sensed. A positive number indicating forward rotation and a negative number indicating reverse rotation. The Latter block also senses the frequency of the input waveform.
- Click the links above for more details
If you are having difficulties, see our page on troubleshooting PWM and frequency inputs.