20.4.2 Quadrature Count Mode

Quadrature count mode is selected by the CCM[1:0] = 0 and HALLEN = 0 in the QEIx Control register (QEIxCON[1:0]). In this mode, the QEA/EXTCNT and QEB/DIR/GATE inputs are decoded to generate count pulses and direction information to control the POSxCNT and VELxCNT registers.

The INDXxCNT register counts when a valid edge is detected on the INDXx input. Figure 20-1 20-3 illustrates the timing diagram of the Quadrature Count mode operation.

.