CHAPTER 9 TIMER/COUNTER FUNCTION
317
User’s Manual U15195EJ5V0UD
(c) Operation in UDC mode A
(i) Interval operation
The operations at the count clock following a match of the TM10 count value and the CM100 set
value 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) and the INTCM100
interrupt is generated.
Remark
The interval operation can be combined with the transfer operation.
(ii) Transfer operation
If TM10 becomes 0000H during down counting when the RLEN bit of the TMC10 register is 1, the
CM100 register set value is transferred to TM10 at the next count clock.
Remarks 1.
Transfer enable/disable can be set using the RLEN bit of the TMC10 register.
2.
The transfer operation can be combined with the interval operation.
Figure 9-57. Example of TM10 Operation When Interval Operation and Transfer Operation Are Combined
TM10 and CM100 match
& timer clear
TM10 underflow
& CM100 data transfer
TM10 count value
CM100 set value
Up count
Down count
0000H
(iii) 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, INTCM101, INTCC100
Note
, INTCC101
Note
) is output.
Note
This match interrupt is generated when CC100 and CC101 are set to the compare register
mode.
(iv) 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.