R01UH0822EJ0100 Rev.1.00
Page 561 of 1041
Jul 31, 2019
RX13T Group
21. Compare Match Timer (CMT)
21.4
Interrupts
21.4.1
Interrupt Sources
The CMT has channels and each of them to which a different vector address is allocated has a compare match interrupt
(CMIn) (n = 0, 1). When a compare match interrupt occurs, the corresponding interrupt request is output.
When the interrupt request is used to generate a CPU interrupt, the priority of channels can be changed by the interrupt
controller settings. For details, see
section 14, Interrupt Controller (ICUb)
.
21.4.2
Timing of Compare Match Interrupt Generation
When the CMCNT counter and the CMCOR register match, a compare match interrupt (CMIn) (n = 0, 1) is generated.
A compare match signal is generated at the last state in which the values match (the timing when the CMCNT counter
updates the matched count value). That is, after a match between the CMCOR register and the CMCNT counter, the
compare match signal is not generated until the next the CMCNT counter input clock.
shows the timing of a compare match interrupt.
Figure 21.4
Timing of a Compare Match Interrupt
Table 21.2
CMT Interrupt Sources
Name
Interrupt Sources
DTC Activation
CMI0
Compare match in CMT0
Possible
CMI1
Compare match in CMT1
Possible
PCLK
CMCNT input clock
CMCNT
CMCOR
Interrupt request
(edge)
N
N
0
Compare match signal