Datasheet

Section 13 8-Bit Timers (TMR)
Rev.7.00 Mar. 18, 2009 page 665 of 1136
REJ09B0109-0700
13.5.2 Timing of CMFA and CMFB Setting when Compare-Match Occurs
The CMFA and CMFB flags in TCSR are set to 1 by a compare match signal generated when the
TCOR and TCNT values match. The compare match signal is generated at the last state in which
the match is true, just before the timer counter is updated. Therefore, when TCOR and TCNT
match, the compare match signal is not generated until the next incrementation clock input.
Figure 13.5 shows this timing.
TCNT
φ
NN + 1
TCOR N
Compare match
signal
CMF
Figure 13.5 Timing of CMF Setting