ST16C554 / ST16C554D / ST68C554 Data Sheet Line Status Register (LSR) - Read and Write
9/4/19 Rev 4.0.2 19
■Logic 0 = INT (A - D) outputs disabled (three state) in
the 16 mode (default). During internal loopback mode,
OP2# is HIGH.
■Logic 1 = INT (A - D) outputs enabled (active) in the 16
mode. During internal loopback mode, OP2# is LOW.
MCR[4]: Internal Loopback Enable
■Logic 0 = Disable loopback mode (default).
■Logic 1 = Enable local loopback mode, see loopback
section and Table 13.
MCR[7:5]: Reserved (Default 0)
5.8 Line Status Register (LSR)
- Read and Write
This register is writeable, but it is not recommended. The
LSR provides the status of data transfers between the
UART and the host. If IER bit-2 is enabled, LSR bit-1 will
generate an interrupt immediately and LSR bits 2-4 will
generate an interrupt when a character with an error is in
the RHR.
LSR[0]: Receive Data Ready Indicator
■Logic 0 = No data in receive holding register or FIFO
(default).
■Logic 1 = Data has been received and can be read
from the receive holding register or RX FIFO.
LSR[1]: Receiver Overrun Flag
■Logic 0 = No overrun error (default).
■Logic 1 = Overrun error. A data overrun error condition
occurred in the Receive Shift Register. This happens
when additional data arrives while the FIFO is full. In
this case, the previous data in the Receive Shift
Register is overwritten. Note that under this condition
the data byte in the Receive Shift Register is not
transferred into the FIFO, therefore the data in the
FIFO is not corrupted by the error.
LSR[2]: Receive Data Parity Error Tag
■Logic 0 = No parity error (default).
■Logic 1 = Parity error. The receive character in RHR
does not have correct parity information and is suspect.
This error is associated with the character available for
reading in RHR.
LSR[3]: Receive Data Framing Error Tag
■Logic 0 = No framing error (default).
■Logic 1 = Framing error. The receive character did not
have a valid stop bit(s). This error is associated with
the character available for reading in RHR.
LSR[4]: Receive Break Tag
■Logic 0 = No break condition (default).
■Logic 1 = The receiver received a break signal (RX was
LOW for at least a one character frame time). In the
FIFO mode, only one break character is loaded into the
FIFO. The break indication remains until the RX input
returns to the idle condition, “mark” or HIGH.
LSR[5]: Transmit Holding Register Empty Flag
This bit is the Transmit Holding Register empty indicator.
The THR bit is set to a logic 1 when the last data byte is
transferred from the Transmit Holding Register to the
Transmit Shift Register. The bit is reset to logic 0
concurrently with the data loading to the Transmit Holding
Register by the host. In the FIFO mode, this bit is set when
the transmit FIFO is empty. It is cleared when the transmit
FIFO contains at least 1 byte.
LSR[6]: THR and TSR Empty Flag
This bit is set to a logic 1 whenever the transmitter goes
idle. It is set to logic 0 whenever either the THR or TSR
contains a data character. In the FIFO mode, this bit is set
to a logic 1 whenever the transmit FIFO and Transmit Shift
Register are both empty.
LSR[7]: Receive FIFO Data Error Flag
■Logic 0 = No FIFO error (default).
■Logic 1 = A global indicator for the sum of all error bits
in the RX FIFO. At least one parity error, framing error,
or break indication is in the FIFO data. This bit clears
when there is no more error(s) in any of the bytes in the
RX FIFO.
Table 15: INT Output Modes
INTSEL Pin MCR Bit-3 INT A - D Outputs in 16 Mode
0 0 Three-State
0 1 Active
1 X Active