117
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
ARM-based Microcontroller
Table 84: UART0 Line Status Register Bit Descriptions (U0LSR - 0xE000C014, Read Only)
U0LSR
Function
Description
Reset
Value
0
Receiver
Data Ready
(RDR)
0: U0RBR is empty
1: U0RBR contains valid data
U0LSR0 is set when the U0RBR holds an unread character and is cleared when the
UART0 RBR FIFO is empty.
0
1
Overrun
Error
(OE)
0: Overrun error status is inactive.
1: Overrun error status is active.
The overrun error condition is set as soon as it occurs. An U0LSR read clears U0LSR1.
U0LSR1 is set when UART0 RSR has a new character assembled and the UART0 RBR
FIFO is full. In this case, the UART0 RBR FIFO will not be overwritten and the character
in the UART0 RSR will be lost.
0
2
Parity Error
(PE)
0: Parity error status is inactive.
1: Parity error status is active.
When the parity bit of a received character is in the wrong state, a parity error occurs. An
U0LSR read clears U0LSR2. Time of parity error detection is dependent on U0FCR0.
A parity error is associated with the character being read from the UART0 RBR FIFO.
0
3
Framing
Error
(FE)
0: Framing error status is inactive.
1: Framing error status is active.
When the stop bit of a received character is a logic 0, a framing error occurs. An U0LSR
read clears U0LSR3. The time of the framing error detection is dependent on U0FCR0.
A framing error is associated with the character being read from the UART0 RBR FIFO.
Upon detection of a framing error, the Rx will attempt to resynchronize to the data and
assume that the bad stop bit is actually an early start bit. However, it cannot be assumed
that the next received byte will be correct even if there is no Framing Error.
0
4
Break
Interrupt
(BI)
0: Break interrupt status is inactive.
1: Break interrupt status is active.
When RxD0 is held in the spacing state (all 0’s) for one full character transmission (start,
data, parity, stop), a break interrupt occurs. Once the break condition has been detected,
the receiver goes idle until RxD0 goes to marking state (all 1’s). An U0LSR read clears
this status bit. The time of break detection is dependent on U0FCR0.
The break interrupt is associated with the character being read from the UART0 RBR
FIFO.
0
5
Transmitter
Holding
Register
Empty
(THRE)
0: U0THR contains valid data.
1: U0THR is empty.
THRE is set immediately upon detection of an empty UART0 THR and is cleared on a
U0THR write.
1
6
Transmitter
Empty
(TEMT)
0: U0THR and/or the U0TSR contains valid data.
1: U0THR and the U0TSR are empty.
TEMT is set when both U0THR and U0TSR are empty; TEMT is cleared when either the
U0TSR or the U0THR contain valid data.
1
7
Error in Rx
FIFO
(RXFE)
0: U0RBR contains no UART0 Rx errors or U0FCR0=0.
1: UART0 RBR contains at least one UART0 Rx error.
U0LSR7 is set when a character with a Rx error such as framing error, parity error or
break interrupt, is loaded into the U0RBR. This bit is cleared when the U0LSR register is
read and there are no subsequent errors in the UART0 FIFO.
0