18. Timer Unit (TMU)
Rev.1.00 Jan. 10, 2008 Page 814 of 1658
REJ09B0261-0100
18.5 Interrupts
There are seven TMU interrupt sources: underflow interrupts and the input capture interrupt when
the input capture function is used. Underflow interrupts are generated on each of the channels, and
input capture interrupts on channel 2 only.
An underflow interrupt request is generated (for each channel) when both the UNF bit and the
interrupt enable bit (UNIE) for that channel are set to 1.
When the input capture function is used and an input capture request is generated, an interrupt is
requested if the ICPF bit in TCR2 is 1 and the input capture control bits (ICPE1 and ICPE0) in
TCR2 are both set to 11.
The TMU interrupt sources are summarized in table 18.4.
Table 18.4 TMU Interrupt Sources
Channel Interrupt Source Description
0 TUNI0 Underflow interrupt 0
1 TUNI1 Underflow interrupt 1
2 TUNI2 Underflow interrupt 2
TICPI2 Input capture interrupt 2
3 TUNI3 Underflow interrupt 3
4 TUNI4 Underflow interrupt 4
5 TUNI5 Underflow interrupt 5