CHAPTER 9 TIMER/COUNTER FUNCTION
314
User’s Manual U15195EJ5V0UD
(b) Up/down count operation in UDC mode
TM10 up/down count judgment in the UDC mode is determined based on the phase difference of the
TIUD10 and TCUD10 pin inputs according to the PRM10 register setting.
(i) Mode 1 (PRM10 register’s PRM12 bit = 1, PRM11 bit = 0, PRM10 bit = 0)
In mode 1, the following count operations are performed based on the level of the TCUD10 pin upon
detection of the valid edge of the TIUD10 pin.
•
TM10 down count operation when TCUD10 pin = high level
•
TM10 up count operation when TCUD10 pin = low level
Figure 9-51. Mode 1 (When Rising Edge Is Specified as Valid Edge of TIUD10 Pin)
TIUD10
TCUD10
TM10
0006H
0007H
Down count
Up count
0005H
0004H
0005H
0006H
0007H
Figure 9-52. Mode 1 (When Rising Edge Is Specified as Valid Edge of TIUD10 Pin):
In Case of Simultaneous TCUD10, TCUD10 Pin Edge Timing
0007H
TIUD10
TCUD10
TM10
0006H
Down count
Up count
0005H
0004H
0005H
0006H
0007H