© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
63 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
2. After the current (highest priority) event is serviced, write a logic 0 to the
corresponding interrupt flag bit in the TIFR2 register to clear the flag.
3. Read the TISE2 register. If the priority-encoded interrupt source is ‘000’, all CCU
interrupts are serviced and a return from interrupt can occur. Otherwise, return to step
for the next interrupt.
Fig 25. Capture/compare unit interrupts.
002aaa896
interrupt to
CPU
TOIE2 (TICR2.7)
TOIF2 (TIFR2.7)
TICIE2A (TICR2.0)
TICF2A (TIFR2.0)
TICIE2B (TICR2.1)
TICF2B (TIFR2.1)
TOCIE2A (TICR2.3)
TOCF2A (TIFR2.3)
TOCIE2B (TICR2.4)
TOCF2B (TIFR2.4)
TOCIE2C (TICR2.5)
TOCF2C (TIFR2.5)
TOCIE2D (TICR2.6)
TOCF2D (TIFR2.6)
EA (IEN0.7)
ECCU (IEN1.4)
PRIORITY
ENCODER
other
interrupt
sources
ENCINT.0
ENCINT.1
ENCINT.2
Table 55:
CCU interrupt status encode register (TISE2 - address DEh) bit allocation
Bit
7
6
5
4
3
2
1
0
Symbol
-
-
-
-
-
ENCINT.2
ENCINT.1
ENCINT.0
Reset
x
x
x
x
x
0
0
0