Chapter 12 16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
(b) Mode 2 (PRM102 to PRM100 bits = 101B)
The count conditions in mode 2 are as follows.
• TMENC10 up count upon detection of valid edge of TIUD1 pin
• TMENC10 down count upon detection of valid edge of TCUD1 pin
Caution:
If the count clock is simultaneously input to the TIUD1 pin and the TCUD1 pin, count
operation is not performed and the immediately preceding value is held.
Figure 12-17: Mode 2 (When Rising Edge Is Specified as Valid Edge of TIUD1, TCUD1 Pins)
TIUD1
TCUD1
TMENC1
560
0006H
0007H
0008H
Up count
User's Manual U16580EE3V1UD00
0007H
0006H
Hold value
Down count
0005H