CHAPTER 9 TIMER/COUNTER FUNCTION
318
User’s Manual U15195EJ5V0UD
(d) Operation in UDC mode B
(i) Basic operation
The operations at the next count clock after the count value of TM10 and the CM100 set value match
when TM10 is in UDC mode B are as follows.
•
In case of up count operation: TM10 is cleared (0000H) and the INTCM100 interrupt is generated.
•
In case of down count operation: The TM10 count value is decremented (
−
1).
The operations at the next count clock after the count value of TM10 and the CM101 set value match
when TM10 is in UDC mode B are as follows.
•
In case of up count operation: The TM10 count value is incremented (+1).
•
In case of down count operation: TM10 is cleared (0000H) and the INTCM101 interrupt is
generated.
Figure 9-58. Example of TM10 Operation in UDC Mode
CM100 set value
CM101 set value
TM10 count value
Clear
TM10 not
cleared if count clock
counts down following match
Clear
TM10 not
cleared if count clock
counts up following match
(ii) Compare function
TM10 connects two compare register (CM100, CM101) channels and two capture/compare register
(CC100, CC101) channels.
When the TM10 count value and the set value of one of the compare registers match, a match
interrupt (INTCM100 (only during up count operation), INTCM101 (only during down count
operation), INTCC100
Note
, INTCC101
Note
) is output.
Note
This match interrupt is generated when CC100 and CC101 are set to the compare register
mode.
(iii) Capture function
TM10 connects two capture/compare register (CC100, CC101) channels.
When CC100 and CC101 are set to the capture register mode, the value of TM10 is captured in
synchronization with the corresponding capture trigger signal. A capture interrupt (INTCC100,
INTCC101) is generated upon detection of the valid edge.