English
Language : 

NS16C2552 Datasheet, PDF (20/43 Pages) National Semiconductor (TI) – Dual UART with 16-byte/64-byte FIFOs and up to 5 Mbit/s Data Rate
6.0 Register Set (Continued)
6.8 LINE STATUS REGISTER (LSR)
This register provides status information to the CPU con-
cerning the data transfer.
Bits 1 through 4 are the error conditions that produce a
Receiver Line Status interrupt whenever any of the corre-
sponding conditions are detected and the interrupt is en-
abled.
TABLE 12. LSR (0x5)
R/W
Bit
Bit Name
Def
Description
7
Rx FIFO Err
R
Rx FIFO Data Error
0
This bit is a global Rx FIFO error flag. In the 16450 Mode this bit is 0.
1 = A sum of all error bits in the Rx FIFO. These errors include parity, framing, and
break indication in the FIFO data.
0 = No Rx FIFO error (default).
Note: The Line Status Register is intended for read operations only. Writing to this register is not recommended
as this operation is only used for factory testing.
6
THR & TSR
R
THR and TSR Empty
Empty
1
This bit is the Transmitter Empty (TEMT) flag.
1 = Whenever the Transmitter Holding Register (THR) (or the Tx FIFO in FIFO mode)
and the Transmitter Shift Register (TSR) are both empty (default).
0 = Whenever either the THR (or the Tx FIFO in FIFO mode) or the TSR contains a
data word.
5
THR Empty
R
THR Empty
1
This bit is the Transmitter Holding Register Empty (THRE) flag. In the 16450 mode bit
5 indicates that the associated serial channel is ready to accept a new character for
transmission. In addition, this bit causes the DUART to issue an interrupt to the CPU
when the Transmit Holding Register Empty interrupt enable is set.
1 = In 16450 mode, whenever a character is transferred from the Transmitter Holding
Register into the Transmitter Shift Register, or in FIFO mode when the Tx FIFO is
empty (default).
0 = In 16450 mode, this bit is reset to logic 0 concurrently with the loading of the
Transmitter Holding Register by the CPU. In FIFO mode, it is cleared when at least 1
byte is written to the Tx FIFO.
4
Rx Break
R
Receive Break Interrupt Indicator
Interrupt
0
This bit is the Break Interrupt (BI) indicator.
1 = Whenever the received data input is held in the Spacing (logic 0) state for longer
than a full frame transmission time (that is, the total time of Start bit + data bits +
Parity + Stop bits).
0 = No break condition (default).
This bit is reset to 0 whenever the CPU reads the contents of the Line Status Register
or when the next valid character is loaded into the Receiver Buffer Register.
In the FIFO Mode this condition is associated with the particular character in the FIFO
it applies to. It is revealed to the CPU when its associated character is at the top of
the FIFO. When break occurs only one zero character is loaded into the FIFO. The
next character transfer is enabled after SIN goes to the Marking (logic 1) state and
receives the next valid start bit.
www.national.com
20