xr17l152im Exar Corporation, xr17l152im Datasheet - Page 29

no-image

xr17l152im

Manufacturer Part Number
xr17l152im
Description
3.3v Pci Bus Dual Uart
Manufacturer
Exar Corporation
Datasheet
XR17L152
3.3V PCI BUS DUAL UART
REV. 1.1.0
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.
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.
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.
F
4.7
4.6.3
4.6.4
IGURE
13. T
Receiver
(8 X M O D E R e g iste r)
A u to S o ftw are F lo w C on tro l
(X o ff1 /2 a nd X o n1 /2 R e g .
A u to C T S F lo w C on tro l (C T S # p in )
F low C o n tro l C h a ra cte rs
1 6X o r 8 X C lo ck
Transmitter Operation in FIFO
Auto RS485 Operation
RANSMIITTER
O
D a ta B y te
T ra nsm it
PERATION IN
FIFO
T ra nsm it D a ta S hift R eg iste r
AND
F
(6 4 -B yte )
T ra nsm it
LOW
F IF O
(T S R )
29
C
ONTROL
M
ODE
T H R In terru p t (IS R b it-1 ) fa lls
w h e n be co m e s e m pty. F IF O
b elow P ro g ra m m e d T rig g e r
is E n a bled b y F C R bit-0 = 1
L ev el (T X T R G ) a n d th e n
DISCONTINUED
áç
áç
áç
áç
T X F IF O 1

Related parts for xr17l152im