English
Language : 

SH7606 Datasheet, PDF (256/532 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family / SH7606 Series
Section 11 Compare Match Timer (CMT)
11.4 Interrupts
11.4.1 Interrupt Sources
The CMT has channels and each of them to which a different vector address is allocated has
compare match interrupt. When both the interrupt request flag (CMF) and interrupt enable bit
(CMIE) are set to 1, the corresponding interrupt request is output. When the interrupt is used to
activate a CPU interrupt, the priority of channels can be changed by the interrupt controller
settings. For details, see section 6, Interrupt Controller (INTC).
11.4.2 Timing of Setting Compare Match Flag
When CMCOR and CMCNT match, a compare match signal is generated and the CMF bit in
CMCSR is set to 1. The compare match signal is generated in the last cycle in which the values
match (when the CMCNT value is updated to H'0000). That is, after a match between CMCOR
and CMCNT, the compare match signal is not generated until the next CMCNT counter clock
input. Figure 11.4 shows the timing of CMF bit setting.
Peripheral operating
clock (Pφ)
Counter clock
(N + 1)th
clock
CMCNT1
N
0
CMCOR1
N
Compare match
signal
Figure 11.4 Timing of CMF Setting
11.4.3 Timing of Clearing Compare Match Flag
The CMF bit in CMCSR is cleared by reading 1 from this bit, then writing 0.
Rev. 4.00 Sep. 13, 2007 Page 230 of 502
REJ09B0239-0400