CHAPTER 9 TIMER/COUNTER FUNCTION
319
User’s Manual U15195EJ5V0UD
9.2.6 Supplementary description of internal operation
(1) Clearing of count value in UDC mode B
When TM10 is in UDC mode B, the conditions to clear the count value are as follows.
•
In case of TM10 up-count operation: TM10 count value is cleared upon match with the CM100 register
•
In case of TM10 down-count operation: TM10 count value is cleared upon match with the CM101 register
Figure 9-59. Clear Operation After Match of CM100 Register Set Value and TM10 Count Value
(a) Up count
→
Up count
Count clock
(Rising edge set as valid edge)
CM100 register
FFFEH
TM10 cleared
TM10
FFFFH
0000H
0001H
FFFFH
Up count
Up count
(b) Up count
→
Down count
Count clock
(Rising edge set as valid edge)
CM100 register
FFFEH
TM10 not cleared
TM10
FFFFH
FFFEH
FFFDH
FFFFH
Up count
Down count