UART/Autobaud Control and Status Registers
12-25
UART Devices
Table 12–19. UART Mode Line Status Register (LSR) (Continued)
Bit
Reset
Value
R/W
Function
Value
Name
3
RX_FE
0
No framing error in data being read from RX
FIFO
R
0
1
Framing error occurred in data being read
from RX FIFO (i.e., received data did not
have a valid stop bit).
2
RX_PE
0
No parity error in data being read from RX
FIFO
R
0
1
Parity error in data being read from RX FIFO
1
RX_OE
0
No overrun error
R
0
1
Overrun error has occurred. Set when the
character held in receive shift register is not
transferred to the RX FIFO. This case can
occurs only when receive FIFO is full.
0
RX_FIFO_E
0
No data in the receive FIFO
R
0
1
At least one data character in the RX_FIFO
When the LSR is read, LSR[4:2] reflect the error bits [BI, FE, PE] of the charac-
ter at the top of the RX FIFO (next character to be read). Therefore reading the
LSR and then reading the RHR identifies errors in a character.
Reading RHR updates BI, FE, and PE (see Table 12–14).
LSR[7] is set when there is an error anywhere in the RX FIFO and is cleared
only when there are no more errors remaining in the FIFO.
Note:
Reading the LSR does not cause an increment of the RX FIFO read pointer.
The RX FIFO read pointer is incremented by reading the RHR.
Reading LSR clears OE, if OE is set (see Table 12–19).