
Rev. 5.00, 09/03, page 405 of 760
12.4.2 Status Flag Clearing Timing
The status flag can be cleared b y writing 0 from the CPU. Figure 12.9 shows th e timing.
Pφ
Peripheral address bus
UNF, ICPF
TCR address
T1T2
TCR write cycle
T3
Figure 12.9 Status Flag Clearing Timing
12.4.3 Interrupt Source s and Prio rities
The TMU produces un derflow interrupts for each channel. When the interrupt request flag and
interrupt enable bit are both set to 1, an interrupt is requested. Codes are set in the interrupt event
registers (INTEVT, IN TEVT2) for these interru pts and interrupt handling occurs according to the
codes.
The relative p riorities of channels can be change d using the interrupt controller (see sec tion 4,
Exception Handling, and section 6, Interrupt Controller (INTC)). Table 12.3 lists TMU interrupt
sources.
Table 12.3 TMU Interrupt Sources
Channel Interrupt Source Description Priority
0 TUNI0 Underflow interrupt 0 High
1 TUNI1 Underflow interrupt 1
2 TUNI2 Underflow interrupt 2
2 TICPI2 Input capture interrupt 2 Low