English
Language : 

TL16C752D Datasheet, PDF (39/56 Pages) Texas Instruments – TL16C752D Dual UART With 64-Byte FIFO
www.ti.com
BIT
7:5
TL16C752D
SLLSEN8B – SEPTEMBER 2015 – REVISED MARCH 2016
Table 20. AFR Bit Settings (continued)
BIT SETTINGS
DLY2 to DLY0 sets a delay after the last stop bit of the last data byte being set before the DTRx is set low, to allow for
long cable runs. The delay is in number of bit times and is enabled by 485EN. The delay starts only when both the xmt
serial shift register (TSR) is empty and the xmt fifo (THR) is empty, and if started, will be cleared by any data being
written to the THR.
LOOP MODE
LOOP mode off,
MCR4 = 0,
RX, TX active
LOOP mode on,
MCR4 = 1,
RX, TX inactive
RCVEN
RCVEN = 1
RCVEN = 0
RCVEN = 1
RCVEN = 0
Table 21. LOOP and RCVEN Functionality
AFR
AFR = 10
AFR = 14
AFR = 12
AFR = 00
AFR = 04
AFR = 02
AFR = 10
AFR = 14
AFR = 12
AFR = 00
AFR = 04
AFR = 02
MODE
RS-232
RS-485
IrDA
RS-232
RS-485
IrDA
RS-232
RS-485
IrDA
RS-232
RS-485
IrDA
DESCRIPTION
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold and error detection interrupts available
Data stored in receive FIFO
No data stored in receive FIFO, hence no interrupts available
No data stored in receive FIFO, hence no interrupts available
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold, timeout, and error detection interrupts available
Data stored in receive FIFO
Receive threshold and error detection interrupts available
Data stored in receive FIFO
Receive threshold and error detection interrupts available
Data stored in receive FIFO
Receive threshold and error detection interrupts available
Data stored in receive FIFO
8.5.17 RS-485 Mode
The RS-485 mode is intended to simplify the interface between the UART channel and an RS-485 driver or
transceiver. When enabled by setting 485EN, the DTRx output goes high one bit time before the first stop bit of
the first data byte being sent, and remains high as long as there is pending data in the TSR or THR (xmt fifo).
After both are empty (after the last stop bit of the last data byte), the DTRx output stays high for a programmable
delay of 0 to 15 bit times, as set by DLY[2:0]. This helps preserve data integrity over long signal lines. This is
illustrated in the following.
Often RS-485 packets are relatively short and the entire packet can fit within the 64 byte xmt fifo. In this case, it
goes empty when the TSR goes empty. But in cases where a larger block needs to be sent, it is advantageous to
reload the xmt fifo as soon as it is depleted. Otherwise, the transmission stalls while waiting for the xmt fifo to be
reloaded, which varies with processor load. In this case, it is best to also set 485LG (large block), which causes
the transmit interrupt to occur wither when the THR becomes empty (if the xmt fifo level was not above the
threshold), or when the xmt fifo threshold is crossed. The reloading of the xmt fifo occurs while some data is
being shifted out, eliminating fifo underrun. If desired, when the last bytes of a current transmission are being
loaded in the xmt fifo, 485LG can be cleared before the load and the transmit interrupt occurs on the TSR going
empty.
Copyright © 2015–2016, Texas Instruments Incorporated
Product Folder Links: TL16C752D
Submit Documentation Feedback
39