Uart Status Register (Usr); Uart Status Register - Motorola M-CORE MMC2001 Series Reference Manual

Table of Contents

Advertisement

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.
U0SR — UART0 Status Register
U1SR — UART1 Status Register
15
14
13
12
TX
R
RTSS TRDY
0
MPTY
W
RESET:
1
0
1
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.
MOTOROLA
UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER MODULE
11-14
Freescale Semiconductor, Inc.
11
10
9
8
0
0
RRDY
0
0
Figure 11-7 UART Status Register
For More Information On This Product,
Go to: www.freescale.com
7
6
5
4
0
0
0
RTSD
0
10009086
1000A086
3
2
1
0
0
0
0
0
MMC2001
REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents