
W83627UHG
Publication Release Date: March 24, 2008
-109-
Revision 1.44
10.2.2 UART Status Register (USR) (Read/Write)
This 8-bit register provides information about the status of data transfer during communication.
BIT
7
6
5
4
3
2
1
0
NAME
RF EI
TSRE
TBRE
SBD
NSER
PBER
OER
PDR
DEFAULT
0
1
0
BIT
DESCRIPTION
7
RF EI (RX FIFO Error Indication).
In 16450 mode, this bit is always set to logical 0. in
16550 mode, this bit is set to logical 1 when there is at least one parity-bit error and no
stop0bit error or silent-byte detected in the FIFO. In 16550 mode, this bit is cleared to
logical 0 by reading from the USR if there are no remaining errors left in the FIFO.
6
TSRE (Transmitter Shift Register Empty).
In 16450 mode, this bit is set to logical 1
when TBR and TSR are both empty. In 16550 mode, it is set to logical 1 when the
transmit FIFO and TSR are both empty. Otherwise, this bit is set to logical 0.
5
TBRE (Transmitter Buffer Register Empty).
In 16450 mode, when a data character is
transferred from TBR to TSR, this bit is set to logical 1. If ETREI of ICR is high, and
interrupt is generated to notify the CPU to write next data. In 16550 mode, this bit is set to
logical 1 when the transmit FIFO is empty. It is set to logical 0 when the CPU writes data
into TBR or the FIFO.
4
SBD (Silent Byte Detected).
This bit is set to logical 1 to indicate that received data are
kept in silent state for the time it takes to receive a full word, which includes the start bit,
data bits, parity bit, and stop bits. In 16550 mode, it indicates the same condition for the
data on the top of the FIFO. When the CPU reads USR, it sets this bit to logical 0.
3
NSER (No Stop Bit Error).
This bit is set to logical 1 to indicate that the received data
have no stop bit. In 16550 mode, it indicates the same condition for the data on the top of
the FIFO. When the CPU reads USR, it sets this bit to logical 0.
2
PBER (Parity Bit Error).
This bit is set to logical 1 to indicate that the received data has
the wrong parity bit. In 16550 mode, it indicates the same condition for the data on the top
of the FIFO. When the CPU reads USR, it sets this bit to logical 0.
1
OER (Overrun Error).
This bit is set to logical 1 to indicate that the received data have
been overwritten by the next received data before they were read by the CPU. In 16550
mode, it indicates the same condition, instead of FIFO full. When the CPU reads USR, it
sets this bit to logical 0.
0
RDR (RBR Data Ready).
This bit is set to logical 1 to indicate that the received data are
ready to be read by the CPU in the RBR or FIFO. When no data are left in the RBR or
FIFO, the bit is set to logical 0.