CHAPTER 9 TIMER/COUNTER FUNCTION
223
User’s Manual U15195EJ5V0UD
Figure 9-10. When UPORTn = 0 Is Set Immediately Before TORTOn = 0 (Switched by Inactive Value)
CM0n3
0000H
TM0n
Count value
F/F
INTCM0n3
INTTM0n
TO0n0
TM0CEn
TORTOn
UPORTn
Timer output
Note 1
Note 3
Software output
Timer output
P1
T2
CM0n3
CM0n3
CM0n3
Note 2
Note 1
Note 2
Note 4
Notes 1.
F/F set by compare match during up count
2.
F/F reset by compare match during down count
3.
F/F set by writing UPORTn bit
4.
F/F reset by writing UPORTn bit
Remark
n = 0, 1
If the setting of the TORTOn bit changes from 1 to 0 while the UPORTn bit is set to 0 in the P1 period in Figure 9-
10 above, the F/F continues to hold the TORTOn bit setting of “0” until the T2 timing.
However, because the F/F is set at the T2 timing (by a compare match of TM0n during up counting), the TO0n0
output changes from 1 to 0.
Note that TO0n0 to TO0n5 output will stop if the TORTOn bit setting is changed from 1 to 0 while the TM0CEn bit
is 0.