TEXAS INSTRUMENTS TL16C550B, TL16C550BI Technical data

查询TL16C550B供应商
D
Capable of Running With All Existing TL16C450 Software
D
D
In the FIFO Mode, Transmitter and Receiver Are Each Buffered With 16-Byte FIFOs to Reduce the Number of Interrupts to the CPU
D
In the TL16C450 Mode, Hold and Shift Registers Eliminate the Need for Precise Synchronization Between the CPU and Serial Data
D
Programmable Baud Rate Generator Allows Division of Any Input Reference Clock by 1
16
to (2 Clock
D
Standard Asynchronous Communication Bits (Start, Stop, and Parity) Added to or Deleted From the Serial Data Stream
D
Independent Receiver Clock Input
D
Transmit, Receive, Line Status, and Data Set Interrupts Independently Controlled
description
–1) and Generates an Internal 16×
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
D
Fully Programmable Serial Interface Characteristics: – 5-, 6-, 7-, or 8-Bit Characters – Even-, Odd-, or No-Parity Bit Generation
and Detection – 1-, 1 1/2-, or 2-Stop Bit Generation – Baud Generation (DC to 562 Kbit/s)
D
False-Start Bit Detection
D
Complete Status Reporting Capabilities
D
3-State Outputs Provide TTL Drive Capabilities for Bidirectional Data Bus and Control Bus
D
Line Break Generation and Detection
D
Internal Diagnostic Capabilities: – Loopback Controls for Communications
Link Fault Isolation – Break, Parity, Overrun, Framing Error
Simulation
D
Fully Prioritized Interrupt System Controls
D
Modem Control Functions (CTS, RTS, DSR, DTR
, RI, and DCD)
D
Faster Plug-In Replacement for National Semiconductor NS16550A
The TL16C550B and the TL16C550BI are functional upgrades of the TL16C450 asynchronous communications element (ACE). Functionally identical to the TL16C450 on power up (character mode TL16C550B and TL16C550BI can be placed in an alternate mode (FIFO) to relieve the CPU of excessive software overhead.
In this alternate FIFO mode, internal FIFOs are activated allowing 16 bytes (plus 3 bits of error data per byte in the receiver FIFO) to be stored in both receive and transmit modes. To minimize system overhead and maximize system efficiency, all logic is on the chip. Two of the TL16C450 terminal functions (RXRDY TXRDY
The TL16C550B and the TL16C550BI perform serial-to-parallel conversions on data received from a peripheral device or modem and parallel-to-serial conversion on data received from its CPU. The CPU can read and report on the status of the ACE at any point in the ACE operation. Reported status information includes: the type of transfer operation in progress, the status of the operation, and any error conditions encountered.
) have been changed to allow signalling of DMA transfers.
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
), the
and
†The TL16C550B and the TL16C550BI can also be reset to the TL16C450 mode under software control.
PRODUCTION DATA information is current as of publication date. Products conform to specifications per the terms of Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
Copyright 1996, Texas Instruments Incorporated
1
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
description (continued)
The TL16C550B and the TL16C550BI ACE include programmable, on-board, baud rate generators. These generators are capable of dividing a reference clock input by divisors from 1 to (2
16
–1) and producing a 16× clock for driving the internal transmitter logic. Provisions are included to use this 16× clock to drive the receiver logic. Also included in the ACE is a complete modem control capability and a processor interrupt system that may be software tailored to user requirements to minimize the computing required to handle the communications link.
The TL16C550B is available in a 40-pin DIP (N) package, 44-pin PLCC (FN) package, and 48-pin TQFP (PT) package. The TL16C550BI is available in a 44-pin PLCC (FN) package.
2
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
D0 D1 D2 D3 D4 D5 D6 D7
RCLK
SIN
SOUT
CS0 CS1 CS2
BAUDOUT
XIN
XOUT
WR1 WR2
V
SS
N PACKAGE
(TOP VIEW)
1
40
2
39
3
38
4
37
5
36
6
35
7
34
8
33
9
32
10
31
11
30
12
29
13
28
14
27
15
26
16
25
17
24
18
23
19
22
20
21
V
CC
RI DCD DSR CTS MR OUT1 DTR RTS OUT2 INTRPT RXRDY A0 A1 A2 ADS TXRDY DDIS RD2 RD1
D5 D6 D7
RCLK
SIN
NC
SOUT
CS0 CS1 CS2
BAUDOUT
FN PACKAGE
(TOP VIEW)
CC
D4D3D2D1D0NCV
54 321644
7 8 9 10 11 12 13 14 15 16 17
18 19
XIN
20 21 22 23
WR2
WR1
XOUT
SS
V
RI
24 25 26 27 28
NC
RD2
RD1
42 41 4043
DCD
DSR
CTS
MR
39
OUT1
38
DTR
37
RTS
36
OUT2
35
NC
34
INTRPT
33
RXRDY
32
A0
31
A1
30
A2
29
ADS
DDIS
TXRDY
BAUDOUT
NC–No internal connection
NC
D5 D6 D7
RCLK
NC
SIN
SOUT
CS0 CS1 CS2
NCD4D3D2D1
47 46 45 44 4348 42
1 2 3 4 5 6 7 8 9 10 11 12
14 15
13
NC
XIN
PT PACKAGE
(TOP VIEW)
17 18 19 20
16
WR1
WR2
XOUT
V
D0
SS
CC
V
RD1
RI
40 39 3841
21
RD2
DCD
DSR
22 23 24
NC
DDIS
NC
CTS
37
36 35 34 33 32 31 30 29 28 27 26 25
ADS
TXRDY
NC MR OUT1 DTR RTS OUT2 INTRPT RXRDY A0 A1 A2 NC
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
3
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
functional block diagram
S e
l e c
t
Receiver
Buffer
Register
D7–D0
8–1
Internal Data Bus
Data
Bus
Buffer
8
Receiver
FIFO
Receiver
Shift
Register
10
SIN
A0 A1 A2
CS0 CS1 CS2
ADS
MR RD1 RD2
WR1 WR2
DDIS
TXRDY
XIN
XOUT
RXRDY
28 27
26
12 13
14 25
35 21
22 18 19 23 24 16 17 29
Select
and
Control
Logic
Line
Control
Register
Divisor
Latch (LS)
Divisor
Latch (MS)
Line
Status
Register
Transmitter
Holding
Register
Modem
Control
Register
Modem
Status
Register
Interrupt
Enable
Register
Baud
Generator
Transmitter
FIFO
Interrupt
Control
Logic
Receiver
Timing and
Control
Line
Control
Register
S e
l e c
t
Line
Control
Register
Modem
Control
Logic
9
15
11
32 36 33 37 38 39 34 31
30
RCLK
BAUDOUT
SOUT
RTS CTS DTR DSR DCD RI OUT1 OUT2
INTRPT
Terminal numbers shown are for the N package.
4
Interrupt
I/O
Register
FIFO
Control
Register
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
Terminal Functions
TERMINAL
NAME
A0 A1 A2
ADS 25 28 24 I Address strobe. When ADS is active (low), the register select signals (A0, A1, and A2) and chip select
BAUDOUT 15 17 12 O Baud out. BAUDOUT is a 16× clock signal for the transmitter section of the ACE. The clock rate is
CS0 CS1 CS2
CTS 36 40 38 I Clear to send. CTS is a modem status signal. Its condition can be checked by reading bit 4 (CTS) of
D0 D1 D2 D3 D4 D5 D6 D7
DCD 38 42 40 I Data carrier detect. DCD is a modem status signal. Its condition can be checked by reading bit 7 (DCD)
DDIS 23 26 22 O Driver disable. This output is active (high) when the CPU is not reading data. When active, this output
DSR 37 41 39 I Data set ready. DSR is a modem status signal. Its condition can be checked by reading bit 5 (DSR) of
DTR 33 37 33 O Data terminal ready. When active (low), DTR informs a modem or data set that the ACE is ready to
INTRPT 30 33 30 O Interrupt. When active (high), INTRPT informs the CPU that the ACE has an interrupt to be serviced.
MR 35 39 35 I Master reset. When active (high), MR clears most ACE registers and sets the state of various output
OUT1 OUT2
RCLK 9 10 5 I Receiver clock. RCLK is the 16× baud rate clock for the receiver section of the ACE.
NO.NNO.FNNO.
28
31
27
30
26
29
12
14
13
15
14
16
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
343138353431O Outputs 1 and 2. User-designated outputs that are set to their active low states by setting their
I/O
PT
28
I Register select. A0–A2 are used during read and write operations to select the ACE register to read 27 26
9 10 11
43 44 45 46 47
2
3
4
from or write to. Refer to Table 1 for register addresses, and refer to the address strobe (ADS description.
signals (CS0, CS1, CS2 select signals are held in the state they are in when the low-to-high transition of ADS
established by the reference oscillator frequency divided by a divisor specified by the baud generator divisor latches. BAUDOUT
I Chip select. When CS0 = high, CS1 = high, and CS2 = low, these three inputs select the ACE. When
any of these inputs are inactive, the ACE remains inactive. Refer to the ADS
the modem status register. Bit 0 (CTS) of the modem status register indicates that this signal has changed states since the last read from the modem status register. If the modem status interrupt is enabled when CTS
I/O Data bus. Eight data lines with 3-state outputs provide a bidirectional path for data, control, and status
information between the ACE and the CPU.
of the modem status register. Bit 3 (DCD) of the modem status register indicates that this signal has changed states since the last read from the modem status register. If the modem status interrupt is enabled when DCD
can disable an external transceiver.
the modem status register. Bit 1 (DSR) of the modem status register indicates this signal has changed states since the last read from the modem status register. If the modem status interrupt is enabled when DSR
changes state, an interrupt is generated.
establish communication. DTR register to a high level. DTR loop mode operation, or clearing the DTR bit.
Four conditions that cause an interrupt to be issued are: a receiver error, received data is available or timed out (FIFO mode only), the transmitter holding register is empty, or an enabled modem status interrupt. The INTRPT output is reset (deactivated) either when the interrupt is serviced or as a result of a master reset.
signals. Refer to Table 2.
respective modem control register bits (OUT1 and OUT2) high. OUT1 (high) states as a result of master reset, during loop mode operations, or by clearing bit 2 (OUT1) or bit 3 (OUT2) of the modem control register.
) drive the internal select logic directly; when high, the register select and chip
can also be used for the receiver section by tying this output to RCLK.
changes state, an interrupt is generated.
changes state, an interrupt is generated.
is placed in the active state by setting the DTR bit of the modem control
is placed in the inactive state either as a result of a master reset, during
DESCRIPTION
) signal
occurs.
signal description.
and OUT2 are set to their inactive
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
5
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
Terminal Functions (Continued)
TERMINAL
NAME
RD1 RD2
RI 39 43 41 I Ring indicator. RI is a modem status signal. Its condition can be checked by reading bit 6 (RI) of the
RTS 32 36 32 O Request to send. When active, RTS informs the modem or data set that the ACE is ready to receive
RXRDY 29 32 29 O Receiver ready output. Receiver direct memory access (DMA) signalling is available with this terminal.
SIN 10 11 7 I Serial data input. Input from a connected communications device SOUT 11 13 8 O Composite serial data output. Output to a connected communication device. SOUT is set to the marking
TXRDY 24 27 23 O T ransmitter ready output. Transmitter DMA signalling is available with this terminal. When operating in
V
CC
V
SS
WR1 WR2
XIN XOUT
NO.NNO.FNNO.
212224251920I Read inputs. When either input is active (low or high respectively) while the ACE is selected, the CPU
40 44 42 5-V supply voltage 20 22 18 Supply common 181920211617I Write inputs. When either input is active (high or low respectively) and while the ACE is selected, the
161718191415I/O External clock. XIN and XOUT connect the ACE to the main timing reference (clock or crystal).
PT
I/O
is allowed to read status information or data from a selected ACE register. Only one of these inputs is required for the transfer of data during a read operation; the other input should be tied in its inactive state (i.e., RD2 tied low or RD1
modem status register. Bit 2 (TERI) of the modem status register indicates that the RI transitioned from a low to a high state since the last read from the modem status register. If the modem status interrupt is enabled when this transition occurs, an interrupt is generated.
data. RTS (high) state either as a result of a master reset or during loop mode operations or by clearing bit 1 (RTS) of the MCR.
When operating in the FIFO mode, one of two types of DMA signalling can be selected using the FIFO control register bit 3 (FCR3). When operating in the TL16C450 mode, only DMA mode 0 is allowed. Mode 0 supports single-transfer DMA in which a transfer is made between CPU bus cycles. Mode 1 supports multitransfer DMA in which multiple transfers are made continuously until the receiver FIFO has been emptied. In DMA mode 0 (FCR0 = 0 or FCR0 = 1, FCR3 = 0), when there is at least one character in the receiver FIFO or receiver holding register, RXRDY been active but there are no characters in the FIFO or holding register, RXRDY In DMA mode 1 (FCR0 = 1, FCR3 = 1), when the trigger level or the timeout has been reached, RXRDY goes active (low); when it has been active but there are no more characters in the FIFO or holding register, it goes inactive (high).
(set) state as a result of master reset.
the FIFO mode, one of two types of DMA signalling can be selected using FCR3. When operating in the TL16C450 mode, only DMA mode 0 is allowed. Mode 0 supports single-transfer DMA in which a transfer is made between CPU bus cycles. Mode 1 supports multitransfer DMA in which multiple transfers are made continuously until the transmit FIFO has been filled.
CPU is allowed to write control words or data into a selected ACE register. Only one of these inputs is required to transfer data during a write operation; the other input should be tied in its inactive state (i.e., WR2 tied low or WR1
is set to its active state by setting the RTS modem control register bit and is set to its inactive
tied high).
tied high).
DESCRIPTION
input has
is active low. When RXRDY has
goes inactive (high).
6
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
O erating free-air tem erature, T
A
IlInput current
CC
,
SS
,
10µA
,
,
V
CC
5.25 V, V
SS
0,
OZ
g
O
µ
V
CC
T
A
25 C
SIN, DSR, DCD, CTS, and RI at 2 V
ICCSu ly current
All oth
XTAL1 at 4 MH
10
mA
f
MHz
T
A
25°C
g
All other terminals grounded
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
absolute maximum ratings over operating free-air temperature range (unless otherwise noted)
Supply voltage range, V Input voltage range at any input, V Output voltage range, V
Continuous total power dissipation at (or below) 70°C 300 mW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Storage temperature range, T Operating free-air temperature range, T
Case temperature for 10 seconds, T
Lead temperature 1,6 mm (1/16 inch) from case for 10 seconds: N or PT package 260°C. . . . . . . . . . . . . . .
Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
NOTE 1: All voltage values are with respect to VSS (ground).
(see Note 1) –0.5 V to 7 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CC
–0.5 V to 7 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
O
–0.5 V to 7 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I
–65°C to 150°C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
stg
: TL16C550B 0°C to 70°C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A
TL16C550BI –40°C to 85°C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
: FN package 260°C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C
recommended operating conditions
MIN NOM MAX UNIT
Supply voltage, V High-level input voltage, V Low-level input voltage, V
p
CC
p
IH
IL
TL16C550B 0 70 °C TL16C550BI –40 85 °C
4.75 5 5.25 V 2 V
–0.5 0.8 V
CC
V
electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETER TEST CONDITIONS MIN TYP†MAX UNIT
V
OH
V
OL
I
OZ
I
C
i(CLK)
C
o(CLK)
C
i
C
o
All typical values are at VCC = 5 V, TA = 25°C.
These parameters apply for all outputs except XOUT.
High-level output voltage IOH = –1 mA 2.4 V
Low-level output voltage IOL = 1.6 mA 0.4 V
V
p
High-impedance-state output current
Supply current
Clock input capacitance 15 20 pF Clock output capacitance Input capacitance Output capacitance
= 5.25 V, V
VI = 0 to 5.25 V, V
= 5.25 V VO = 0 to 5.25 V, Chip selected in write mode or chip deselect
= 5.25 V,
er inputs at 0.8 V,
No load on outputs, Baud rate = 50 kbit/s
VCC = 0, VSS = 0,
= 1
All other terminals
,
rounded
= 0,
All other terminals floating V
= 0
°
=
,
,
z,
=
,
°
20 30 pF
6 10 pF
10 20 pF
±20 µA
10 mA
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
7
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
system timing requirements over recommended ranges of supply voltage and operating free-air temperature
PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS MIN MAX UNIT
t
Cycle time, read (tw7 + td8 + td9) RC 87 ns
cR
t
Cycle time, write (tw6 + td5 + td6) WC 87 ns
cW
t
Pulse duration, clock high t
w1
t
Pulse duration, clock low t
w2
t
Pulse duration, address strobe low t
w5
t
Pulse duration, write strobe t
w6
t
Pulse duration, read strobe tRD 3 40 ns
w7
t
Pulse duration, master reset t
w8
t
Setup time, address valid before ADS t
su1
t
Setup time, chip select valid before ADS t
su2
t
Setup time, data valid before WR1 or WR2 t
su3
t
Hold time, address low after ADS t
h1
t
Hold time, chip select valid after ADS t
h2
t
Hold time, chip select valid after WR1 or WR2 t
h3
t
Hold time, address valid after WR1 or WR2 t
h4
t
Hold time, data valid after WR1 or WR2 t
h5
t
Hold time, chip select valid after RD1 or RD2 t
h6
t
Hold time, address valid after RD1 or RD2 t
h7
t
Delay time, chip select valid before WR1 or WR2 t
d4
t
Delay time, address valid before WR1 or WR2 t
d5
t
Delay time, write cycle, WR1 or WR2to ADS t
d6
t
Delay time, chip select valid to RD1 or RD2 t
d7
t
Delay time, address valid to RD1 or RD2 t
d8
t
Delay time, read cycle, RD1 or RD2to ADS tRC 3 40 ns
d9
t
Delay time, RD1or RD2to data valid t
d10
t
Delay time, RD1 or RD2to floating data t
d11
Only applies when ADS is low
XH
XL
ADS
WR
MR
AS CS DS AH
CH
WCS
WA DH
RCS
RA
CSW
AW WC
CSR
AR
RVD
HZ
1 f = 9 MHz maximum 40 ns 1 f = 9 MHz maximum 40 ns
2,3 9 ns
2 40 ns
1 µs 2,3 8 ns 2,3 8 ns
2 15 ns 2,3 0 ns 2,3 0 ns
2 10 ns
2 10 ns
2 5 ns
3 10 ns
3 20 ns
2 7 ns
2 7 ns
2 40 ns
3 7 ns
3 7 ns
3 CL = 75 pF 45 ns
3 CL = 75 pF 20 ns
system switching characteristics over recommended ranges of supply voltage and operating free-air temperature (see Note 2)
PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS MIN MAX UNIT
t
dis(R)
NOTE 2: Charge and discharge time is determined by VOL, VOH, and external loading.
Disable time, RD1↑↓ or RD2↓↑ to DDIS↑↓ t
RDD
3 CL = 75 pF 20 ns
baud generator switching characteristics over recommended ranges of supply voltage and operating free-air temperature, C
PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS MIN MAX UNIT
t
w3
t
w4
t
d1
t
d2
8
Pulse duration, BAUDOUT low t Pulse duration, BAUDOUT high t Delay time, XIN to BAUDOUT t Delay time, XIN↑↓ to BAUDOUT t
= 75 pF
L
LW
HW
BLD
BHD
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
1 f = 9 MHz, CLK ÷ 2 80 ns 1 f = 9 MHz, CLK ÷ 2 80 ns 1 75 ns 1 65 ns
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
receiver switching characteristics over recommended ranges of supply voltage and operating free-air temperature (see Note 3)
PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS MIN MAX UNIT
t
Delay time, RCLK to sample t
d12
Delay time, stop to set interrupt or read
t
d13
RBR to LSI interrupt or stop to RXRDY
t
Delay time, read RBR/LSR to reset interrupt low t
d14
NOTE 3: In the FIFO mode, the read cycle (RC) = 425 ns (minimum) between reads of the receiver FIFO and the status registers (interrupt
identification register or line status register).
SCD
t
SINT RINT
transmitter switching characteristics over recommended ranges of supply voltage and operating free-air temperature
PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS MIN MAX UNIT
Delay time, initial write (INTRPT low) to transmit
t
d15
start (SOUT low) Delay time, stop (SOUT low) to interrupt (INTRPT
t
d16
high) Delay time, WR THR high to reset interrupt
t
d17
(INTRPT low) Delay time, initial WR THR low to THRE interrupt
t
d18
(INTRPT high) Delay time, RD IIR low to reset THRE interrupt
t
d19
(INTRPT low) Delay time, WR THR high to TXRDY high
t
d20
(inactive) Delay time, start (SOUT low) to TXRDY low
t
d21
(active)
t
IRS
t
STI
t
HR
t
t
t
WXI
t
SXA
SI
IR
4 10 ns 4,5,6,7,8 1 4,5,6,7,8 CL = 75 pF 40 ns
9 8 24
9 8 9
9 CL = 75 pF 50 ns
9 16 32
9 CL = 75 pF 35 ns
10,11 CL = 75 pF 35 ns
10,11 CL = 75 pF 8
RCLK
cycle
baudout
cycles
baudout
cycles
baudout
cycles
baudout
cycles
modem control switching characteristics over recommended ranges of supply voltage and operating free-air temperature, C
PARAMETER ALT. SYMBOL FIGURE MIN MAX UNIT
t
Delay time, WR MCR low to output (RTS, DTR, OUT1, OUT2) low or high t
d22
Delay time, modem interrupt (CTS, DSR, DCD) low to set interrupt
t
d23
(INTRPT) high
t
Delay time, RD MSR low to reset interrupt (INTRPT) low t
d24
= 75 pF
L
MDO t
SIM RIM
12 50 ns 12 35 ns 12 40 ns
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
9
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
t
w2
t
w4
t
d2
XIN
BAUDOUT
(1/1)
BAUDOUT
(1/2)
t
w1
t
d1
t
d1
t
w3
N
t
d2
BAUDOUT
(1/3)
BAUDOUT
(1/N)
(N > 3)
2 XIN Cycles
(N–2) XIN Cycles
Figure 1. Baud Generator Timing Waveforms
10
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
t
w5
TL16C550B, TL16C550BI
ADS
A0–A2
CS0, CS1, CS2
WR1, WR2
D7–D0
Applicable only when ADS
50%
50%50%
t
su1
t
h1
Valid Valid
t
su2
50% 50%
is low.
Valid Valid
t
h3
t
t
d4
t
d5
50% 50%
t
su3
w6
Active
Valid Data
t
h2
t
h4
t
d6
t
h5
50%
50%50%
Figure 2. Write Cycle Timing Waveforms
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
11
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
t
w5
ADS
A0–A2
CS0, CS1, CS2
RD1, RD2
DDIS
50%
50%
50%50%
t
su1
t
h1
Valid Valid
Valid Valid
t
d7
td8†
50% 50%
t
dis(R)
50% 50%
t
su2
t
h2
50%
t
h6
t
w7
Active
50% 50%
50%
50%
t
h7
t
d9
t
dis(R)
D7–D0
Applicable only when ADS
Figure 3. Read Cycle Timing Waveforms
is low.
t
d10
Valid Data
t
d11
12
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
RCLK
Sample Clock
TL16C450 Mode:
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
8 CLKs
t
TL16C550B, TL16C550BI
d12
SIN
Sample Clock
INTRPT
(data ready)
INTRPT
(RCV error)
RD1
, RD2
(read RBR)
RD1
, RD2
(read LSR)
Parity StopStart Data Bits 5–8
t
d13
50%
50%
Figure 4. Receiver Timing Waveforms
t
d14
Active
t
d14
50%
50%
50%50%
Active
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
13
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
SIN
Sample Clock
Trigger-Level
Interrupt
(FCR6, 7 = 0, 0)
INTRPT
Line Status
Interrupt (LSI)
RD1
(RD LSR)
RD1
(RD RBR)
NOTE A: For a timeout interrupt, t
Figure 5. Receiver FIFO First Byte (Sets DR Bit) Waveforms
Data Bits 5–8
= 8 RCLKs.
d13
t
(see Note A)
d13
50%
t
d14
Stop
Active
(FIFO at or above
50%
t
d14
50%50%
50%
50%
Active
trigger level) (FIFO below
trigger level)
SIN
Sample Clock
Timeout or
Trigger-Level
Interrupt
Line Status
Interrupt (LSI)
RD1, RD2
(RDLSR)
RD1, RD2
(RDRBR)
NOTE A: For a timeout interrupt, t
t
(see Note A)
d13
d13
t
d13
Active Active
Previous Byte
Read From FIFO
= 8 RCLKs.
Stop
50%
Top Byte of FIFO
t
d14
50% 50%
t
d14
50%
(FIFO at or above
50%
50%50%
trigger level) (FIFO below
trigger level)
Figure 6. Receiver FIFO Bytes Other Than the First Byte (DR Internal Bit Already Set) Waveforms
14
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
TL16C550B, TL16C550BI
RD
(RD RBR)
SIN
(first byte)
Sample Clock
(see Note B
RXRDY
NOTES: A. This is the reading of the last byte in the FIFO.
B. For a timeout interrupt, t
= 8 RCLKs.
d13
t
d13
Stop
)
50%
Figure 7. Receiver Ready (RXRDY) Waveforms, FCR0 = 0 or FCR0 = 1 and FCR3 = 0 (Mode 0)
RD
(RD RBR)
(first byte that reaches
the trigger level)
SIN
t
d14
50%
50%
Active
See Note A
50%
Active
See Note A
Sample Clock
t
= 8 RCLKs.
d13
d13
(see Note B)
RXRDY
NOTES: A. This is the reading of the last byte in the FIFO.
B. For a timeout interrupt, t
Figure 8. Receiver Ready (RXRDY) Waveforms, FCR = 1 or FCR3 = 1 (Mode 1)
t
d14
50%50%
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
15
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
SOUT
INTRPT
(THRE)
WR THR
RD IIR
t
d15
50%
t
d17
50%
(WR THR)
WR
SOUT
Start
50%
50% 50%
t
d18
50%
Data Bits
50%
Figure 9. Transmitter Timing Waveforms
Byte #1
Data
t
d17
50%
Parity Stop
Parity
Stop
t
d16
Start
50%
50%
50%
Start
t
50%
50%
d19
50%
t
d21
50%
TXRDY
t
d20
50%
Figure 10. Transmitter Ready (TXRDY) Waveforms, FCR0 = 0 or FCR0 = 1 and FCR3 = 0 (Mode 0)
WR
(WR THR)
SOUT
TXRDY
Data
Byte #16
t
d20
50%
50%
Parity
Stop
FIFO Full
t
d21
Start
50%
50%
Figure 11. Transmitter Ready (TXRDY) Waveforms, FCR0 = 1 and FCR3 = 1 (Mode 1)
16
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PARAMETER MEASUREMENT INFORMATION
TL16C550B, TL16C550BI
WR
(WR MCR)
RTS, DTR,
OUT1
, OUT2
CTS, DSR, DCD
INTRPT
(modem)
RD2
(RD MSR)
50% 50%
t
d22
50% 50%
50%
t
d23
t
50%
d24
50%
50%
RI
t
d22
50%
50%
t
d23
Figure 12. Modem Control Timing Waveforms
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
17
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
APPLICATION INFORMATION
C P U
B u s
D7–D0
MEMR
or I/OR
MEMW or I/ON
INTR
RESET
A0 A1 A2
L
CS
H
Figure 13. Basic TL16C550B Configuration
D7–D0
RD1 WR1
INTRPT MR
A0 A1 A2
ADS WR2 RD2
CS2 CS1 CS0
TL16C550B
(ACE)
BAUDOUT
SOUT
SIN
RTS DTR DSR DCD
CTS
XIN
XOUT
RCLK
EIA-
232-D Drivers
and Receivers
RI
3.072 MHz
Microcomputer
System
Figure 14. Typical Interface for a High-Capacity Data Bus
WR
Data Bus Data Bus
8-Bit
Bus Transceiver
Receiver Disable
Driver Disable
WR1
TL16C550B
(ACE)
D7–D0
DDIS
18
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
APPLICATION INFORMATION
TL16C550B, TL16C550BI
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
A16–A23
CPU
RSI/ABT
AD0–AD15
PHI1 PHI2
ADS
Address Decoder
Buffer
A16–A23
12 13 14
25
35
TL16C550B
CS0 CS1 CS2
ADS
MR
A0–A7
D0–D7
XIN
XOUT
BAUDOUT
RCLK
DTR RTS
OUT1 OUT2
DCD DSR
CTS
Alternate
16
17 15 9
33 32 34 31
39
RI
38 37 36
Crystal Control
20
1
8 6 5
RSTO
PHI1 PHI2
Terminal numbers shown are for the N package.
ADS
RD
TCU
WR
Figure 15. Typical TL16C550B Connection to a CPU
AD0–AD15
21
18
22
GND (V
RD1
WR1
RD2 WR2
SS)
SOUT
SIN
INTRPT
TXRDY
DDIS
RXRDY
20 40
5 V
(V
CC)
11
10 30 24 23 2919
2
3
7 1
EIA-232-D Connector
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
19
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
Table 1. Register Selection
DLAB
0 L L L Receiver buffer (read), transmitter holding (write)
0 L L H Interrupt enable register X L H L Interrupt identification register (read only) X L H L FIFO control register (write) X L H H Line control register X H L L Modem control register X H L H Line status register X H H L Modem status register X H H H Scratch register
1 L L L Divisor latch (LSB)
1 L L H Divisor latch (MSB)
The divisor latch access bit (DLAB) is the most significant bit of the line control register . The DLAB signal is controlled by writing to this bit location (see Table 3).
A2 A1 A0 REGISTER
Table 2. ACE Reset Functions
REGISTER/SIGNAL
Interrupt Enable Register Master Reset All bits cleared (bits 0–3 forced and bits 4–7 permanent) Interrupt Identification Register Master Reset FIFO Control Register Master Reset All bits cleared
Line Control Register Master Reset All bits cleared Modem Control Register Master Reset All bits cleared (5–7 permanent) Line Status Register Master Reset Bits 5 and 6 are set, all other bits are cleared Modem Status Register Master Reset Bits 0–3 are cleared, bits 4–7 are input signals SOUT Master Reset High INTRPT (receiver error flag) Read LSR/MR Low INTRPT (received data available) Read RBR/MR Low INTRPT (transmitter holding register empty) Read IR/Write THR/MR Low INTRPT (modem status changes) Read MSR/MR Low OUT2 RTS DTR
OUT1 Scratch Register Master Reset No effect Divisor Latch (LSB and MSB) Registers Master Reset No effect Receiver Buffer Registers Master Reset No effect Transmitter Holding Registers Master Reset No effect
RCVR FIFO
XMIT FIFO
RESET
CONTROL
Master Reset High Master Reset High Master Reset High Master Reset High
MR/FCR1–FCR0/
FCR0
MR/FCR2–FCR0/
FCR0
RESET STATE
Bit 0 is set, bits 1–3 are cleared, and bits 4–7 are permanently cleared
All bits low
All bits low
20
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
accessible registers
The system programmer, using the CPU, has access to and control over any of the ACE registers that are summarized in Table 3. These registers control ACE operations, receive data, and transmit data. Descriptions of these registers follow Table 3.
Table 3. Summary of Accessible Registers
REGISTER ADDRESS
0DLAB=0 0 DLAB =0 1 DLAB =0 2 2 3 4 5 6 7 0 DLAB=1 1 DLAB = 1
Receiver
Buffer
Bit
Register
No.
(Read
Only)
RBR THR IER IIR FCR LCR MCR LSR MSR SCR DLL DLM
0 Data Bit 0†Data Bit 0
1 Data Bit 1 Data Bit 1
2 Data Bit 2 Data Bit 2
3 Data Bit 3 Data Bit 3
4 Data Bit 4 Data Bit 4 0 0 Reserved
5 Data Bit 5 Data Bit 5 0 0 Reserved
6 Data Bit 6 Data Bit 6 0
7 Data Bit 7 Data Bit 7 0
Bit 0 is the least significant bit. It is the first bit serially transmitted or received.
NOTE 4: These bits are always 0 in the TL16C450 mode.
Transmitter
Holding
Register
(Write
Only)
Interrupt
Enable
Register
Enable
Received
Data Available Interrupt
(ERBI)
Enable
Transmitter
Holding
Register
Empty
Interrupt
(ETBEI)
Enable
Receiver
Line Status
Interrupt
(ELSI)
Enable
Modem
Status
Interrupt
(EDSSI)
Interrupt
Ident.
Register
(Read
Only)
0 if interrupt Pending
Interrupt
ID
Bit (1)
Interrupt
ID
Bit (2)
Interrupt
ID
Bit (2)
(see
Note 4)
FIFOs
Enabled
(see
Note 4)
FIFOs
Enabled
(see
Note 4)
FIFO
Control
Register
(Write
Only)
FIFO
Enable
Receiver
FIFO
Reset
Transmitter
FIFO
Reset
DMA
Mode
Select
Receiver
Trigger
(LSB)
Receiver
Trigger (MSB)
Line
Control
Register
Word
Length
Select
Bit 0
(WLS0)
Word
Length
Select
Bit 1
(WLS1)
Number
of
Stop Bits
(STB)
Parity
Enable
(PEN)
Even Parity Select (EPS)
Stick
Parity
Break
Control
Divisor
Latch
Access
Bit
(DLAB)
Modem
Control
Register
Data
Terminal
Ready (DTR)
Request
to Send
(RTS)
OUT1
OUT2
Loop
0
0
0
Line
Status
Register
Data
Ready
(DR)
Overrun
Error
(OE)
Parity
Error
(PE)
Framing
Error
(FE)
Break
Interrupt
(BI)
Transmitter
Holding
Register
(THRE)
Transmitter
Empty
(TEMT) Error in
RCVR
FIFO
(see
Note 4)
Modem
Status
Register
Delta
Clear
to Send
CTS)
(
Delta
Data
Set
Ready
DSR)
(
Trailing
Edge Ring
Indicator
(TERI)
Delta
Data
Carrier
Detect
DCD)
(
Clear
to
Send
(CTS)
Data
Set Ready (DSR)
Ring
Indicator
(RI)
Data
Carrier
Detect (DCD)
Scratch
Register
Bit 0 Bit 0 Bit 8
Bit 1 Bit 1 Bit 9
Bit 2 Bit 2 Bit 10
Bit 3 Bit 3 Bit 11
Bit 4 Bit 4 Bit 12
Bit 5 Bit 5 Bit 13
Bit 6 Bit 6 Bit 14
Bit 7 Bit 7 Bit 15
Divisor
Latch (LSB)
Latch (MSB)
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
21
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
FIFO control register (FCR)
The FCR is a write-only register at the same location as the IIR, which is a read-only register. The FCR enables the FIFOs, clears the FIFOs, sets the receiver FIFO trigger level, and selects the type of DMA signalling.
Bit 0: FCR0, when set, enables the transmit and receive FIFOs. This bit must be set when other FCR bits are written to or they are not programmed. Changing this bit clears the FIFOs.
D
Bit 1: FCR1, when set, clears all bytes in the receiver FIFO and clears its counter . The shift register is not cleared. The one that is written to this bit position is self clearing.
D
Bit 2: FCR2, when set, clears all bytes in the transmit FIFO and clears its counter . The shift register is not cleared. The one that is written to this bit position is self clearing.
D
Bit 3: When FCR0 is set, setting FCR3 causes the RXRDY and TXRDY to change from mode 0 to mode 1.
D
Bits 4 and 5: FCR4 and FCR5 are reserved for future use.
D
Bits 6 and 7: FCR6 and FCR7 set the trigger level for the receiver FIFO interrupt (see Table 4).
Table 4. Receiver FIFO Trigger Level
BIT 7 BIT 6
0 0 01 0 104 1008 1114
RECEIVER FIFO
TRIGGER LEVEL (BYTES)
FIFO interrupt mode operation
When the receiver FIFO and receiver interrupts are enabled (FCR0 = 1, IER0 = 1) receiver interrupt occur as follows:
1. The receive data available interrupt is issued to the microprocessor when the FIFO has reached its programmed trigger level. It is cleared when the FIFO drops below its programmed trigger level.
2. The IIR receive data available indication also occurs when the FIFO trigger level is reached, and like the interrupt, it is cleared when the FIFO drops below the trigger level.
3. The receiver line status interrupt (IIR = 0110) has higher priority than the received data available interrupt (IIR = 0100).
4. The data ready bit (LSR0) is set when a character is transferred from the shift register to the receiver FIFO. It is cleared when the FIFO is empty.
22
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
FIFO interrupt mode operation (continued)
When the receiver FIFO and receiver interrupts are enabled, receiver FIFO timeout interrupt occurs as follows:
1. FIFO timeout interrupt occurs when the following conditions exist: a. At least one character is in the FIFO. b. The most recent serial character received is longer than four continuous character times ago (when
two stop bits are programmed, the second one is included in this time delay).
c. The most recent microprocessor read of the FIFO is longer than four continuous character times
ago. This causes a maximum character received to interrupt an issued delay of 160 ms at 300 baud with a 12-bit character.
2. Character times are calculated by using the RCLK input for a clock signal (makes the delay proportional to the baud rate).
3. When a timeout interrupt has occurred, it is cleared and the timer is reset when the microprocessor reads one character from the receiver FIFO.
4. When a timeout interrupt has not occurred, the timeout timer is reset after a new character is received or after the microprocessor reads the receiver FIFO.
When the transmit FIFO and transmitter interrupts are enabled (FCR0 = 1, IER1 = 1), transmit interrupts occur as follows:
1. The transmitter holding register interrupt (02) occurs when the transmit FIFO is empty. It is cleared as soon as the THR is written to (1 to 16 characters may be written to the transmit FIFO while servicing this interrupt) or the IIR is read.
2. The transmit FIFO empty indications are delayed one character time minus the last stop bit time when the following occurs: THRE = 1 and there have not been at least two bytes at the same time in the transmit FIFO since the last THRE = 1. The first transmitter interrupt after changing FCR0 is immediate when it is enabled.
Character timeout and receiver FIFO trigger level interrupts have the same priority as the current received data available interrupt; transmit FIFO empty has the same priority as the current THRE interrupt.
FIFO polled mode operation
When FCR0 is set, clearing IER0, IER1, IER2, IER3, or all four puts the ACE in the FIFO polled mode of operation. Since the receiver and transmitter are controlled separately , either one or both can be in the polled mode of operation.
In this mode, the user program checks receiver and transmitter status via the LSR. As stated previously:
LSR0 is set as long as there is one byte in the receiver FIFO.
LSR1 – LSR4 specify which error(s) have occurred. Character error status is handled the same way as
when in the interrupt mode; the IIR is not affected since IER2 = 0.
LSR5 indicates when the transmit FIFO is empty.
LSR6 indicates that both the transmit FIFO and shift registers are empty.
LSR7 indicates whether there are any errors in the receiver FIFO.
There is no trigger level reached or timeout condition indicated in the FIFO polled mode. However, the receiver and transmit FIFOs are still fully capable of holding characters.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
23
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
interrupt enable register (IER)
The IER enables each of the five types of interrupts (refer to T able 5) and the INTRPT output signal in response to an interrupt generation. The IER can also disable the interrupt system by clearing bits 0 through 3. The contents of this register are summarized in Table3 and are described in the following bulleted list.
D
Bit 0: This bit when set enables the received data available interrupt.
D
Bit 1: This bit when set enables the THRE interrupt.
D
Bit 2: This bit when set enables the receiver line status interrupt.
D
Bit 3: This bit when set enables the modem status interrupt.
D
Bits 4 – 7: These bits in the IER are not used and are always cleared.
interrupt identification register (IIR)
The ACE has an on-chip interrupt generation and prioritization capability that permits a flexible interface with most popular microprocessors. The ACE provides four prioritized levels of interrupts which are:
D
Priority 1–Receiver line status (highest priority)
D
Priority 2–Receiver data ready or receiver character timeout
D
Priority 3–Transmitter holding register empty
D
Priority 4–Modem status (lowest priority)
When an interrupt is generated, the IIR indicates that an interrupt is pending and the type of that interrupt in its three least significant bits (bits 0, 1, and 2). The contents of this register are summarized in T able 3 and described in Table 4. Detail on each bit are as follows:
D
Bit 0: This bit can be used either in a hardwire prioritized or polled interrupt system. When this bit is cleared, an interrupt is pending. When bit 0 is set, no interrupt is pending.
D
Bits 1 and 2: These two bits identify the highest priority interrupt pending, as indicated in Table 5.
D
Bit 3. This bit is always cleared in the TL16C450 mode. In FIFO mode, this bit is set with bit 2 to indicate that a timeout interrupt is pending.
D
Bits 4 – 5: These two bits are not used and are always cleared.
D
Bits 6 and 7: These two bits are always cleared in the TL16C450 mode. They are set when bit 0 of the FIFO control register is set.
24
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
interrupt identification register (IIR) (continued)
Table 5. Interrupt Control Functions
INTERRUPT
IDENTIFICATION
REGISTER
BIT 3 BIT 2 BIT 1 BIT 0
0 0 0 1 None None None None 0 1 1 0 1 Receiver line status
0 1 0 0 2 Received data available
1 1 0 0 2
0 0 1 0 3
0 0 0 0 4 Modem status
PRIORITY
LEVEL
INTERRUPT TYPE INTERRUPT SOURCE
Overrun error, parity error, framing error or break interrupt
Receiver data available in the TL16C450 mode or trigger level reached in the FIFO mode.
No characters have been
Character timeout indication
Transmitter holding register empty
removed from or input to the receiver FIFO during the last four character times, and there is at least one character in it during this time
Transmitter holding register– empty
Clear to send, data set ready, ring indicator, or data carrier detect
INTERRUPT RESET
Reading the line status register
Reading the receiver buffer register
Reading the receiver buffer register
Reading the interrupt identification register (if source of interrupt) or writing into the transmitter holding register
Reading the modem status register
METHOD
line control register (LCR)
The system programmer controls the format of the asynchronous data communication exchange through the LCR. In addition, the programmer is able to retrieve, inspect, and modify the contents of the LCR; this eliminates the need for separate storage of the line characteristics in system memory. The contents of this register are summarized in Table 3 and are described in the following bulleted list.
D
Bits 0 and 1: These two bits specify the number of bits in each transmitted or received serial character. These bits are encoded in Table 6.
Table 6. Serial Character Word Length
BIT 1 BIT 0 WORD LENGTH
0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits
D
Bit 2: This bit specifies either one, one and one-half, or two stop bits in each transmitted character . When bit 2 is cleared, one stop bit is generated in the data. When bit 2 is set, the number of stop bits generated is dependent on the word length selected with bits 0 and 1. The receiver clocks only the first stop bit, regardless of the number of stop bits selected. The number of stop bits generated, in relation to word length and bit 2, is shown in Table 7.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
25
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
line control register (LCR) (continued)
Table 7. Number of Stop Bits Generated
BIT 2
D
Bit 3: This bit is the parity enable bit. When bit 3 is set, a parity bit is generated in transmitted data between
WORD LENGTH SELECTED
BY BITS 1 AND 2
0 Any word length 1 1 5 bits 1 1/2 1 6 bits 2 1 7 bits 2 1 8 bits 2
NUMBER OF STOP
BITS GENERATED
the last data word bit and the first stop bit. In received data, when bit 3 is set, parity is checked. When bit 3 is cleared, no parity is generated or checked.
D
Bit 4: This bit is the even parity select bit. When parity is enabled (bit 3 is set) and bit 4 is set, even parity (an even number of logic 1s in the data and parity bits) is selected. When parity is enabled and bit 4 is cleared, odd parity (an odd number of logic 1s) is selected.
D
Bit 5: This is the stick parity bit. When bits 3, 4, and 5 are set, the parity bit is transmitted and checked as cleared. When bits 3 and 5 are set and bit 4 is cleared, the parity bit is transmitted and checked as set. When bit 5 is cleared, stick parity is disabled.
D
Bit 6: This bit is the break control bit. Bit 6 is set to force a break condition; i.e., a condition where SOUT is forced to the spacing (cleared) state. When bit 6 is cleared, the break condition is disabled and has no affect on the transmitter logic; it only effects the serial output.
D
Bit 7: This bit is the divisor latch access bit (DLAB). Bit 7 must be set to access the divisor latches of the baud generator during a read or write. Bit 7 must be cleared during a read or write to access the receiver buffer, the THR, or the IER.
line status register (LSR)
The LSR provides information to the CPU concerning the status of data transfers. The contents of this register are summarized in Table 3 and are described in the following bulleted list.
D
Bit 0: This bit is the data ready (DR) indicator for the receiver. Bit 0 is set whenever a complete incoming character has been received and transferred into the RBR or the FIFO. Bit 0 is cleared by reading all of the data in the RBR or the FIFO.
D
Bit 1‡: This bit is the overrun error (OE) indicator. When bit 1 is set, it indicates that before the character in the RBR is read, it is overwritten by the next character transferred into the register. The OE indicator is cleared every time the CPU reads the contents of the LSR. If the FIFO mode data continues to fill the FIFO beyond the trigger level, an overrun error occurs only after the FIFO is full and the next character has been completely received in the shift register. An OE is indicated to the CPU as soon as it happens. The character in the shift register is overwritten, but it is not transferred to the FIFO.
The line status register is intended for read operations only; writing to this register is not recommended outside of a factory testing environment.
Bits 1 through 4 are the error conditions that produce a receiver line status interrupt.
26
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
PRINCIPLES OF OPERATION
TL16C550B, TL16C550BI
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
line status register (LSR) (continued)
D
Bit 2‡: This bit is the parity error (PE) indicator . When bit 2 is set, it indicates that the parity of the received data character does not match the parity selected in the LCR (bit 4). The PE bit is cleared every time the CPU reads the contents of the LSR. In the FIFO mode, this error is associated with the particular character in the FIFO to which it applies. This error is revealed to the CPU when its associated character is at the top of the FIFO.
D
Bit 3‡: This bit is the framing error (FE) indicator . When bit 3 is set, it indicates that the received character did not have a valid (set) stop bit. The FE bit is cleared every time the CPU reads the contents of the LSR. In the FIFO mode, this error is associated with the particular character in the FIFO to which it applies. This error is revealed to the CPU when its associated character is at the top of the FIFO. The ACE tries to resynchronize after a framing error. To accomplish this, it is assumed that the framing error is due to the next start bit. The ACE samples this start bit twice and then accepts the input data.
D
Bit 4‡: This bit is the break interrupt (BI) indicator . When bit 4 is set, it indicates that the received data input was held cleared for longer than a full-word transmission time. A full-word transmission time is defined as the total time of the start, data, parity, and stop bits. The BI bit is cleared every time the CPU reads the contents of the LSR. In the FIFO mode, this error is associated with the particular character in the FIFO to which it applies. This error is revealed to the CPU when its associated character is at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character transfer is enabled after SIN goes to the marking state and receives the next valid start bit.
D
Bit 5: This bit is the THRE indicator. Bit 5 is set when the THR is empty, indicating that the ACE is ready to accept a new character. If the THRE interrupt is enabled when the THRE bit is set, an interrupt is generated. THRE is set when the contents of the THR are transferred to the transmitted shift register. This bit is cleared concurrent with the loading of the THR by the CPU. In the FIFO mode, this bit is set when the transmit FIFO is empty; it is cleared when at least one byte is written to the transmit FIFO.
D
Bit 6: This bit is the transmitter empty (TEMT) indicator. Bit 6 is set when the THR and the TSR are both empty. When either the THR or the TSR contains a data character, the TEMT bit is cleared. In the FIFO mode, this bit is set when the transmitter FIFO and shift register are both empty.
D
Bit 7: In the TL16C550B and the TL16C550BI mode, this bit is always cleared. In the TL16C450 mode, this bit is always cleared. In the FIFO mode, LSR7 is set when there is at least one parity , framing, or break error in the FIFO. It is cleared when the microprocessor reads the LSR and there are no subsequent errors in the FIFO.
modem control register (MCR)
The MCR is an 8-bit register that controls an interface with a modem, data set, or peripheral device that is emulating a modem. The contents of this register are summarized in T able 3 and are described in the following bulleted list.
D
Bit 0: This bit (DTR) controls the data terminal ready (DTR) output. Setting bit 0 forces the DTR output to its low state. When bit 0 is cleared, DTR
D
Bit 1: This bit (RTS) controls the request to send (R TS) output in a manner identical to bit 0’ s control over the DTR
D
Bit 2: This bit (OUT1) controls the output 1 (OUT1) signal, a user-designated output signal, in a manner identical to bit 0’s control over the DTR
The line status register is intended for read operations only; writing to this register is not recommended outside of a factory testing environment.
Bits 1 through 4 are the error conditions that produce a receiver line status interrupt.
output.
goes high.
output.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
27
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
modem control register (MCR) (continued)
D
Bit 3: This bit (OUT2) controls the output 2 (OUT2) signal, a user-designated output signal, in a manner identical to bit 0’s control over the DTR
D
Bit 4: This bit provides a local loop back feature for diagnostic testing of the ACE. When this bit is set, the following occurs:
The SOUT is set high. – The SIN is disconnected. – The output of the TSR is looped back into the receiver shift register input.
output.
The four modem control inputs (CTS – The four modem control outputs (DTR
modem control inputs. – The four modem control outputs are forced to their inactive (high) states. In the diagnostic mode, data that is transmitted is immediately received. This allows the processor to verify
the transmit and receive data paths to the ACE. The receiver and transmitter interrupts are fully operational. The modem control interrupts are also operational, but the modem control interrupt’s sources are now the lower four bits of the MCR instead of the four modem control inputs. All interrupts are still controlled by the IER.
D
Bits 5 – 7: These bits are permanently cleared.
, DSR, DCD, and RI) are disconnected.
, RTS, OUT1, and OUT2) are internally connected to the four
modem status register (MSR)
The MSR is an 8-bit register that provides information about the current state of the control lines from the modem, data set, or peripheral device to the CPU. Additionally, four bits of this register provide change information; when a control input from the modem changes state, the appropriate bit is set. All four bits are cleared when the CPU reads the MSR. The contents of this register are summarized in Table 3 and are described in the following bulleted list.
D
Bit 0: This bit is the change in clear-to-send (CTS) indicator. Bit 0 indicates that the CTS input has changed states since the last time it was read by the CPU . When this bit is set and the modem status interrupt is enabled, a modem status interrupt is generated.
D
Bit 1: This bit is the change in data set ready (DSR) indicator. Bit 1 indicates that the DSR input has changed states since the last time it was read by the CPU. When this bit is set and the modem status interrupt is enabled, a modem status interrupt is generated.
28
D
Bit 2: This bit is the trailing edge of the ring indicator (TERI) detector . Bit 2 indicates that the RI input to the chip has changed from a low to a high state. When this bit is set and the modem status interrupt is enabled, a modem status interrupt is generated.
D
Bit 3: This bit is the change in data carrier detect (DCD) indicator. Bit 3 indicates that the DCD input to the chip has changed states since the last time it was read by the CPU. When this bit is set and the modem status interrupt is enabled, a modem status interrupt is generated.
D
Bit 4: This bit is the complement of the clear-to-send (CTS) input. When bit 4 (loop) of the MCR is set, bit 4 is equivalent to the MCR bit 1 (RTS).
D
Bit 5: This bit is the complement of the data set ready (DSR) input. When bit 4 (loop) of the MCR is set, bit 5 is equivalent to the MCR bit 1 (DTR).
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
PRINCIPLES OF OPERATION
modem status register (MSR) (continued)
D
Bit 6: This bit is the complement of the ring indicator (RI) input. When bit 4 (loop) of the MCR is set, bit 6 is equivalent to the MCRs bit 2 (OUT1).
D
Bit 7: This bit is the complement of the data carrier detect (DCD) input. When bit 4 (loop) of the MCR is set, bit 7 is equivalent to the MCRs bit 3 (OUT2).
programmable baud generator
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
The ACE contains a programmable baud generator that takes a clock input in the range between dc and 8 MHz and divides it by a divisor in the range between 1 and (2
16
–1). The output frequency of the baud generator is
16× the baud rate. The formula for the divisor is:
divisor # = XIN frequency input ÷ (desired baud rate × 16)
Two 8-bit registers, called divisor latches, store the divisor in a 16-bit binary format. These divisor latches must be loaded during initialization of the ACE in order to ensure desired operation of the baud generator. When either of the divisor latches is loaded, a 16-bit baud counter is also loaded to prevent long counts on initial load.
Tables 8 and 9 illustrate the use of the baud generator with crystal frequencies of 1.8432 MHz and 3.072 MHz respectively. For baud rates of 38.4 kbit/s and below, the error obtained is very small. The accuracy of the selected baud rate is dependent on the selected crystal frequency. Refer to Figure 16 for examples of typical clock circuits.
Table 8. Baud Rates Using a 1.8432-MHz Crystal
DESIRED
BAUD RATE
50 2304 75 1536
110 1047 0.026
134.5 857 0.058 150 768 300 384 600 192
1200 96 1800 64 2000 58 0.69 2400 48 3600 32 4800 24 7200 16
9600 12 19200 6 38400 3 56000 2 2.86
DIVISOR USED
TO GENERATE
16× CLOCK
PERCENT ERROR
DIFFERENCE BETWEEN
DESIRED AND ACTUAL
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
29
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
programmable baud generator (continued)
Table 9. Baud Rates Using a 3.072-MHz Crystal
External
Clock
Driver
XIN
DESIRED
BAUD RATE
50 3840 75 2560
110 1745 0.026
134.5 1428 0.034 150 1280 300 640 600 320
1200 160 1800 107 0.312 2000 96 2400 80 3600 53 0.628 4800 40 7200 27 1.23
9600 20 19200 10 38400 5
V
CC
DIVISOR USED TO GENERATE
16× CLOCK
DIFFERENCE BETWEEN
DESIRED AND ACTUAL
C1
PERCENT ERROR
XIN
V
CC
Optional
Clock
Output
30
Optional
Driver
R
P
XOUT
CRYSTAL
3.1 MHz 1 M 1.5 k 10-30 pF 40-60 pF
1.8 MHz 1 M 1.5 k 10-30 pF 40-60 pF
Oscillator Clock to Baud Generator Logic
C2
TYPICAL CRYSTAL OSCILLATOR NETWORK
R
P
RX2 C1 C2
Figure 16. Typical Clock Circuits
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
Crystal
RX2
XOUT
Oscillator Clock to Baud Generator Logic
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
PRINCIPLES OF OPERATION
receiver buffer register (RBR)
The ACE receiver section consists of a receiver shift register (RSR) and a RBR. The RBR is actually a 16-byte FIFO. Timing is supplied by the 16× receiver clock (RCLK). Receiver section control is a function of the ACE line control register.
The ACE RSR receives serial data from the SIN terminal. The RSR then deserializes the data and moves it into the RBR FIFO. In the TL16C450 mode, when a character is placed in the receiver buffer register and the received data available interrupt is enabled, an interrupt is generated. This interrupt is cleared when the data is read out of the RBR. In the FIFO mode, the interrupts are generated based on the control setup in the FIFO control register.
scratch register
The scratch register is an 8-bit register that is intended for programmer use as a scratchpad in the sense that it temporarily holds the programmer’s data without affecting any other ACE operation.
transmitter holding register (THR)
The ACE transmitter section consists of a THR and a transmitter shift register (TSR). The THR is actually a 16-byte FIFO. Timing is supplied by the baud out (BAUDOUT function of the ACE’s line control register.
The ACE THR receives data off the internal data bus and when the shift register is idle, moves it into the TSR. The TSR serializes the data and outputs it at the SOUT. In the TL16C450 mode, when the THR is empty and the transmitter holding register empty (THRE) interrupt is enabled, an interrupt is generated. This interrupt is cleared when a character is loaded into the register. In the FIFO mode, the interrupts are generated based on the control setup in the FIFO control register.
) clock signal. Transmitter section control is a
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
31
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
MECHANICAL DATA
FN (S-PQCC-J**) PLASTIC J-LEADED CHIP CARRIER
20 PIN SHOWN
Seating Plane
0.004 (0,10)
D
D1
13
4
E1E
8
9
NO. OF
PINS
**
D/E
19
13
18
14
MINMAXMIN
0.032 (0,81)
0.026 (0,66)
0.050 (1,27)
0.008 (0,20) NOM
D1/E1
MAX
D2/E2
MIN
0.180 (4,57) MAX
0.120 (3,05)
0.090 (2,29)
0.020 (0,51) MIN
D2/E2
D2/E2
0.021 (0,53)
0.013 (0,33)
0.007 (0,18)
MAX
M
20 28 44 52 68 84
NOTES: A. All linear dimensions are in inches (millimeters).
B. This drawing is subject to change without notice.
C. Falls within JEDEC MS-018
32
0.385 (9,78)
0.485 (12,32)
0.685 (17,40)
0.785 (19,94)
0.985 (25,02)
1.185 (30,10)
0.395 (10,03)
0.495 (12,57)
0.695 (17,65)
0.795 (20,19)
0.995 (25,27)
1.195 (30,35)
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
0.350 (8,89)
0.450 (11,43)
0.650 (16,51)
0.750 (19,05)
0.950 (24,13)
1.150 (29,21)
0.356 (9,04)
0.456 (11,58)
0.656 (16,66)
0.756 (19,20)
0.958 (24,33)
1.158 (29,41)
0.141 (3,58)
0.191 (4,85)
0.291 (7,39)
0.341 (8,66)
0.441 (11,20)
0.541 (13,74)
0.169 (4,29)
0.219 (5,56)
0.319 (8,10)
0.369 (9,37)
0.469 (11,91)
0.569 (14,45)
4040005/B 03/95
TL16C550B, TL16C550BI
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
MECHANICAL DATA
N (R-PDIP-T**) PLASTIC DUAL-IN-LINE PACKAGE
24 PIN SHOWN
A
24
13
0.560 (14,22)
0.520 (13,21)
1
0.060 (1,52) TYP
0.200 (5,08) MAX
0.020 (0,51) MIN
0.100 (2,54)
0.021 (0,53)
0.015 (0,38)
DIM
A MAX
A MIN
0.010 (0,25)
PINS **
M
1.270
(32,26) (36,83)
1.230
(31,24)
1.450
1.410
(35,81)
12
322824
1.650
(41,91)
1.610
(40,89)
Seating Plane
0.125 (3,18) MIN
0.010 (0,25) NOM
2.090 2.450 2.650
2.040
(51,82)
(62,23)(53,09)
2.390
(60,71)
(67,31)
(65,79)
0.610 (15,49)
0.590 (14,99)
0°–15°
524840
2.590
NOTES: A. All linear dimensions are in inches (millimeters).
B. This drawing is subject to change without notice. C. Falls within JEDEC MS-011 D. Falls within JEDEC MS-015 (32 pin only)
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
4040053/B 04/95
33
TL16C550B, TL16C550BI ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS136B – JANUARY 1994 – REVISED AUGUST 1996
MECHANICAL DATA
PT (S-PQFP-G48) PLASTIC QUAD FLATPACK
37
48
0,50
1,45 1,35
36
0,27
0,17
25
24
13
1
5,50 TYP
7,20
SQ
6,80 9,20
SQ
8,80
12
0,08
M
0,05 MIN
0,13 NOM
Gage Plane
0,25
0°–7°
1,60 MAX
NOTES: A. All linear dimensions are in millimeters.
B. This drawing is subject to change without notice. C. Falls within JEDEC MO-136 D. This may also be a thermally-enhanced plastic package with leads connected to the die pads.
Seating Plane
0,10
0,75 0,45
4040052/B 03/95
34
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
IMPORTANT NOTICE
T exas Instruments (TI) reserves the right to make changes to its products or to discontinue any semiconductor product or service without notice, and advises its customers to obtain the latest version of relevant information to verify, before placing orders, that the information being relied on is current and complete.
TI warrants performance of its semiconductor products and related software to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements.
Certain applications using semiconductor products may involve potential risks of death, personal injury, or severe property or environmental damage (“Critical Applications”).
TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED, OR WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS.
Inclusion of TI products in such applications is understood to be fully at the risk of the customer. Use of TI products in such applications requires the written approval of an appropriate TI officer . Questions concerning potential risk applications should be directed to TI through a local SC sales office.
In order to minimize risks associated with the customer’s applications, adequate design and operating safeguards should be provided by the customer to minimize inherent or procedural hazards.
TI assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein. Nor does TI warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of TI covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used.
Copyright 1998, Texas Instruments Incorporated
Loading...