9.2.3Line Status Register (LSR)

Figure 16. Line Status Register (LSR)

Register 5

RCVR Err

TEMT

THRE

BI

FE

PE

OE

DR

This read-only register provides UART status information to the host. Bits 4:1 report error conditions. These bits are reset to ‘0’ any time the host reads this register. An interrupt is generated to the host whenever any one of the bits (4:1) is set to ‘1’ and the RLSIE (receiver line status interrupt) has been enabled. Bits 0, 5, and 6 provide status information for sending and receiving data through the THR (Transmit Holding register) and the RBR (Receiver Buffer register). Bits 0, 5, 6 are reset to ‘1’ only when the host performs a specified action.

In FIFO mode, the modem keeps track of the character in which an error has occurred and does not report the error to the DTE until the associated character gets to the top of the stack.

Note: In FIFO mode, the DTE must write a data byte in the RX FIFO by the loopback mode to write to LSR2–LSR4. LSR0 and LSR7 cannot be written to in FIFO mode.

 

Error in RCVR FIFO—In 16C450 emulation mode, this bit is always a ‘0’.

Bit 7

In FIFO mode, this bit is set to ‘1’ by the DCE whenever at least one parity error, framing error, or break indication has

occurred in the RCVR FIFO. This bit is cleared when the DTE reads the LSR register and there are no subsequent FIFO

 

 

errors.

 

 

 

TEMT (Transmitter Empty)—This bit is set to ‘1’ by the DCE whenever the THR (Transmit Holding register) and

Bit 6

transmitter shift register are empty. This bit is automatically reset to ‘0’ by the DCE whenever the host writes a byte to the

THR.

 

 

In FIFO mode, this bit is set to ‘1’ whenever the transmitter FIFO and shift register are both empty.

 

 

 

THRE (Transmitter Holding Register Empty)—This bit is set to ‘1’ whenever the THR (Transmit Holding register) is

 

empty. This bit is set to ‘0’ whenever the host writes data into the THR. Additionally, if the THREIE (Transmitter Holding

Bit 5

Register Empty Interrupt Enable) is set to ‘1’, the modem causes an interrupt to the host whenever THRE goes to ‘1’.

 

In FIFO mode, this bit is set to ‘1’ whenever the XMIT FIFO is empty. This bit is then reset to ‘0’ when at least one byte is

 

written to the XMIT FIFO.

 

 

 

BI (Break Interrupt)—This bit is set to ‘1’ whenever the received data are spaces (logic 0) for at least 2M + 3 bits (M =

 

start bit + # of data character bits + parity bit + # of stop bits). This bit is reset to ‘0’ whenever the host reads the LSR

Bit 4

register. The modem waits for the valid start bit, before again transferring data to the FIFO.

 

When a break occurs in FIFO mode, a single null character is placed in the RVCR FIFO. The BI bit is then set when the

 

zero character gets to the top of the FIFO stack.

 

 

 

FE (Framing Error)—This bit is set to ‘1’ whenever a valid stop bit (logic 1) has not been detected after the last data bit or

 

parity bit. This bit is reset to ‘0’ whenever the host reads the LSR register. The UART tries to re-synchronize after a

Bit 3

framing error.

 

In FIFO mode, the modem FE bit is set to ‘1’ whenever the associated framing error character has reached the top of the

 

stack.

 

 

 

PE (Parity Error)—This bit is set to ‘1’ whenever the received data character does not have the correct even or odd parity,

 

as selected by the EPS (even parity select) bit [LCR4] and the stick parity bit [LCR 5]. This bit is reset to ‘0’ whenever the

Bit 2

host reads the LSR register.

 

In FIFO mode, the modem PE bit is set to ‘1’ whenever the associated framing error character has reached the top of the

 

stack.

 

 

Bit 1

OE (Overrun Error)—Not supported.

 

 

Bit 0

Data Ready—This bit is set to ‘1’ whenever the modem writes a new received data character into the RBR (Receiver

Buffer register) or FIFO. This bit is reset to ‘0’ whenever the DTE reads the RBR or FIFO.

 

 

 

Page 96
Image 96
Intel 537EX manual Line Status Register LSR, Bit Framing error, Stack, Bit Host reads the LSR register

537EX specifications

The Intel 537EX is a powerful and innovative embedded processor designed for a range of applications, particularly in the fields of industrial automation, telecommunications, and transport management systems. This processor is a member of Intel's embedded product line, tailored specifically to meet the demands of systems that require high reliability and long lifecycle support.

One of the main features of the Intel 537EX is its multi-core architecture, which enables efficient parallel processing capabilities. This allows for the execution of multiple tasks simultaneously, significantly improving overall system performance. The processor also incorporates Intel’s advanced power management technology, which ensures that the device consumes energy efficiently, enhances thermal performance, and prolongs the lifespan of the system.

The Intel 537EX supports a range of connectivity options, including high-speed Ethernet and Serial ATA interfaces. This ensures that it can easily integrate into existing systems, seamlessly supporting applications that require robust data transfer capabilities. Additionally, the processor is equipped with multiple I/O ports, facilitating the connection of various peripherals and sensors, which is crucial in industrial applications.

One of the standout technologies within the Intel 537EX is its support for hardware virtualization. This feature allows for the creation of multiple virtual environments within a single physical structure, optimizing resource utilization and enhancing system flexibility. Additionally, Intel’s integrated security technologies provide a significant layer of protection against potential threats, ensuring that embedded systems remain secure.

Another characteristic of the Intel 537EX is its extensive software support, which includes compatibility with various operating systems and development environments. This versatility makes it an attractive choice for developers looking to build or upgrade their embedded systems. With access to Intel's comprehensive software tools, developers can quickly optimize applications to take full advantage of the processor's capabilities.

The Intel 537EX also boasts excellent thermal performance, allowing it to operate efficiently in harsh environments. This is crucial for embedded applications in industrial settings where temperature fluctuations are common. Overall, the Intel 537EX is engineered to deliver high-performance processing power, superior connectivity, and enhanced security, solidifying its position as a reliable choice for demanding embedded applications.