17.4.1 Position Counter
The Position Counter is 32 bits wide and counts the number of pulses generated by an encoder.
If the POSOVIEN bit in the QEIx Status register (QEIxSTAT[8]) is set and the Position Counter rolls over from 0x7FFFFFFF to 0x80000000, or from 0x80000000 to 0x7FFFFFFF, an interrupt will be generated.
The operating mode of the Position Counter is controlled by the CCM[1:0] bits in the QEIx Control register (QEIxCON[1:0]). The Position Counter supports the following operating modes:
- Quadrature Count mode
- External Count with External Up/Down mode
- External Count with External Gate mode
- Internal Timer mode