302
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
10.2.5 Operation
(1)
Compare operation
TMDn can be used for a compare operation in which the value that was set in a compare register
(CMDn) is compared with the TMDn count value (n = 0, 1).
If a match is detected by the compare operation, an interrupt (INTTMDn) is generated. The
generation of the interrupt causes TMDn to be cleared to "0" at the next count timing. This function
enables Timer Dn to be used as an interval timer.
CMDn can also be set to "0". In this case, when an overflow occurs and TMDn becomes "0", a
match is detected and INTTMDn is generated. Although the TMDn value is cleared to "0" at the
next count timing, INTTMDn is not generated according to this match.
Figure 10-23:
Timing of Compare Operation (1/2)
(a) When CMDn is set to m (non-zero)
Remarks: 1. Interval time = (m + 1) × Count clock cycle
2. m = 1 to 65536 (FFFFH)
3. n = 0, 1
1
TMDn
0
m
CMDn
m
TMDn clear
Match detected
(INTTMDn)
Count up
Clear
f
COUNT
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......