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,
, RI, and DCD)
DTR
D
Easily Interfaces to Most Popular
Microprocessors
D
Faster Plug-In Replacement for National
Semiconductor NS16C450
description
The TL16C450 is a CMOS version of an asynchronous communications element (ACE). It typically functions
D5
D6
D7
RCLK
SIN
NC
SOUT
CS0
CS1
CS2
AUDOUT
C – No internal connection
D4D3D2D1D0
54 321644
7
8
9
10
11
12
13
14
15
16
17
20 21 22 23
1819
XT AL1
XT AL2
DOSTR
SS
V
DOSTR
NC
V
24 25 26 27 28
NC
DISTR
in a microcomputer system as a serial input/output interface.
CTS
39
MR
38
OUT1
37
DTR
36
RTS
35
OUT2
34
NC
33
INTRP
32
NC
31
A0
30
A1
29
A2
ADS
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.
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
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
description (continued)
The TL16C450 performs serial-to-parallel conversion 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’s operation. Reported status information includes the type of transfer operation
in progress, the status of the operation, and any error conditions encountered.
The TL16C450 ACE includes a programmable, on-board, baud rate generator. This generator is capable of
dividing a reference clock input by divisors from 1 to (2
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 the user’s requirements to minimize the computing required to handle the communications link.
16
–1) and producing a 16×clock for driving the internal
2
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
block diagram
D7–D0
1–8
Data
Bus
Buffer
Internal
Data Bus
Receiver
Buffer
Register
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
Receiver
Shift
Register
10
SIN
A0
A1
A2
CS0
CS1
CS2
ADS
MR
DISTR
DISTR
DOSTR
DOSTR
DDIS
CSOUT
XTAL1
XTAL2
V
CC
V
SS
28
27
26
12
13
14
25
35
22
21
19
18
23
24
16
17
40
20
Select
and
Control
Logic
Power
Supply
Line
Control
Register
Divisor
Latch (LS)
Divisor
Latch (MS)
Line
Status
Register
Transmitter
Holding
Register
Modem
Control
Register
Modem
Status
Register
Interrupt
Enable
Register
Interrupt
I/O
Register
Baud
Generator
Interrupt
Control
Logic
Receiver
Timing and
Control
Transmitter
Timing and
Control
Transmitter
Shift
Register
Modem
Control
Logic
30
9
15
11
32
36
33
37
38
39
34
31
RCLK
BAUDOUT
SOUT
RTS
CTS
DTR
DSR
DCD
RI
OUT1
OUT2
INTRPT
Terminal numbers shown are for the N package.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
3
TL16C450
I/O
DESCRIPTION
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
Terminal Functions
TERMINAL
NAMENO.
A0
A1
A2
ADS
BAUDOUT
CS0
CS1
CS2
CSOUT24OChip select out. When CSOUT is high, it indicates that the ACE has been selected by the chip select inputs (CS0,
CTS
D0 – D71 – 8I/OData bus. D0 – D7 are 3-state data lines that provide a bidirectional path for data, control, and status information
DCD
DDIS23ODriver disable. DDIS is active (high) when the CPU is not reading data. When active, this output can disable an
DISTR
DISTR
DOSTR
DOSTR
DSR
DTR
INTRPT30OInterrupt. When active (high), INTRPT informs the CPU that the ACE has an interrupt to be serviced. The four
MR35IMaster reset. When active (high), MR clears most ACE registers and sets the state of various output signals.
†
Terminal numbers shown are for the N package.
†
28
27
26
25I
15O
12
13
14
36I
38I
22
21
19
18
37I
33O
IRegister select. A0, A1, and A2 are three inputs used during read and write operations to select the ACE register
to read from or write to. Refer to Table 1 for register addresses, also refer to the address strobe (ADS
description.
Address strobe. When ADS is active (low), the register select signals (A0, A1, and A2) and chip select signals
(CS0, CS1, CS2
held in the state they were in when the low-to-high transition of ADS
Baud out. BAUDOUT is a16× clock signal for the transmitter section of the ACE. The clock rate is established
by the reference oscillator frequency divided by a divisor specified by the baud generator divisor latches.
BAUDOUT
I
Chip select. When CSx is active (high, high, and low respectively), the ACE is selected. Refer to the ADS signal
description.
CS1, and CS2
Clear to send. CTS is a modem status signal. Its condition can be checked by reading bit 4 (CTS) of the modem
status register. Bit 0 (DCTS) 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
interrupt is generated.
between the ACE and the CPU.
Data carrier detect. DCD is a modem status signal. Its condition can be checked by reading bit 7 (DCD) of the
modem status register. Bit 3 (DDCD) 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 the DCD
changes state, an interrupt is generated.
external transceiver.
I
Data input strobes. When either DISTR or DISTR is active (high or low respectively) while the ACE is selected,
the CPU 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.,
DISTR tied low or DISTR
I
Data output strobes. When either DOSTR or DOSTR is active (high or low respectively), while the ACE is
selected, the 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., DOSTR
tied low or DOSTR
Data set ready. DSR is a modem status signal. Its condition can be checked by reading bit 5 (DSR) of the modem
status register. Bit 1 (DDSR) of the modem status register indicates that this signal has changed state since the
last read from the modem status register. If the modem status interrupt is enabled when the DSR
an interrupt is generated.
Data terminal ready. When active (low), DTR informs a modem or data set that the ACE is ready to establish
communication. DTR
level. DTR
clearing bit 0 (DTR) of the modem control register.
conditions that cause an interrupt are: a receiver error, received data is available, the transmitter holding register
is empty, or an enabled modem status interrupt. The INTRPT output is reset (inactivated) either when the interrupt
is serviced or as a result of a master reset.
Refer to Table 2 for ACE reset functions.
) drive the internal select logic directly; when high, the register select and chip select signals are
occurred.
may also be used for the receiver section by tying this output to the RCLK input.
). CSOUT is low when the chip is deselected.
changes state, an
tied high).
tied high).
is placed in the active state by setting the DTR bit of the modem control register to a high
is placed in the inactive state either as a result of a master reset or during loop mode operation or
) signal
changes state,
4
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
I/O
DESCRIPTION
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
Terminal Functions (continued)
TERMINAL
NAMENO.
OUT1
OUT2
RCLK9IReceiver clock. RCLK is the 16× baud rate clock for the receiver section of the ACE.
RI
RTS
SIN10ISerial input. SIN is the serial data input from a connected communications device.
SOUT11OSerial output. SOUT is the composite serial data output to a connected communication device. SOUT is set to
V
CC
V
SS
XTAL1
XTAL2
†
Terminal numbers shown are for the N package.
†
34
31
39I
32O
405-V supply voltage
20Supply common
1617I/OExternal clock. XTAL1 and XTAL2 connect the ACE to the main timing reference (clock or crystal).
O
Outputs 1 and 2. OUT1 and OUT2 are user-designated output terminals that are set to their active states by
setting their respective modem control register bits (OUT1 and OUT2) high. OUT1
inactive (high) states as a result of master reset or during loop mode operations or by clearing bit 2 (OUT1) or
bit 3 (OUT2) of the MCR.
Ring indicator. RI is a modem status signal. Its condition can be checked by reading bit 6 (RI) of the modem status
register. Bit 2 (TERI) of the modem status register indicates that the RI
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.
Request to send. When active, RTS informs the modem or data set that the ACE is ready to transmit data. RTS
is set to its active state by setting the RTS modem control register bit and is set to its inactive (high) state either
as a result of a master reset or during loop mode operations or by clearing bit 1 (RTS) of the MCR.
the marking (set) state as a result of MR.
input has transitioned from a low to a high
and OUT2 are set to their
absolute maximum ratings over free-air temperature range (unless otherwise noted)
Supply voltage range, V
Input voltage range at any input, V
Output voltage range, V
Lead temperature 1,6 mm (1/16 inch) from case for 10 seconds: N 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.
recommended operating conditions
MINNOMMAXUNIT
Supply voltage, V
High-level input voltage, V
Low-level input voltage, V
Operating free-air temperature, T
CC
IH
IL
A
4.7555.25V
2V
–0.50.8V
070°C
CC
V
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
5
TL16C450
I
Input leakage current
CC
,
SS
,
±10µA
IOZHigh-impedance output current
V
O
±20µA
V
CC
T
A
25 C
ICCSupply current
,,,,,
10
mA
f
MHz
T
A
25°C
g
Allotherterminalsgrounded
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
electrical characteristics over recommended ranges of supply voltage and operating free-air
temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSMIN TYP†MAXUNIT
‡
V
OH
V
OL
Ikg
C
XTAL1
C
XTAL2
C
i
C
o
†
All typical values are at VCC = 5 V, TA = 25°C.
‡
These parameters apply for all outputs except XTAL2.
VI = 0 to 5.25 V,All other terminals floating
VCC = 5.25 V,VSS = 0,
= 0 V to 5.25 V,
Chip selected, write mode,or chip deselected
=
= 5.25 V,
SIN, DSR, DCD, CTS, and RI at 2 V,
All other inputs at 0.8 V ,Baud rate = 50 kbits/s,
XTAL1 at 4 MHz,No load on outputs
VCC = 0,VSS = 0,
= 1
All other terminals
,
rounded
=
=
=
= 0,
°
,
,
°
2030pF
610pF
1020pF
system timing requirements over recommended ranges of supply voltage and operating free-air
temperature
PARAMETERFIGUREMINMAXUNIT
t
cR
t
cW
t
w5
t
w6
t
w7
t
wMR
t
su1
t
su2
t
su3
t
h1
t
h2
t
h3
t
h4
t
h5
t
h6
t
h7
t
d4
t
d5
t
d6
t
d7
t
d8
t
d9
§
Only applies when ADS is low.
Cycle time, read (tw7 + td8 + td9)175ns
Cycle time, write (tw6 + td5 + td6)175ns
Pulse duration, ADS low2,315ns
Pulse duration, write strobe280ns
Pulse duration, read strobe380ns
Pulse duration, master reset1000ns
Setup time, address valid before ADS↑2,315ns
Setup time, CS valid before ADS↑2,315ns
Setup time, data valid before WR1↓ or WR2↑215ns
Hold time, address low after ADS↑2,30ns
Hold time, CS valid after ADS↑2,30ns
Hold time, CS valid after WR1↑ or WR2↓220ns
§
Hold time, address valid after WR1↑ or WR2↓220ns
Hold time, data valid after WR1↑ or WR2↓215ns
Hold time, CS valid after RD1↑ or RD2↓
§
Hold time, address valid after RD1↑ or RD2↓320ns
§
Delay time, CS valid before WR1↓ or WR2↑215ns
§
Delay time, address valid before WR1↓ or WR2↑215ns
Delay time, write cycle, WR1↑ or WR2↓ to ADS↓280ns
§
Delay time, CS valid to RD1↓ or RD2↑315ns
§
Delay time, address valid to RD1↓ or RD2↑315ns
Delay time, read cycle, RD1↑ or RD2↓ to ADS↓380ns
320ns
6
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
t
Pul
BAUDOUT l
1
,,
80
ns
t
Pul
BAUDOUT high
1
,,
80
ns
t
RDR to LSI interrupt or stop to
411
t
Delay time, INTRPT to transmit start
5824
t
Delay time, start to interrupt
588
t
Delay time, initial write to interrupt (THRE)
51632
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
system switching characteristics over recommended ranges of supply voltage and operating
free-air temperature
PARAMETERFIGURETEST CONDITIONSMINMAXUNIT
t
w1
t
w2
t
d3
t
d10
t
d11
t
dis(R)
†
Only applies when ADS is low.
baud generator switching characteristics over recommended ranges of supply voltage and
operating free-air temperature
w3
w4
t
d1
t
d2
Pulse duration, clock high1f = 9 MHz maximum50ns
Pulse duration, clock low1f = 9 MHz maximum50ns
Delay time, select to CS output2,3
Delay time, RD1↓ or RD2↑ to data valid3CL = 100 pF60ns
Delay time, RD1↑ or RD2↓ to floating data3CL = 100 pF060ns
Disable time, RD1↓↑ or RD2↑↓ to DDIS↑↓3CL = 100 pF60ns
PARAMETERFIGURETEST CONDITIONSMINMAXUNIT
se duration,
se duration,
Delay time, XIN↑ to BAUDOUT↑1CL = 100 pF125ns
Delay time, XIN↑↓ to BAUDOUT↓1CL = 100 pF125ns
ow
†
CL = 100 pF70ns
f = 6.25 MHz, CLK ÷ 1,
CL = 100 pF
f = 6.25 MHz, CLK ÷ 1,
CL = 100 pF
receiver switching characteristics over recommended ranges of supply voltage and operating
free-air temperature
PARAMETERFIGURETEST CONDITIONSMINMAXUNIT
t
d12
d13
t
d14
Delay time, RCLK to sample clock4100ns
Delay time, stop to set RCV error interrupt or read
p
↓
RXRDY
Delay time, read RBR/LSR to reset interrupt4CL = 100 pF140ns
p
RCLK
cycles
transmitter switching characteristics over recommended ranges of supply voltage and operating
free-air temperature
PARAMETERFIGURETEST CONDITIONSMINMAXUNIT
d15
d16
t
d17
d18
t
d19
p
Delay time, WR THR to reset interrupt5CL = 100 pF140ns
p
Delay time, read IIR to reset interrupt (THRE)5CL = 100 pF140ns
baudout
cycles
baudout
cycles
baudout
cycles
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
7
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
modem control switching characteristics over recommended ranges of supply voltage and
operating free-air temperature
PARAMETERFIGURETEST CONDITIONSMINMAXUNIT
t
d20
t
d21
t
d22
Delay time, WR MCR to output6CL = 100 pF100ns
Delay time, modem interrupt to set interrupt6CL = 100 pF170ns
Delay time, RD MSR to reset interrupt6CL = 100 pF140ns
Figure 8. Typical Interface for a High-Capacity Data Bus
Figure 7. Basic TL16C450 Configuration
Receiver
WR
8-Bit
Bus Transceiver
Disable
Driver
Disable
DOSTR
TL16C450
Data BusData Bus
(ACE)
D7–D0
DDIS
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
13
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
APPLICATION INFORMATION
A16–A23A16–A23
Address
Decoder
CPU
ADS
RSI/ABT
AD0–AD15
PHI2PHI1
Buffer
AD0–
AD7
12
13
14
25
35
CS0
CS1
CS2
ADS
MR
A0–A2
D0–D7
TL16C450
BAUDOUT
XTAL1
XTAL2
RCLK
DTR
RTS
OUT1
OUT2
RI
DCD
DSR
CTS
16
17
15
9
33
32
34
31
39
38
37
36
5 V
Alternate
Xtal Control
20
1
8
6
5
TCU
PHI2PHI1RSTOADS
RO
WR
AD0–AD15
21
18
22
19
DISTR
DOSTR
DISTR
DOSTR
GND
(V
SS)
INTRPT
CSOUT
2040
5 V
(V
CC)
SOUT
SIN
DDIS
NC
Figure 9. Typical TL16C450 Connection to a CPU
11
10
30
24
23
29
2
3
7
1
EIA-232-D
Connector
14
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
REGISTER/SIGNAL
RESET STATE
Interrupt identification register
Master reset
g,,
INTRPT (transmitter holding register empty)
Lo
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
PRINCIPLES OF OPERATION
Table 1. Register Selection
†
DLAB
0LLLReceiver buffer (read), transmitter holding register (write)
0LLHInterrupt enable
XLHLInterrupt identification (read only)
XLHHLine control
XHLLModem control
XHLHLine status
XHHLModem status
XHHHScratch
1LLLDivisor latch (LSB)
1LLHDivisor 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).
Line control registerAll bits low
Modem control registerMaster resetAll bits low
Line status registerMaster resetBits 5 and 6 are high, all other bits are low
Modem status registerMaster resetBits 0–3 are low, bits 4–7 are input signals
SOUTMaster resetHigh
INTRPT (receiver error flag)Read LSR/MRLow
INTRPT (received data available)Read RBR/MRLow
Bit 0 is high, bits 1 and 2 are low, and bits 3–7 are
permanently low
w
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
15
TL16C450
Bit
No
Int
t
p
Li
g
Enable
Control
Scratch
Latch
Register
Register
Register
(MSB)
IER
LCR
Enable
Word
eceed
“0” If
L
th
Dat
0
Data Bit 0*
Data Bit 0
Int
t
Select
Read
Bit 0
Bit 0
Bit 8
Pending
Bit 0
(DR)
(WLSO)
Enable
ase
g
g
q
g
Traili
y
EdgeRi
Indicator
(TERI)
y
g
Even
4
Data Bit 4
Data Bit 4
0
0
y
L
Int
t
to Send
Bit 4
Bit 4
Bit 12
(BI)
(CTS)
Transmitter
Data
5
Data Bit 5
Data Bit 5
0
0
0
g
Bit 5
Bit 5
Bit 13
Set
g
Break
Data
7
Data Bit 7
Data Bit 7
0
0
Access
0
0
Bit 7
Bit 7
Bit 15
(DCD)
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 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
O DLAB = 0 O DLAB = 01 DLAB = 0234567O DLAB = 1
ReceiverTransmitter
.
BufferHolding
Register
(Read(Write
Only)Only)
RBRTHRIERIIRLCRMCRLSRMSRSCRDLLDLM
1Data Bit 1Data Bit 1
2Data Bit 2Data Bit 2
3Data Bit 3Data Bit 3
6Data Bit 6Data Bit 600
Register
*
errup
Enable
Received
Data
Available
Interrupt
(ERBF)
Enable
Transmitter
Holding
Register
Empty
Interrupt
(ETBE)
Enable
Receiver
Line Status
Interrupt
(ELSI)
EnableDelta
Modem
Status
Interrupt
(EDSSI)(DDCD)
*Bit 0 is the least significant bit. It is the first bit serially transmitted or received.
Interrupt
Ident.
Register
(Read
Only)
“
”
errup
p
Interrupt
ID
Bit (0)
InterruptNumber ofParity
IDStop Bits
Bit (1)(STB)(PE)
0
ne
eng
WordDelta
Length
Select
Bit 1
(WLS1)(DDSR)
ParityFraming
Enable
(PEN)(FE)
Even
Parity
Select
(EPS)
Stick
Parity
Divisor
Latch
Bit
(DLAB)
ModemLineModem
ControlStatusStatus
RegisterRegisterRegister
Data
Terminal
Ready
(DTR)
RequestOverrun
to SendError
(RTS)(OE)
Out 1
Out 2
oop
0
p
Error
Error
Break
errup
TransmitterData
Holding
RegisterReady
(THRE)(DSR)
Transmitter
Empty
(TEMT)
Divisor
Latch
(LSB)
a
y
p
Delta
Clear
to Send
(DCTS)
Data
Set
Ready
ng
Data
Carrier
Detect
Clear
Set
Ring
Indicator
(RI)
Carrier
Detect
Bit 1Bit 1Bit 9
ng
Bit 2Bit 2Bit 10
Bit 3Bit 3Bit 11
Bit 6Bit 6Bit 14
1
DLAB
= 0
16
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
PRINCIPLES OF OPERATION
interrupt enable register (IER)
The IER enables each of the four types of interrupts (refer to T able 4) and the INTRPT output signal in response
to an interrupt generation. By clearing bits 0 – 3, the IER can also disable the interrupt system. The contents
of this register are summarized in Table 3 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 microprocessors.
The ACE provides four prioritized levels of interrupts:
TL16C450
D
Priority 1–Receiver line status (highest priority)
D
Priority 2–Receiver data ready or receiver character time out
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 interrupt in its three
least significant bits (bits 0, 1, and 2). The contents of this register are summarized in Table 3 and described
in Table 4.
D
Bit 0: This bit can be used either in a hardwire prioritized or polled interrupt system. When bit 0 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 4.
D
Bits 3 – 7: These bits in the IIR are not used and are always clear.
Overrun error, parity error,
framing error or break
interrupt
ransm
er ho
ng register
p
Reading the receiver buffer
Buffer register
identification register (if
source of interrupt) or writing
into the transmitter holding
register
INTERRUPT RESET
METHOD
ng the line status
p
Clear to send, data set
0004Modem status
ready, ring indicator, or data
carrier detect
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 as shown in Table 5.
Table 5. Serial Character Word Length
Bit 1Bit 0Word Length
005 Bits
016 Bits
107 Bits
118 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 checks the first stop bit only,
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 6.
Bit 3: This bit is the parity enable bit. When bit 3 is set, a parity bit is generated in transmitted data between
the last data word bit and the first stop bit. In received data, if 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 is in the data and parity bits) is selected. When parity is enabled (bit 3 is set)
and bit 4 is clear, odd parity (an odd number of logic 1s) is selected.
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
Word Length SelectedNumber of Stop
by Bits 1 and 2
Bits Generated
TL16C450
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.
D
Bit 6: This bit is the break control bit. Bit 6 is set to force a break condition, i.e, a condition where the serial
output terminal (SOUT) is forced to the spacing (cleared) state. When bit 6 is cleared, the break condition
is disabled. The break condition has no affect on the transmitter logic, it only affects 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 and is cleared by reading the RBR.
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 was read, it was overwritten by the next character transferred into the register. The OE indicator
is cleared every time the CPU reads the contents of the LSR.
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.
D
Bit 3‡: This bit is the framing error (FE) indicator. When bit 3 is set, it indicates that the received character
does not have a valid (set) stop bit. The FE bit is cleared every time the CPU reads the contents of the LSR.
†
D
Bit4‡: This bit is the break interrupt (BI) indicator. When bit 4 is set, it indicates that the received data input
was held clear 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.
†
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.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
19
TL16C450
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
PRINCIPLES OF OPERATION
line status register (LSR)† (continued)
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, then 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.
D
Bit 6: This bit is the transmitter empty (TEMT) indicator. Bit 6 is set when the THR and the transmitter shift
register are both empty . When either the THR or the transmitter shift register contains a data character, the
TEMT bit is cleared.
D
Bit 7: This bit is always clear.
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 active state (low). When bit 0 is clear, DTR
goes high.
D
Bit 1: This bit (RTS) controls the request to send (RTS) 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
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 loopback feature for diagnostic testing of the ACE. When bit 4 is set, the
following occurs:
1. The SOUT is asserted high.
2. The SIN is disconnected.
3. The output of the transmitter shift register is looped back into the RSR input.
4. The four modem control inputs (CTS
5. The four modem control outputs (DTR
6. The four modem control output terminals are forced to their inactive states (high).
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 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 through 7: These bits are clear.
output.
output.
output.
, DSR, DCD, and RI) are disconnected.
, RTS, OUT1, and OUT2) are internally connected to the four
modem control inputs.
†
The line status register is intended for read operations only; writing to this register is not recommended outside of a factory testing environment.
20
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
ASYNCHRONOUS COMMUNICATIONS ELEMENT
SLLS037B – MARCH 1988 – REVISED MARCH 1996
PRINCIPLES OF OPERATION
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 provides 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 delta clear to send (DCTS) 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 delta data set ready (DDSR) 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.
D
Bit 2: This bit is the trailing edge of 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.
TL16C450
D
Bit 3: This bit is the delta data carrier detect (DDCD) indicator. Bit 3 indicates that the DCD input to the chip
has changed state 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, this
bit 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,
this bit is equivalent to the MCR bit 0 (DTR).
D
Bit 6: This bit is the complement of the ring indicator (RI) input. When bit 4 (loop) of the MCR is set, this
bit 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,
this bit is equivalent to the MCRs bit 3 (OUT2).
programmable baud generator
The ACE contains a programmable baud generator that takes a clock input in the range between dc and 9 MHz
and divides it by a divisor in the range between 1 and (2
sixteen times (16×) the baud rate. The formula for the divisor is:
divisor # = XTAL1 frequency input B (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.
T ables 7 and 8 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 kilobits per second and below, the error obtained is very small. The accuracy
of the selected baud rate is dependent on the selected crystal frequency.
16
–1). The output frequency of the baud generator is
Refer to Figure 10 for examples of typical clock circuits.
The ACE receiver section consists of a receiver shift register and a RBR. Timing is supplied by the 16×receiver
clock (RCLK). Receiver section control is a function of the ACE line control register.
The ACE receiver shift register receives serial data from the serial input (SIN) terminal. The receiver shift
register then converts the data to a parallel form and loads it into the RBR. When a character is placed in the
RBR 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.
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 programmer data without affecting any other ACE operation.
transmitter holding register (THR)
The ACE transmitter section consists of a THR and a transmitter shift register. Timing is supplied by the baud
out (BAUDOUT
The ACE THR receives data from the internal data bus and, when the shift register is idle, moves it into the
transmitter shift register. The transmitter shift register serializes the data and outputs it at the serial output
(SOUT). If 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.
) clock signal. Transmitter section control is a function of the ACE line control register.
24
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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.