MOTOROLA
UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER MODULE
MMC2001
11-14
REFERENCE MANUAL
11.4.6 UART Status Register (USR)
The read/write UART status register indicates the status of the RTS pin, input transi-
tions on the pin, and status of the transmit and receive FIFOs.
Figure 11-7 UART Status Register
TXMPTY — Transmitter Empty
When set, this bit indicates that the transmit FIFO and the transmit shift register are
both empty. This bit is automatically cleared when a write to the TX FIFO is per-
formed.
0 =
TX FIFO or shifter are not both empty
1 =
TX FIFO and shifter are both empty
At reset, this bit is set to one.
RTSS — RTS Pin Status
This bit indicates the current status of the RTS pin. A “snapshot” of the pin is taken
immediately before this bit is presented to the data bus. While IRTS is asserted, this
bit can be used as a general-purpose input.
0 =
RTS pin is high (inactive)
1 =
RTS pin is low (active)
This bit follows the logic value connected to the RTS pin.
TRDY — Transmitter Ready Interrupt Flag
When set, this bit indicates that the TX FIFO has emptied below its target threshold
and needs data. This bit is automatically cleared when the data level in the TX FIFO
goes beyond the set threshold level.
0 =
Transmitter does not need data
1 =
Transmitter needs data (interrupt posted)
At reset, this bit is set to one.
RRDY — Receiver Ready Interrupt Flag
When set, this bit indicates that the receive FIFO data level is above the threshold
level specified by the RxFL field, and a maskable interrupt is generated. Refer to the
RxFL bit description for setting the threshold level. In conjunction with the CHARRDY
bit, host software can continue to read the RX FIFO in an interrupt service routine
until the RX FIFO is empty. This bit is automatically cleared when the data level in the
RX FIFO goes below the set threshold level.
0 =
No character ready (no interrupt posted)
1 =
Character(s) ready (interrupt posted)
At reset, this bit is cleared to zero.
U0SR — UART0 Status Register
10009086
U1SR — UART1 Status Register
1000A086
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
TX
MPTY
RTSS
TRDY
0
0
0
RRDY
0
0
0
RTSD
0
0
0
0
0
W
RESET:
1
0
1
0
0
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..