CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
323
User’s Manual U14492EJ3V0UD
(b) Up/down count operation in UDC mode
TM1n up/down count judgment in the UDC mode is determined based on the phase difference of the
TIUD1n and TCUD1n pin inputs according to the PRM1n register setting.
(i)
Mode 1 (PRM12 bit = 1, PRM11 bit = 0, PRM10 bit = 0)
In mode 1, the following count operations are performed based on the level of the TCUD1n pin upon
detection of the valid edge of the TIUD1n pin.
•
TM1n down count operation when TCUD1n pin = high level
•
TM1n up count operation when TCUD1n pin = low level
Figure 9-48. Mode 1 (When Rising Edge Is Specified as Valid Edge of TIUD1n Pin)
TIUD1n
TCUD1n
TM1n
0006H
0007H
Down count
Up count
0005H
0004H
0005H
0006H
0007H
Remark
n = 0, 1