English
Language : 

XR17L152 Datasheet, PDF (29/55 Pages) Exar Corporation – 3.3V PCI BUS DUAL UART
XR17L152
3.3V PCI BUS DUAL UART
REV. 1.1.0
áç
DISCONTINUED
4.6.3 Transmitter Operation in FIFO
The host may fill the transmit FIFO with up to 64 bytes of transmit data. The THR empty flag (LSR bit-5) is set
whenever the FIFO is empty. The THR empty flag can generate a transmit empty interrupt (ISR bit-1) when the
amount of data in the FIFO falls below its programmed trigger level (see TXTRG register). The transmit empty
interrupt is enabled by IER bit-1. The TSR flag (LSR bit-6) is set when TSR becomes completely empty.
Furthermore, with the RS485 half-duplex direction control enabled (FCTR bit-5=1) the source of the transmit
empty interrupt changes to TSR empty instead of THR empty. This is to ensure the RTS# output is not
changed until the last stop bit of the last character is shifted out.
4.6.4 Auto RS485 Operation
The auto RS485 half-duplex direction control changes the behavior of the transmitter when enabled during
powerup or reset by the EN485# pin or in software by FCTR bit-5. It de-asserts RTS# or DTR# after a specified
delay indicated in MSR[7:4] following the last stop bit of the last character that has been transmitted. This helps
in turning around the transceiver to receive the remote station’s response. The delay optimizes the time
needed for the last transmission to reach the farthest station on a long cable network before switching off the
line driver. This delay prevents undesirable line signal disturbance that causes signal degradation. It also
changes the transmitter empty interrupt to TSR empty instead of THR empty.
FIGURE 13. TRANSMIITTER OPERATION IN FIFO AND FLOW CONTROL MODE
Transm it
Data Byte
Flow Control Characters
(Xoff1/2 and Xon1/2 Reg.
Auto Softw are Flow C ontrol
Transm it
F IF O
(64-Byte)
TH R Interrupt (ISR bit-1) falls
below Program m ed Trigger
Level (TXTRG) and then
when becomes em pty. FIFO
is Enabled by FCR bit-0=1
16X or 8X Clock
(8XM O DE Register)
Transm it Data Shift R egister
(TSR)
Auto CTS Flow C ontrol (CTS# pin)
TXFIFO 1
4.7 Receiver
The receiver section contains an 8-bit Receive Shift Register (RSR) and Receive Holding Register (RHR). The
RSR uses the 16X or 8X clock for timing. It verifies and validates every bit on the incoming character in the
middle of each data bit. On the falling edge of a start or false start bit, an internal receiver counter starts
counting at the 16X or 8X clock rate. After 8 or 4 clocks the start bit period should be at the center of the start
bit. At this time the start bit is sampled and if it is still a logic 0 it is validated. Evaluating the start bit in this
manner prevents the receiver from assembling a false character. The rest of the data bits and stop bits are
sampled and validated in this same manner to prevent false framing. If there were any error(s), they are
reported in the LSR bits 1-4 and an LSR interrupt is generated immediately if IER bit-2 is enabled. Upon
unloading the receive data byte from RHR, the receive FIFO pointer is bumped and the LSR bits are
immediately updated to reflect the status of the data byte in the RHR. The RHR can generate a receive data
ready interrupt upon receiving a character or delay until it reaches the FIFO trigger level. Furthermore, data
delivery to the host is guaranteed by a receive data ready time-out function when receive data does not reach
the receive FIFO trigger level. This time-out delay is 4 word lengths as defined by LCR[1:0] plus 12 bits time.
The RHR interrupt is enabled by IER bit-0.
29