
UART2
LH75400/01/10/11 (Preliminary) User’s Guide
20-20
6/17/03
20.3.2.9 Line Status Register
Register Bank: 0
LSR is the Line Status Register. The LSR Register holds the status of the serial link. It is
provided for compatibility with the Intel 8250A UART. This register shares the following five
bits with the RST Register (described in Section 20.3.2.17):
• BkD
• FE
• PE
• OE
• RFIR.
When this register is read, the read operation clears bits [7:0] of the RST Register and bits
[4:0] of this register. Similarly, these same bits in the RST and LSR registers get cleared
when the RST Register is read.
Table 20-27. LSR Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
///
TxST TFST BkD
FE
PE
OE
RFIR
RESET
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
RW
RW
RW
RW
RW
RW
RW
ADDR
0xFF 0x14
Table 20-28. LSR Register Definitions
BITS NAME
DESCRIPTION
31:7
///
Reserved
Do not modify. Read as zero.
6
TxST
Transmit Machine Status Bit
This bit is functionally identical to the TxIR bit of the
GSR Register.
1 = Transmit Machine is in idle state.
Note: Idle may indicate that the Transmit Machine (txM) is empty or disabled.
5
TFST
Transmit FIFO Status
Functionally identical to the TFIR bit of the GSR Register. It indi-
cates that the Transmit FIFO level is equal to or below the Transmit FIFO Threshold. To dis-
able the transmit FIFO status from being reflected in GIR, either:
• Write a zero to the TFIE bit of the GER Register, or
• Use the Tx FIFO HOLD INTERRUPT logic.
When the TxFIFO is in the hold state, no interrupts are generated, regardless of the TFIR and
TFIE bit settings. The Transmit FIFO enters the hold state when the DPU reads the GIR Reg-
ister and the source of the interrupt is TxFIFO. To exit, the CPU must either set the TFIR bit
of GSR to zero by writing a character to TxFIFO or setting the TFIE bit of GER to zero to dis-
able the Tx FIFO.
4
BkD
Break Detected
Functionally equivalent to the BkD bit of the RST Register.
3
FE
Framing Error Detected
Functionally equivalent to the FE bit of the RST Register.
2
PE
Parity Error
Functionally equivalent to the PE bit of the RST Register.
1
OE
Overrun Error
Functionally equivalent to the OE bit of the RST Register.
0
RFIR
Receive FIFO Interrupt Request
Functionally identical to the RFIR bit of the GSR Register.
Indicates that the RX FIFO level is above the Rx FIFO threshold. This bit is forced LOW during
any READ from the Rx FIFO. A zero written to this bit acknowledges an Rx FIFO interrupt.