Datasheet

Table Of Contents
Section 11 8-Bit Timers (TMR)
Page 358 of 846 REJ09B0140-0900 Rev. 9.00
Sep 16, 2010
H8S/2215 Group
11.5.2 Setting of Compare Match Flags CMFA and CMFB
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
11.5 shows this timing.
φ
TCNT
N N+1
TCOR N
Compare match
signal
CMF
Figure 11.5 Timing of CMF Setting
11.5.3 Timer Output Timing
When compare match A or B occurs, the timer output changes as specified by bits OS3 to OS0 in
TCSR. Figure 11.6 shows the timing when the output is set to toggle at compare match A.
φ
Compare match A
signal
Timer output pin
Figure 11.6 Timing of Timer Output