English
Language : 

SH7205 Datasheet, PDF (710/1904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 13 Compare Match Timer (CMT)
13.4 Interrupts
13.4.1 Interrupt Sources and DMA Transfer Requests
The CMT has channels and each of them to which a different vector address is allocated has a
compare match interrupt. When both the compare match flag (CMF) and the 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 7, Interrupt Controller (INTC).
Clear the CMF bit to 0 by the user exception handling routine. If this operation is not carried out,
another interrupt will be generated. By configuring the interrupt controller (INTC), the direct
memory access controller (DMAC) can be activated when a compare match interrupt is requested.
In this case, an interrupt is not issued to the CPU. If the setting to activate the DMAC has not been
made, an interrupt request is sent to the CPU. The CMF bit is automatically cleared to 0 when data
is transferred by the DMAC.
13.4.2 Timing of Compare Match Flag Setting
When CMCOR and CMCNT match, a compare match signal is generated at the last state in which
the values match (the timing when the CMCNT value is updated to H'0000) and the CMF bit in
CMCSR is set to 1. That is, after a match between CMCOR and CMCNT, the compare match
signal is not generated until the next CMCNT counter clock input. Figure 13.4 shows the timing of
CMF bit setting.
Rev. 1.00 Mar. 25, 2008 Page 678 of 1868
REJ09B0372-0100