113
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
ARM-based Microcontroller
UART0 Interrupt Enable Register (U0IER - 0xE000C004 when DLAB = 0)
The U0IER is used to enable the four UART0 interrupt sources.
UART0 Interrupt Identification Register (U0IIR - 0xE000C008, Read Only)
The U0IIR provides a status code that denotes the priority and source of a pending interrupt. The interrupts are frozen during an
U0IIR access. If an interrupt occurs during an U0IIR access, the interrupt is recorded for the next U0IIR access.
Interrupts are handled as described in Table 81. Given the status of U0IIR[3:0], an interrupt handler routine can determine the
cause of the interrupt and how to clear the active interrupt. Interrupts are handled as described in Table 81. The U0IIR must be
read in order to clear the interrupt prior to exitting the Interrupt Service Routine.
Table 79: UART0 Interrupt Enable Register Bit Descriptions (U0IER - 0xE000C004 when DLAB = 0)
U0IER
Function
Description
Reset
Value
0
RBR Interrupt
Enable
0: Disable the RDA interrupt.
1: Enable the RDA interrupt.
U0IER0 enables the Receive Data Available interrupt for UART0. It also controls the
Character Receive Time-out interrupt.
0
1
THRE Interrupt
Enable
0: Disable the THRE interrupt.
1: Enable the THRE interrupt.
U0IER1 enables the THRE interrupt for UART0. The status of this interrupt can be read
from U0LSR5.
0
2
Rx Line Status
Interrupt Enable
0: Disable the Rx line status interrupts.
1: Enable the Rx line status interrupts.
U0IER2 enables the UART0 Rx line status interrupts. The status of this interrupt can be
read from U0LSR[4:1].
0
7:3
Reserved
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
NA
Table 80: UART0 Interrupt Identification Register Bit Descriptions (U0IIR - 0xE000C008, Read Only)
U0IIR
Function
Description
Reset
Value
0
Interrupt
Pending
0: At least one interrupt is pending.
1: No pending interrupts.
Note that U0IIR0 is active low. The pending interrupt can be determined by evaluating
U0IER3:1.
1
3:1
Interrupt
Identification
011: 1. Receive Line Status (RLS)
010: 2a.Receive Data Available (RDA)
110: 2b.Character Time-out Indicator (CTI)
001: 3. THRE Interrupt.
U0IER3 identifies an interrupt corresponding to the UART0 Rx FIFO. All other
combinations of U0IER3:1 not listed above are reserved (000,100,101,111).
0
5:4
Reserved
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
NA
7:6
FIFO Enable
These bits are equivalent to U0FCR0.
0