Please read Chapter 22 of the processor manual for details on how to set up a quadrature decoder channel. Operation is as follows:
22.3 Operation
The following steps explain how to set up a Quadrature Decoder channel.
- Configure Timer A10 via TAT10R to provide the desired Quadrature Decoder clock
speed. - Configure QDCR to select the input pins for the two channels.
- Reset the counters by writing to QDCSR.