289
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
(4)
Compare operation
The TMC0 register has two capture/compare registers. These are the CCC00 register and the
CCC01 register.
A capture operation or a compare operation is performed according to the settings of both the
CMS1 and CMS0 bits of the TMCC01 register. If "1" is set in the CMS1 and CMS0 bits of the
TMCC01 register, the register operates as a compare register.
A compare operation that compares the value that was set in the compare register and the TMC0
count value is performed.
If the TMC0 count value matches the value of the compare register, which had been set in
advance, a match signal is sent to the output control circuit. The match signal causes the timer
output pin (TOC0) to change and an interrupt request signal (INTCCC00, INTCCC01) to be
generated at the same time.
Figure 10-13:
Timing of compare operation
Remark:
The match is detected immediately after the count up, and the match detection signal is
generated.
n + 1
TMC0
Count up
n
n
n – 1
Compare register
(CCC01)
Match detection
(INTCCC01)
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: ......