![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 178](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630178.webp)
www.geehy.com Page 177
Effective edge
Count only in TI1
Count only in TI2
Count in both TI1
and TI2
Falling
edge
Count
down
Count up
Count
down
Count up
The external incremental encoder can be directly connected with MCU, not
needing external interface logic, so the comparator is used to convert the
differential output of the encoder to digital signal to increase the immunity from
noise interference.
Among the following examples:
IC1FP1 is mapped to TI1
IC2FP2 is mapped to TI2
Neither IC1FP1 nor IC2FP2 is reverse phase
The input signal is valid at the rising edge and falling edge
Enable the counter
Figure 33 Counter Operation Example in Encoder Mode
TI1
TI2
Counter
For example, when TI1 is at low level, and TI2 is in rising edge state, the
counter will count up.