Texas Instruments TMS320DM643X DMP manual Line Status Register LSR, Non-FIFO mode, Fifo mode

Page 31

www.ti.com

Registers

3.8Line Status Register (LSR)

The line status register (LSR) is shown in Figure 16 and described in Table 17. LSR provides information to the CPU concerning the status of data transfers. LSR is intended for read operations only; do not write to this register. Bits 1 through 4 record the error conditions that produce a receiver line status interrupt.

Figure 16. Line Status Register (LSR)

31

 

 

 

 

 

 

 

 

 

16

 

 

Reserved

 

 

 

 

 

 

 

 

 

 

R-0

 

 

 

 

 

 

 

15

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

RXFIFOE

TEMT

THRE

BI

FE

PE

OE

DR

 

 

 

 

 

 

 

 

 

 

 

R-0

 

 

R-0

R-1

R-1

R-0

R-0

R-0

R-0

R-0

LEGEND: R = Read only; -n= value after reset

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 17. Line Status Register (LSR) Field Descriptions

 

 

 

 

Bit

Field

Value

Description

 

 

 

 

31-8

Reserved

0

Reserved

 

 

 

 

7

RXFIFOE

 

Receiver FIFO error.

 

 

 

In non-FIFO mode:

 

 

0

There has been no error, or RXFIFOE was cleared because the CPU read the erroneous character

 

 

 

from the receiver buffer register (RBR).

 

 

1

There is a parity error, framing error, or break indicator in the receiver buffer register (RBR).

 

 

 

 

 

 

 

In FIFO mode:

 

 

0

There has been no error, or RXFIFOE was cleared because the CPU read the erroneous character

 

 

 

from the receiver FIFO and there are no more errors in the receiver FIFO.

 

 

1

At least one parity error, framing error, or break indicator in the receiver FIFO.

 

 

 

 

6

TEMT

 

Transmitter empty (TEMT) indicator.

 

 

 

In non-FIFO mode:

 

 

0

Either the transmitter holding register (THR) or the transmitter shift register (TSR) contains a data

 

 

 

character.

 

 

1

Both the transmitter holding register (THR) and the transmitter shift register (TSR) are empty.

 

 

 

 

 

 

 

In FIFO mode:

 

 

0

Either the transmitter FIFO or the transmitter shift register (TSR) contains a data character.

 

 

1

Both the transmitter FIFO and the transmitter shift register (TSR) are empty.

 

 

 

 

5

THRE

 

Transmitter holding register empty (THRE) indicator. If the THRE bit is set and the corresponding

 

 

 

interrupt enable bit is set (ETBEI = 1 in IER), an interrupt request is generated.

 

 

 

In non-FIFO mode:

 

 

0

Transmitter holding register (THR) is not empty. THR has been loaded by the CPU.

 

 

1

Transmitter holding register (THR) is empty (ready to accept a new character). The content of THR has

 

 

 

been transferred to the transmitter shift register (TSR).

 

 

 

 

 

 

 

In FIFO mode:

 

 

0

Transmitter FIFO is not empty. At least one character has been written to the transmitter FIFO. You can

 

 

 

write to the transmitter FIFO if it is not full.

 

 

1

Transmitter FIFO is empty. The last character in the FIFO has been transferred to the transmitter shift

 

 

 

register (TSR).

 

 

 

 

SPRU997C –December 2009

Universal Asynchronous Receiver/Transmitter (UART)

31

Submit Documentation Feedback

 

 

Copyright © 2009, Texas Instruments Incorporated

Image 31
Contents Users Guide Submit Documentation Feedback Appendix a Revision HistoryList of Figures List of Tables Read This First Purpose of the Peripheral FeaturesIndustry Standards Compliance Statement Functional Block DiagramUart Supported Features/Characteristics by Instance Feature SupportFifo Uart Block DiagramBclk Clock Generation and ControlUart DlhdllBaud Rate Examples for 27 MHz Uart Input Clock Baud Rate Divisor Value Actual Baud Rate Error %Start Parity STOP1 STOP2 Pin Multiplexing Signal DescriptionsProtocol Description Parity Endianness ConsiderationsData Format Parity STOP1Operation Character Time for Word Lengths Fifo ModesCharacter Time Four Character Times Autoflow Control Uart Interface Using Autoflow DiagramLoopback Control Autoflow Functional Timing Waveforms for RTSInitialization Reset ConsiderationsInterrupt Support Comment Enable bitsUart Interrupt Requests Descriptions Uart Interrupt Request Interrupt SourceDMA Event Support Power ManagementEmulation Considerations Uart Registers Changing Operating Mode During Busy Serial CommunicationException Processing Divisor Latch Not ProgrammedBit Field Access considerationsReceiver Buffer Register RBR Receiver Buffer Register RBR Field DescriptionsTransmitter Holding Register THR Field Descriptions Transmitter Holding Register THRBit Field Value Description Elsi Interrupt Enable Register IERInterrupt Enable Register IER Field Descriptions Elsi Etbei ErbiInterrupt Identification Register IIR Access considerationInterrupt Identification Register IIR Field Descriptions Interrupt Type Interrupt Source Fifo Control Register FCRInterrupt Identification and Interrupt Clearing Information IIR BitsDMAMODE1 Fifo Control Register FCR Field DescriptionsRxfiftl DMAMODE11 Txclr Rxclr FifoenDlab Line Control Register LCRLine Control Register LCR Field Descriptions Dlab EPS PEN STB WLSSTB Bit Relationship Between ST, EPS, and PEN Bits in LCRNumber of Stop Bits Generated ST Bit EPS Bit PEN Bit Parity OptionAFE Modem Control Register MCRModem Control Register MCR Field Descriptions LoopLine Status Register LSR Field Descriptions Non-FIFO modeFifo mode Line Status Register LSRSet Elsi = 1 in IER, an interrupt request is generated Register RBR Divisor Latches DLL and DLHDivisor MSB Latch DLH Field Descriptions Divisor LSB Latch DLL Field DescriptionsTYP Peripheral Identification Registers PID1 and PID2CLS REV CLSUtrst Power and Emulation Management Register PwremumgmtUtrst Urrst FreeReference Additions/Modifications/Deletions Document Revision HistoryImportant Notice
Related manuals
Manual 120 pages 29.22 Kb