TL16C2550 www.ti.com SLWS161 – JUNE 2005 2.5-V to 5-V DUAL UART WITH 16-BYTE FIFOS • • • • • • • • • • • • • • • • • Programmable Auto-RTS and Auto-CTS In Auto-CTS Mode, CTS Controls Transmitter In Auto-RTS Mode, RCV FIFO Contents and Threshold Control RTS Serial and Modem Control Outputs Drive a RJ11 Cable Directly When Equipment Is on the Same Power Drop Capable of Running With All Existing TL16C450 Software After Reset, All Registers Are Identical to the TL16C450 Register Set Up to 24-MHz Clock Rate for up to 1.5-Mbaud Operation With VCC = 5 V Up to 20-MHz Clock Rate for up to 1.25-Mbaud Operation With VCC = 3.3 V Up to 16-MHz Clock Rate for up to 1-Mbaud Operation With VCC = 2.5 V In the TL16C450 Mode, Hold and Shift Registers Eliminate the Need for Precise Synchronization Between the CPU and Serial Data Programmable Baud Rate Generator Allows Division of Any Input Reference Clock by 1 to (216 - 1) and Generates an Internal 16 × Clock Standard Asynchronous Communication Bits (Start, Stop, and Parity) Added to or Deleted From the Serial Data Stream 5-V, 3.3-V, and 2.5-V Operation Independent Receiver Clock Input Transmit, Receive, Line Status, and Data Set Interrupts Independently Controlled 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 1 Mbit/s) False-Start Bit Detection Complete Status Reporting Capabilities 3-State Output TTL Drive Capabilities for Bidirectional Data Bus and Control Bus Line Break Generation and Detection • • • • • Internal Diagnostic Capabilities: – Loopback Controls for Communications Link Fault Isolation – Break, Parity, Overrun, and Framing Error Simulation Fully Prioritized Interrupt System Controls Modem Control Functions (CTS, RTS, DSR, DTR, RI, and DCD) Available in 48-Pin TQFP (PFB), 44-Pin PLCC (FN), or 32-Pin QFN (RHB) Packages Pin Compatible with TL16C752B (48-Pin Package) APPLICATIONS • • • • • • Point-of-Sale Terminals Gaming Terminals Portable Applications Router Control Cellular Data Factory Automation DESCRIPTION The TL16C2550 is a dual universal asynchronous receiver and transmitter (UART). It incorporates the functionality of two TL16C550D UARTs, each UART having its own register set and FIFOs. The two UARTs share only the data bus interface and clock source, otherwise they operate independently. Another name for the uart function is Asynchronous Communications Element (ACE), and these terms will be used interchangeably. The bulk of this document will describe the behavior of each ACE, with the understanding that two such devices are incorporated into the TL16C2550. 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. PRODUCT PREVIEW information concerns products in the formative or design phase of development. Characteristic data and other specifications are design goals. Texas Instruments reserves the right to change or discontinue these products without notice. Copyright © 2005, Texas Instruments Incorporated PRODUCT PREVIEW FEATURES • • • TL16C2550 www.ti.com SLWS161 – JUNE 2005 Each ACE has a TXRDY# and RXRDY# output that can be used to interface to a DMA controller. D4 D3 D2 D1 D0 TXRDYA VCC RA CDA DSRA CTSA NC D5 D6 D7 RXB RXA TXRDYB TXA TXB OPB CSA CSB NC 1 36 2 35 3 34 4 33 5 32 6 8 29 9 28 10 27 11 26 12 25 XTAL1 XTAL2 IOW CDB GND RXRDYB IOR DSRB RIB RTSB CTSB NC 13 14 15 16 17 18 19 20 21 22 23 24 NC −No internal connection CTSA DSRA 1 44 43 42 41 40 CDA 2 RIA 3 VCC D0 4 TXRDYA 5 D1 6 D2 FN PACKAGE (TOP VIEW) D5 7 39 RESET D6 8 38 DTRB D7 9 37 DTRA RXB 10 36 RTSA RXA 11 35 OPA TXRDYB 12 34 RXRDYA TXA 13 33 INTA TXB 14 32 INTB OPB 15 31 A0 CSA 16 30 A1 CSB 17 29 A2 TL16C2550FN CTSB RTSB RIB IOR DSRB RXRDYB GND CDB IOW XTAL2 18 19 20 21 22 23 24 25 26 27 28 2 RESET DTRB DTRA RTSA OPA RXRDYA INTA INTB A0 A1 A2 NC 31 30 TL16C2550PFB 7 D3 Each ACE includes a programmable baud rate generator capable of dividing a reference clock with divisors of from 1 to 65535, thus producing a 16× internal reference clock for the transmitter and receiver logic. Each ACE accommodates up to a 1.5-Mbaud serial data rate (24-MHz input clock). As a reference point, that speed would generate a 667-ns bit time and a 6.7-µs character time (for 8,N,1 serial data), with the internal clock running at 24 MHz. 48 47 46 45 44 43 42 41 40 39 38 37 XTAL1 PRODUCT PREVIEW Each ACE performs serial-to-parallel conversions on data received from a peripheral device or modem and stores the parallel data in its receive buffer or FIFO, and each ACE performs parallel-to-serial conversions on data sent from its CPU after storing the parallel data in its transmit buffer or FIFO. The CPU can read the status of either ACE at any time. Each ACE includes complete modem control capability and a processor interrupt system that can be tailored to the application. PFB PACKAGE (TOP VIEW) D4 Each ACE is a speed and voltage range upgrade of the TL16C550C, which in turn is a functional upgrade of the TL16C450. Functionally equivalent to the TL16C450 on power up or reset (single character or TL16C450 mode), each ACE can be placed in an alternate FIFO mode. This relieves the CPU of excessive software overhead by buffering received and to be transmitted characters. Each receiver and transmitter store up to 16 bytes in their respective FIFOs, with the receive FIFO including three additional bits per byte for error status. In the FIFO mode, a selectable autoflow control feature can significantly reduce software overload and increase system efficiency by automatically controlling serial data flow using handshakes between the RTS# output and CTS# input, thus eliminating overruns in the receive FIFO. TL16C2550 www.ti.com SLWS161 – JUNE 2005 D4 D3 D2 D1 D0 VCC CTSA 31 30 29 28 27 26 25 D6 1 24 RESET D7 2 23 RTSA RXB 3 22 INTA RXA 4 21 INTB TXA 5 20 A0 TXB 6 19 A1 CSA 7 18 A2 CSB 8 17 NC 13 14 GND IOR 16 12 IOW RTSB 11 XTAL2 CTSB 10 XTAL1 15 9 NC TL16C2550RHB PRODUCT PREVIEW D5 32 RHB PACKAGE (TOP VIEW) NC − No internal connection NOTE: The 32-pin RHB package does not provide access to DSRA, DRRB, RIA, RIB, CDA, CDB inputs, and OPA, OPB, RXRDYA, RXRDYB, TXRDYA, TXRDYB outputs. UART Channel A TXA A2 − A0 16 Byte Tx FIFO D7 − D0 Tx CSA CTSA OPA, DTRA UART Regs CSB BAUD Rate Gen IOR IOW DSRA, RIA, CDA RTSA 16 Byte Rx FIFO Rx RXA INTA INTB Data Bus Interface UART Channel B TXRDYA TXB TXRDYB 16 Byte Tx FIFO Tx RXRDYA OPB, DTRB RXRDYB UART Regs BAUD Rate Gen RESET XTAL1 XTAL2 CTSB DSRB, RIB, CDB RTSB 16 Byte Rx FIFO Crystal OSC Buffer Rx RXB VCC GND Figure 1. TL16C2550 Block Diagram 3 TL16C2550 www.ti.com SLWS161 – JUNE 2005 DEVICE INFORMATION TERMINAL FUNCTIONS TERMINAL NAME I/O DESCRIPTION PFB NO. FN NO. RHB NO. A0 28 31 20 I Address 0 select bit. Internal registers address selection A1 27 30 19 I Address 1 select bit. Internal registers address selection A2 26 29 18 I Address 2 select bit. Internal registers address selection PRODUCT PREVIEW CDA, CDB 40, 16 42, 21 – I Carrier detect (active low). These inputs are associated with individual UART channels A and B. A low on these pins indicates that a carrier has been detected by the modem for that channel. The state of these inputs is reflected in the modem status register (MSR). CSA, CSB 10, 11 16, 17 7, 8 I Chip select A and B (active low). These pins enable data transfers between the user CPU and the TL16C2550 for the channel(s) addressed. Individual UART sections (A, B) are addressed by providing a low on the respective CSA and CSB pins. I Clear to send (active low). These inputs are associated with individual UART channels A and B. A logic low on the CTS pins indicates the modem or data set is ready to accept transmit data from the 2550. Status can be tested by reading MSR bit 4. These pins only affect the transmit and receive operations when auto CTS function is enabled through the enhanced feature register (EFR) bit 7, for hardware flow control operation. CTSA, CTSB 38, 23 40, 28 25, 16 D0-D4 44 - 48 2-6 27 - 31 D5-D7 DSRA, DSRB DTRA, DTRB GND 1-3 39, 20 7-9 41, 25 32, 1, 2 – 34, 35 37, 38 – 17 22 13 I/O Data bus (bidirectional). These pins are the eight bit, 3-state data bus for transferring information to or from the controlling CPU. D0 is the least significant bit and the first data bit in a transmit or receive serial data stream. I Data set ready (active low). These inputs are associated with individual UART channels A and B. A logic low on these pins indicates the modem or data set is powered on and is ready for data exchange with the UART. The state of these inputs is reflected in the modem status register (MSR). O Data terminal ready (active low). These outputs are associated with individual UART channels A and B. A logic low on these pins indicates that theTLl16C2550 is powered on and ready. These pins can be controlled through the modem control register. Writing a 1 to MCR bit 0 sets the DTR output to low, enabling the modem. The output of these pins is high after writing a 0 to MCR bit 0, or after a reset. Signal and power ground. 30, 29 33, 32 22, 21 O Interrupt A and B (active high). These pins provide individual channel interrupts, INT A and B. INT A and B are enabled when MCR bit 3 is set to a logic 1, interrupt sources are enabled in the interrupt enable register (IER). Interrupt conditions include: receiver errors, available receiver buffer data, available transmit buffer space or when a modem status flag is detected. INTA-B are in the high-impedance state after reset. IOR 19 24 14 I Read input (active low strobe). A high to low transition on IOR will load the contents of an internal register defined by address bits A0-A2 onto the TL16C2550 data bus (D0-D7) for access by an external CPU. IOW 15 20 12 I Write input (active low strobe). A low to high transition on IOW will transfer the contents of the data bus (D0-D7) from the external CPU to an internal register that is defined by address bits A0-A2 and CSA and CSB NC 12, 24, 25, 37 – 9, 17 INTA, INTB OPA, OPB RESET 4 No internal connection 32, 9 35, 15 – O User defined outputs. This function is associated with individual channels A and B. The state of these pins is defined by the user through the software settings of the MCR register, bit 3. INTA-B are set to active mode and OP to a logic 0 when the MCR-3 is set to a logic 1. INTA-B are set to the 3-state mode and OP to a logic 1 when MCR-3 is set to a logic 0. See bit 3, modem control register (MCR bit 3). The output of these two pins is high after reset. 36 39 24 I Reset. RESET will reset the internal registers and all the outputs. The UART transmitter output and the receiver input will be disabled during reset time. See TL16C2550 external reset conditions for initialization details. RESET is an active-high input. TL16C2550 www.ti.com SLWS161 – JUNE 2005 DEVICE INFORMATION (continued) TERMINAL FUNCTIONS (continued) TERMINAL NAME RIA, RIB PFB NO. 41, 21 FN NO. RHB NO. 43, 26 – I/O DESCRIPTION I Ring indicator (active low). These inputs are associated with individual UART channels A and B. A logic low on these pins indicates the modem has received a ringing signal from the telephone line. A low to high transition on these input pins generates a modem status interrupt, if enabled. The state of these inputs is reflected in the modem status register (MSR) 36, 27 23, 15 O RXA, RXB 5, 4 11, 10 4, 3 I Receive data input. These inputs are associated with individual serial channel data to the 2550. During the local loopback mode, these RX input pins are disabled and TX data is internally connected to the UART RX input internally. RXRDYA, RXRDYB 31, 18 34, 23 – O Receive ready (active low). RXRDY A and B goes low when the trigger level has been reached or a timeout interrupt occurs. They go high when the RX FIFO is empty or there is an error in RX FIFO. TXA, TXB 7, 8 13, 14 5, 6 O Transmit data. These outputs are associated with individual serial transmit channel data from the 2550. During the local loopback mode, the TX input pin is disabled and TX data is internally connected to the UART RX input. TXRDYA, TXRDYB 43, 6 11, 12 – O Transmit ready (active low). TXRDY A and B go low when there are at least a trigger level numbers of spaces available. They go high when the TX buffer is full. 42 44 26 I Power supply inputs. RTSA, RTSB VCC XTAL1 13 18 10 I Crystal or external clock input. XTAL1 functions as a crystal input or as an external clock input. A crystal can be connected between XTAL1 and XTAL2 to form an internal oscillator circuit (see Figure 10). Alternatively, an external clock can be connected to XTAL1 to provide custom data rates. XTAL2 14 19 11 O Output of the crystal oscillator or buffered clock. See also XTAL1. XTAL2 is used as a crystal oscillator output or buffered a clock output. PRODUCT PREVIEW 33, 22 Request to send (active low). These outputs are associated with individual UART channels A and B. A low on the RTS pin indicates the transmitter has data ready and waiting to send. Writing a 1 in the modem control register (MCR bit 1) sets these pins to low, indicating data is available. After a reset, these pins are set to high. These pins only affects the transmit and receive operation when auto RTS function is enabled through the enhanced feature register (EFR) bit 6, for hardware flow control operation. Detailed Description Autoflow Control (see Figure 2) Autoflow control is comprised of auto-CTS and auto-RTS. With auto-CTS, the CTS input must be active before the transmitter FIFO can emit data. With auto-RTS, RTS becomes active when the receiver needs more data and notifies the sending serial device. When RTS is connected to CTS, data transmission does not occur unless the receiver FIFO has space for the data; thus, overrun errors are eliminated using ACE1 and ACE2 from a TLC16C2550 with the autoflow control enabled. If not, overrun errors occur when the transmit data rate exceeds the receiver FIFO read latency. 5 TL16C2550 www.ti.com SLWS161 – JUNE 2005 ACE1 RCV FIFO ACE2 Serial to Parallel Flow Control SIN RTS SOUT CTS Parallel to Serial XMT FIFO Flow Control D7 −D0 D7 −D0 XMT FIFO Parallel to Serial Flow Control SOUT CTS SIN RTS Serial to Parallel RCV FIFO Flow Control Figure 2. Autoflow Control (Auto-RTS and Auto-CTS) Example Auto-RTS (see Figure 2) PRODUCT PREVIEW Auto-RTS data flow control originates in the receiver timing and control block (see functional block diagram) and is linked to the programmed receiver FIFO trigger level. When the receiver FIFO level reaches a trigger level of 1, 4, or 8 (see Figure 3), RTS is deasserted. With trigger levels of 1, 4, and 8, the sending ACE may send an additional byte after the trigger level is reached (assuming the sending ACE has another byte to send) because it may not recognize the deassertion of RTS until after it has begun sending the additional byte. RTS is automatically reasserted once the RCV FIFO is emptied by reading the receiver buffer register. When the trigger level is 14 (see Figure 4), RTS is deasserted after the first data bit of the 16th character is present on the RX line. RTS is reasserted when the RCV FIFO has at least one available byte space. Auto-CTS (see Figure 2) The transmitter circuitry checks CTS before sending the next data byte. When CTS is active, it sends the next byte. To stop the transmitter from sending the following byte, CTS must be released before the middle of the last stop bit that is currently being sent (see Figure 2). The auto-CTS function reduces interrupts to the host system. When flow control is enabled, CTS level changes do not trigger host interrupts because the device automatically controls its own transmitter. Without auto-CTS, the transmitter sends any data present in the transmit FIFO and a receiver overrun error may result. Enabling Autoflow Control and Auto-CTS Autoflow control is enabled by setting modem control register bits 5 (autoflow enable or AFE) and 1 (RTS) to a 1. Autoflow incorporates both auto-RTS and auto-CTS. When only auto-CTS is desired, bit 1 in the modem control register should be cleared (this assumes that a control signal is driving CTS). Auto-CTS and Auto-RTS Functional Timing SOUT Start Bits 0 −7 Stop Start Bits 0 −7 Stop CTS Figure 3. CTS Functional Timing Waveforms 6 Start Bits 0 −7 Stop TL16C2550 www.ti.com SLWS161 – JUNE 2005 SIN Start Byte N Stop Start Byte N+1 Start Stop Byte Stop RTS RD (RD RBR) 1 2 N N+1 Figure 4. RTS Functional Timing Waveforms, RCV FIFO Trigger Level = 1, 4, or 8 Bytes SIN RTS Byte 14 Byte 15 Start Byte 16 Stop Start Byte 18 Stop RTS Released After the First Data Bit of Byte 16 PRODUCT PREVIEW RD (RD RBR) Figure 5. RTS Functional Timing Waveforms, RCV FIFO Trigger Level = 14 Bytes 7 TL16C2550 www.ti.com SLWS161 – JUNE 2005 Internal Data Bus 3 −1 48−44 D(7−0) XTAL1 XTAL2 A0 A1 A2 13 14 Data Bus Buffer Crystal OSC Buffer 8 S e l e c t Receiver FIFO 8 Receiver Shift Register Receiver Buffer Register Receiver Timing and Control Line Control Register PRODUCT PREVIEW CSB RESET IOR IOW TXRDYA RXRDYA TXRDYB RXRDYB 27 Divisor Latch (LS) 26 10 11 36 19 Transmitter Timing and Control Line Status Register Select and Control Logic Transmitter FIFO Transmitter Holding Register 15 43 31 8 Modem Control Register 6 S e l e c t 7, 8 38, 23 34, 35 8 Modem Control Logic 39, 20 40, 16 41, 21 32, 9 42 17 Power Supply Interrupt Enable Register Interrupt Identification Register 8 Interrupt Control Logic 8 FIFO Control Register Pin numbers shown are for 48-pin TQFP PFB package. Figure 6. Functional Block Diagram 8 Transmitter Shift Register 18 INTA, B A. 8 Autoflow Control (AFE) TXA, B 8 30, 29 GND 33, 22 RTSA, B Baud Generator Modem Status Register VCC RXA, B 28 Divisor Latch (MS) CSA 5,4 CTSA, B DTRA, B DSRA, b CDA,B RIA, B OPA, B TL16C2550 www.ti.com SLWS161 – JUNE 2005 ABSOLUTE MAXIMUM RATINGS (1) over operating free-air temperature range (unless otherwise noted) UNIT (2)) -0.5 V to 7 V Input voltage range at any input, VI -0.5 V to 7 V Output voltage range, VO -0.5 V to 7 V Supply voltage range, VCC (see Operating free-air temperature, TA, TL16C2550 0°C to 70°C Operating free-air temperature, TA, TL16C2550I -40°C to 85°C Storage temperature range, Tstg -65°C to 150°C Lead temperature 1,6 mm (1/16 inch) from case for 10 seconds (1) (2) 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. All voltage values are with respect to VSS. RECOMMENDED OPERATING CONDITIONS 2.5 V ±10% MIN NOM MAX UNIT 2.25 2.5 2.75 V 0 VCC V High-level input voltage 1.8 2.75 V Low-level input voltage -0.3 0.6 V 0 VCC V VCC Supply voltage VI Input voltage VIH VIL VO Output voltage IOH High-level output current (all outputs) 1 IOL Low-level output current (all outputs) 2 mA 16 MHz UNIT Oscillator/clock speed 3.3 V ±10% mA MIN NOM MAX 3 3.3 3.6 V VCC V VCC Supply voltage VI Input voltage VIH High-level input voltage VIL Low-level input voltage VO Output voltage VCC V IOH High-level output current (all outputs) 1.8 mA IOL Low-level output current (all outputs) 3.2 mA Oscillator/clock speed 20 MHz MAX UNIT 0 0.7VCC VCC Supply voltage VI Input voltage VIH High-level input voltage 0 Low-level input voltage MIN NOM 4.5 5 0 All except XTAL1, XTAL2 XTAL1, XTAL2 VIL V 0.3VCC 5 V ±10% V 5.5 V VCC V 2 V 0.7VCC All except XTAL1, XTAL2 0.8 XTAL1, XTAL2 V 0.3VCC VO Output voltage IOH High-level output current (all outputs) 4 IOL Low-level output current (all outputs) 4 mA 24 MHz Oscillator/clock speed PRODUCT PREVIEW over operating free-air temperature range (unless otherwise noted) 0 VCC V mA 9 TL16C2550 www.ti.com SLWS161 – JUNE 2005 ELECTRICAL CHARACTERISTICS over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) 2.5 V Nominal PARAMETER TEST CONDITIONS PRODUCT PREVIEW VOH High-level output voltage (2) VOL Low-level output voltage (2) II Input current IOZ High-impedance-state output current VCC = 3.6 V, VSS = 0, VI = 0 to 3.6 V, Chip slected in write mode or chip deselcted ICC Supply current VCC = 3.6 V, TA = 25°C, RXA, RXB, DSRA, DSRB, CDA, CDB, CTSA, CTSB, RIA, and RIB at 2 V, All other inputs at 0.8 V, XTAL1 at 4 MHz, No load on outputs, Ci(CLK) Clock input impedance CO(CLK) Clock output impedance VCC = 0, VSS = 0, f = 1 MHz, TA = 25°C, All other terminals grounded CI Input impedance CO Output impedance (1) (2) IOH = -1 mA MIN TYP (1) MAX 1.8 UNIT V IOL = 2 mA 0.5 V VCC = 3.6 V, VSS = 0, VI = 0 to 3.6 V, All other terminals floating 10 µA ±20 µA 16 mA 15 20 pF 20 30 pF 6 10 pF 10 20 pF TYP (1) MAX All typical values are at VCC = 2.5 V and TA = 25°C. These parameters apply for all outputs except XTAL2. ADDED SPACE 3.3V Nominal PARAMETER voltage (2) TEST CONDITIONS High-level output VOL Low-level output voltage (2) IOL = 3.2 mA 0.5 V II Input current VCC = 3.6 V, VSS = 0, VI = 0 to 3.6 V, All other terminals floating 10 µA IOZ High-impedance-state output current VCC = 3.6 V, VSS = 0, VI = 0 to 3.6 V, Chip slected in write mode or chip deselcted ±20 µA ICC Supply current VCC = 3.6 V, TA = 25°C, RXA, RXB, DSRA, DSRB, CDA, CDB, CTSA, CTSB, RIA, and RIB at 2 V, All other inputs at 0.8 V, XTAL1 at 4 MHz, No load on outputs, 20 mA Ci(CLK) Clock input impedance 20 pF Clock output impedance VCC = 0, VSS = 0, f = 1 MHz, TA = 25°C, All other terminals grounded 15 CO(CLK) 20 30 pF CI Input impedance 6 10 pF CO Output impedance 10 20 pF 10 All typical values are at VCC = 3.3 V and TA = 25°C. These parameters apply for all outputs except XTAL2. 2.4 UNIT VOH (1) (2) IOH = -1.8 mA MIN V TL16C2550 www.ti.com SLWS161 – JUNE 2005 5 V Nomial PARAMETER voltage (2) TEST CONDITIONS MIN MAX 4 UNIT VOH High-level output VOL Low-level output voltage (2) IOL = 4 mA 0.4 V II Input current VCC = 5.25 V, VSS = 0, VI = 0 to 5.25 V, All other terminals floating 10 µA IOZ High-impedance-state output current VCC = 5.25 V, VSS = 0, VI = 0 to 5.25 V, Chip slected in write mode or chip deselcted ±20 µA ICC Supply current VCC = 5.25 V, TA = 25°C, RXA, RXB, DSRA, DSRB, CDA, CDB, CTSA, CTSB, RIA, and RIB at 2 V, All other inputs at 0.8 V, XTAL1 at 4 MHz, No load on outputs, 24 mA Ci(CLK) Clock input impedance 20 pF Clock output impedance VCC = 0, VSS = 0, f = 1 MHz, TA = 25°C, All other terminals grounded 15 CO(CLK) 20 30 pF CI Input impedance 6 10 pF CO Output impedance 10 20 pF V All typical values are at VCC = 5 V and TA = 25°C. These parameters apply for all outputs except XTAL2. TIMING REQUIREMENTS over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) LIMITS PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS 2.5 V 3.3 V MIN MAX MIN MAX 5V UNIT MIN MAX tcR Cycle time, read (tw7 + td8 + td9) RC tcW Cycle time, write (tw6 + td5 + td6) WC tw1 Pulse duration, clock high tXH tw2 Pulse duration, clock low tXL tw1 Pulse duration, clock high tXH tw2 Pulse duration, clock low tXL tw1 Pulse duration, clock high tXH tw2 Pulse duration, clock low tXL tw6 Pulse duration,IOW tIOW tw7 Pulse duration, IOR tIOR tw8 Pulse duration, RESET ns tSU3 Setup time, data valid before IOW↑ tSU4 Setup time, CTS↑ before midpoint of stop bit th3 Hold time, CS valid afterIOW↑ tWCS th4 Hold time, address valid after IOW↑ tWA th5 Hold time, data valid after IOW↑ tDH th6 Hold time, chip select valid after IOR↑ tRCS th7 Hold time, address valid afterIOR↑ td4 Delay time, CS valid before IOW↓ td5 Delay time, address valid before IOW↓ tAW td7 Delay time, CS valid to IOR↓ tCSR td8 Delay time, address valid to IOR↓ tAR td10 Delay time, IOR↓ to data valid tRVD 7 CL = 75 pF 45 ns td11 Delay time, IOR↑ to floating data tHZ 7 CL = 75 pF 20 ns 87 ns 5 f = 16 MHz Max, VCC = 2.5 V 25 ns 5 f = 20 MHz Max, VCC = 3.3 V 20 ns 5 f = 24 MHz Max, VCC = 5 V 18 ns 6 40 ns 7 40 ns 1 µs tRESET tDS 87 6 15 ns 17 10 ns 6 10 ns 6 5 ns 7 10 ns tRA 7 20 ns tCSW 6 7 ns 7 7 ns 11 PRODUCT PREVIEW (1) (2) IOH = -4 mA TYP (1) TL16C2550 www.ti.com SLWS161 – JUNE 2005 RECEIVER SWITCHING CHARACTERISTICS (1) over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (see ) LIMITS PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS 2.5 V 3.3 V MIN MAX MIN MAX 5V MIN UNIT MAX td12 Delay time, RCLK to sample tSCD 8 10 ns td13 Delay time, stop to set INT or read RBR to LSI interrupt or stop to RXRDY↓ tSINT 8, 9, 10, 11, 12 1 RCLK cycle td14 Delay time, read RBR/LSR to reset INT tRINT 8, 9, 10, 11, 12 70 ns (1) CL = 75 pF In the FIFO mode, the read cycle (RC) = 425 ns (min) between reads of the receive FIFO and the status registers (interrupt identification register or line status register). TRANSMITTER SWITCHING CHARACTERISTICS over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) LIMITS PRODUCT PREVIEW PARAMETER ALT. SYMBOL FIGURE TEST CONDITIONS 2.5 V 3.3 V 5V MIN MAX MIN MAX MIN MAX UNIT td15 Delay time, initial write to transmit start tIRS 13 8 24 baudout cycles td16 Delay time, start to INT tSTI 13 8 10 baudout cycles td17 Delay time, IOW (WR THR) to reset INT tHR 13 50 ns td18 Delay time, initial write to INT (THRE (1)) tSI 13 34 baudout cycles td19 Delay time, read IOR↑ to reset INT (THRE (1)) tIR 13 CL = 75 pF 35 ns td20 Delay time, write to TXRDY inactive tWXI 14, 15 CL = 75 pF 35 ns td21 Delay time, start to TXRDY active tSXA 14, 15 CL = 75 pF 9 baudout cycles (1) 12 CL = 75 pF 16 THRE = transmitter holding register empty; IIR = interrupt identification register. TL16C2550 www.ti.com SLWS161 – JUNE 2005 MODEM CONTROL SWITCHING CHARACTERISTICS over operating free-air temperature range (unless otherwise noted) LIMITS ALT. SYMBOL PARAMETER FIGURE TEST CONDITIONS 2.5 V 3.3 V 5V MIN MAX MIN MAX MIN MAX UNIT (1) Delay time, WR MCR to output tMDO 16 CL = 75 pF ns td23 Delay time, modem interrupt to set INT tSIM 16 CL = 75 pF ns td24 Delay time, RD MSR to reset INT tRIM 16 CL = 75 pF ns td25 Delay time, CTS low to TX↓ 17 CL = 75 pF baudout cycles td26 Delay time, RCV threshold byte to RTS↑ 18 CL = 75 pF baudout cycles td27 Delay time, read of last byte in receive FIFO to RTS↓ 18 CL = 75 pF baudout cycles td28 Delay time, first data bit of 16th character to RTS↑ 19 CL = 75 pF baudout cycles td29 Delay time, RBRRD low to RTS↓ 19 CL = 75 pF baudout cycles (1) PRODUCT PREVIEW td22 A baudout cycle is equal to the period of the input clock divided by the programmed divider in DLL, DLM. A2 −A0 CSA, CSB IOW 50% Valid 50% 50% 50% 50% 50% tsu3 D7 −D0 th5 Valid Data Figure 7. Write Cycle Timing Waveforms 13 TL16C2550 www.ti.com SLWS161 – JUNE 2005 A2 −A0 CSA, CSB 50% Valid 50% 50% 50% IOR 50% 50% td10 td11 Valid Data D7 −D0 Figure 8. Read Cycle Timing Waveforms PRODUCT PREVIEW RCLK (Internal) td12 8 CLKs Sample Clock (Internal) TL16C450 Mode: RXA, RXB Start Data Bits 5− 8 Parity Stop Sample Clock INT (data ready) 50% td13 INT (RCV error) td14 50% 50% IOR (read RBR) IOR (read LSR) 50% 50% 50% Active Active td14 Figure 9. Receiver Timing Waveforms 14 TL16C2550 www.ti.com SLWS161 – JUNE 2005 RXA, RXB Data Bits 5 −8 Stop Sample Clock (Internal) Trigger Level INT (FCR6, 7 = 0, 0) 50% 50% (FIFO at or above trigger level) (FIFO below trigger level) td13 (see Note A) INT Line Status Interrupt (LSI) td14 50% 50% td14 IOR (RD LSR) Active 50% Active IOR (RD RBR) PRODUCT PREVIEW 50% Figure 10. Receive FIFO First Byte (Sets DR Bit) Waveforms RXA, RXB Stop Sample Clock (Internal) Time-Out or Trigger Level Interrupt 50% 50% (FIFO below trigger level) td13 td14 (see Note A) 50% Line Status Interrupt (LSI) td13 50% Top Byte of FIFO td14 IOP (RD LSR) IOR (RD RBR) (FIFO at or above trigger level) 50% Active 50% 50% Active Previous Byte Read From FIFO Figure 11. Receive FIFO Bytes Other Than the First Byte (DR Internal Bit Already Set) Waveforms 15 TL16C2550 www.ti.com SLWS161 – JUNE 2005 IOR (RD RBR) 50% Active See Note A RXA, RXB (first byte) Stop Sample Clock (Internal) td13 (see Note B) td14 50% 50% RXRDYA, RXRDYB Figure 12. Receiver Ready (RXRDY) Waveforms, FCR0 = 0 or FCR0 = 1 and FCR3 = 0 (Mode 0) IOR (RD RBR) Active 50% PRODUCT PREVIEW See Note A RXA, RXB (first byte that reaches the trigger level) Sample Clock (Internal) td13 (see Note B) td14 50% RXRDYA, RXRDYB 50% Figure 13. Receiver Ready (RXRDY) Waveforms, FCR0 = 1 and FCR3 = 1 (Mode 1) Start 50% TXA, TXB Data Bits Parity td15 INT (THRE) 50% Stop Start 50% td16 50% 50% 50% 50% td18 td17 td17 IOW 50% (WR THR) 50% 50% td19 IOR 50% Figure 14. Transmitter Timing Waveforms 16 TL16C2550 www.ti.com SLWS161 – JUNE 2005 Byte 1 IOW (WR THR) TXA, TXB 50% Data Parity Stop Start 50% td21 td20 TXRDYA, TXRDYB 50% 50% Figure 15. Transmitter Ready (TXRDY) Waveforms, FCR0 = 0 or FCR0 = 1 and FCR3 = 0 (Mode 0) Byte 16 TXA, TXB 50% Data Parity Stop td21 td20 TXRDYA, TXRDYB Start 50% PRODUCT PREVIEW IOW (WR THR) 50% 50% FIFO Full Figure 16. Transmitter Ready (TXRDY) Waveforms, FCR0 = 1 and FCR3 = 1 (Mode 1) IOW (WR MCR) 50% 50% td22 td22 RTSA, RTSB, DTRA, DTRB, OPA, OPB 50% 50% 50% CTSA, CTSB, DSRA, DSRB, CDA, CDB td23 INT (modem) 50% 50% 50% td24 IOR (RD MSR) td23 50% RI 50% Figure 17. Modem Control Timing Waveforms 17 TL16C2550 www.ti.com SLWS161 – JUNE 2005 tsu4 CTSA, CTSB 50% 50% td25 TXA, TXB 50% Midpoint of Stop Bit Figure 18. CTS and TX Autoflow Control Timing (Start and Stop) Waveforms Midpoint of Stop Bit RXA, RXB td26 td27 50% 50% RTSA, RTSB PRODUCT PREVIEW 50% IOR Figure 19. Auto-RTS Timing for RCV Threshold of 1, 4, or 8 Waveforms Midpoint of Data Bit 0 RXA, RXB 15th Character 16th Character td28 RTSA, RTSB IOR td29 50% 50% 50% Figure 20. Auto-RTS Timing for RCV Threshold of 14 Waveforms 18 TL16C2550 www.ti.com SLWS161 – JUNE 2005 APPLICATION INFORMATION TXA, B D7 −D0 D7 −D0 MEMR or I/OR MEMW or I/OW INTR B u s RESET A0 A1 A2 IOR RTSA, B IOW DTRA, B INTA, B DSRA, B RESET EIA-232-D Drivers and Receivers CDA, B A0 CTSA, B A1 RIA, B A2 TL16C2550 XTAL1 CS CSA, B 3.072 MHz PRODUCT PREVIEW C P U RXA, B XTAL2 (Optional) Figure 21. Basic TL16C2550 Configuration 19 TL16C2550 www.ti.com SLWS161 – JUNE 2005 APPLICATION INFORMATION (continued) Alternate Crystal Control TL16C2550 XTAL1 A0 −A23 A0 −A2 XTAL2 14 15 (Optional) 10 Address Decoder 11 CSA CSB CPU DTRA, B RTSA, B 34, 35 33, 22 20 1 36 RSI/ABT RESET PRODUCT PREVIEW D0 −D7 Buffer (Optional) D0 −D15 D0 −D7 41, 21 RIA, B 40, 16 PHI1 CDA, B PHI2 8 39, 20 6 DSRA, B CTSA, B PHI1 RSTO RD PHI2 TCU 19 15 WR IOR 38, 23 7, 8 TXA, B 2 IOW 5, 4 RXA, B 30, 29 5 3 INTA, B 7 1 GND (VSS) A. 17 42 VCC Pin numbers shown are for 48-pin TQFP PFB package. Figure 22. Typical TL16C2550 Connection 20 EIA-232-D Connector TL16C2550 www.ti.com SLWS161 – JUNE 2005 PRINCIPLES OF OPERATION Register Selection Table 1. Register Selection A2 A1 A0 0 L L L Receiver buffer (read), transmitter holding register (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) REGISTER 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 4). Table 2. ACE Reset Functions REGISTER/SIGNAL RESET CONTROL RESET STATE Interrupt enable register Master reset All bits cleared (0 - 3 forced and 4 - 7 permanent) Interrupt identification register Master reset Bit 0 is set, bits 1, 2, 3, 6, and 7 are cleared, and bits 4 - 5 are permanently cleared FIFO control register Master reset All bits cleared Line control register Master reset All bits cleared Modem control register Master reset All bits cleared (6 - 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 TX Master reset High INTRPT (receiver error flag) Read LSR/MR Low INTRPT (received data available) Read RBR/MR Low Read IR/write THR/MR Low INTRPT (transmitter holding register empty) INTRPT (modem status changes) Read MSR/MR Low OP Master reset High RTS Master reset High DTR Master reset High Scratch register Master reset No effect Divisor latch (LSB and MSB) registers Master reset No effect Receiver buffer register Master reset No effect Master reset No effect Transmitter holding register RCVR FIFO MR/FCR1 - FCR0/DFCR0 All bits cleared XMIT FIFO MR/FCR2 - FCR0/DFCR0 All bits cleared Accessible Registers The system programmer, using the CPU, has access to and control over any of the ACE registers that are summarized in Table 2. These registers control ACE operations, receive data, and transmit data. Descriptions of these registers follow Table 3. 21 PRODUCT PREVIEW (1) DLAB (1) TL16C2550 www.ti.com SLWS161 – JUNE 2005 Table 3. Summary of Accessible Registers BIT NO. REGISTER ADDRESS DLAB = 0 DLAB = 1 0 0 1 2 2 3 4 5 6 7 0 1 Receiver Buffer Register (Read Only) Transmitter Holding Register (Write Only) Interrupt Enable Register Interrupt Ident .Register (Read Only) FIFO Control Register (WriteOnly) Line Control Register Modem Control Register Line Status Register Modem Status Register Scratch Register Divisor Latch (LSB) Divisor Latch (MSB) PRODUCT PREVIEW RBR THR IER IIR FCR LCR MCR LSR MSR SCR DLL DLM 0 Data Bit 0 (1) Data Bit 0 Enable Received Data Available Interrupt (ERBI) 0 if Interrupt Pending FIFO Enable Word Length Select Bit 0 (WLS0) Data Terminal Ready (DTR) Data Ready (DR) Delta Clear to Send (∆CTS) Bit 0 Bit 0 Bit 8 1 Data Bit 1 Data Bit 1 Enable Transmitter Holding Register Empty Interrupt (ETBEI) Interrupt ID Bit 1 Receiver FIFO Reset Word Length Select Bit 1 (WLS1) Request to Send (RTS) Overrun Error (OE) Delta Data Set Ready (∆DSR) Bit 1 Bit 1 Bit 9 2 Data Bit 2 Data Bit 2 Enable Receiver Line Status Interrupt (ELSI) Interrupt ID Bit 2 Transmitter FIFO Reset Number of Stop Bits (STB) OUT1 Parity Error (PE) Trailing Edge Ring Indicator (TERI) Bit 2 Bit 2 Bit 10 3 Data Bit 3 Data Bit 3 Enable Modem Status Interrupt (EDSSI) Interrupt ID Bit 3 (2) DMA Mode Select Parity Enable (PEN) OUT2 Framing Error (FE) Delta Data Carrier Detect (∆DCD) Bit 3 Bit 3 Bit 11 4 Data Bit 4 Data Bit 4 0 0 Reserved Even Parity Select (EPS) Loop Break Interrupt (BI) Clear to Send (CTS) Bit 4 Bit 4 Bit 12 5 Data Bit 5 Data Bit 5 0 0 Reserved Stick Parity Autoflow Control Enable (AFE) Transmitter Holding Register (THRE) Data Set Ready (DSR) Bit 5 Bit 5 Bit 13 6 Data Bit 6 Data Bit 6 0 FIFOs Enabled (2) Receiver Trigger (LSB) Break Control 0 Transmitter Empty (TEMT) Ring Indicator (RI) Bit 6 Bit 6 Bit 14 7 Data Bit 7 Data Bit 7 0 FIFOs Enabled (2) Receiver Trigger (MSB) Divisor Latch Access Bit (DLAB) 0 Error in RCVR FIFO (2) Data Carrier Detect (DCD) Bit 7 Bit 7 Bit 15 (1) (2) Bit 0 is the least significant bit. It is the first bit serially transmitted or received. These bits are always 0 in the TL16C450 mode. 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 and clears the FIFOs, sets the receiver FIFO trigger level, and selects the type of DMA signalling. • Bit 0: This bit, when set, enables the transmitter and receiver FIFOs. Bit 0 must be set when other FCR bits are written to or they are not programmed. Changing this bit clears the FIFOs. • Bit 1: This bit, when set, clears all bytes in the receiver FIFO and clears its counter. The shift register is not cleared. The 1 that is written to this bit position is self-clearing. • Bit 2: This bit, when set, clears all bytes in the transmit FIFO and clears its counter. The shift register is not cleared. The 1 that is written to this bit position is self-clearing. • Bit 3: When FCR0 is set, setting FCR3 causes RXRDY and TXRDY to change from level 0 to level 1. • Bits 4 and 5: These two bits are reserved for future use. • Bits 6 and 7: These two bits set the trigger level for the receiver FIFO interrupt (see Table 4). Table 4. Receiver FIFO Trigger Level 22 BIT 7 BIT 6 RECEIVER FIFOTRIGGER LEVEL (BYTES) 0 0 01 0 1 04 1 0 08 1 1 14 TL16C2550 www.ti.com SLWS161 – JUNE 2005 FIFO Interrupt Mode Operation When the receiver FIFO and receiver interrupts are enabled: 1. FIFO time-out interrupt occurs if the following conditions exist: a. At least one character is in the FIFO. b. The most recent serial character was received more than four continuous character times ago (if two stop bits are programmed, the second one is included in this time delay). c. The most recent microprocessor read of the FIFO has occurred more than four continuous character times before. This causes a maximum character received command to interrupt an issued delay of 160 ms at a 300-baud rate 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 time-out interrupt has occurred, it is cleared and the timer is cleared when the microprocessor reads one character from the receiver FIFO. 4. When a time-out interrupt has not occurred, the time-out timer is cleared after a new character is received or after the microprocessor reads the receiver FIFO. When the transmitter FIFO and THRE interrupt are enabled (FCR0 = 1, IER1 = 1), transmit interrupts occur as follows: 1. The transmitter holding register empty interrupt [IIR (3 -0) = 2] occurs when the transmit FIFO is empty. It is cleared [IIR (3 -0) = 1] when 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 transmitter holding register empty interrupt is delayed one character time minus the last stop bit time when there have not been at least two bytes in the transmitter FIFO at the same time since the last time that the FIFO was empty. The first transmitter interrupt after changing FCR0 is immediate if it is enabled. FIFO Polled Mode Operation With FCR0 = 1 (transmitter and receiver FIFOs enabled), clearing IER0, IER1, IER2, IER3, or all four to 0 puts the ACE in the FIFO polled mode of operation. Because 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 using the LSR. As stated previously: • LSR0 is set as long as one byte is in the receiver FIFO. • LSR1 - LSR 4 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 THR is empty. • LSR6 indicates that both the THR and TSR are empty. • LSR7 indicates whether any errors are in the receiver FIFO. There is no trigger level reached or time-out condition indicated in the FIFO polled mode. However, the receiver and transmitter FIFOs are still fully capable of holding characters. 23 PRODUCT PREVIEW When the receiver FIFO and receiver interrupts are enabled (FCR0 = 1, IER0 = 1, IER2 = 1), a receiver interrupt occurs as follows: 1. The received 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 = 06) has higher priority than the received data available (IIR = 04) interrupt. 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. TL16C2550 www.ti.com SLWS161 – JUNE 2005 Interrupt Enable Register (IER) The IER enables each of the five types of interrupts (see Table 5) and enables INTRPT 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 Table 3 and are described in the following bullets. • Bit 0: When set, this bit enables the received data available interrupt. • Bit 1: When set, this bit enables the THRE interrupt. • Bit 2: When set, this bit enables the receiver line status interrupt. • Bit 3: When set, this bit enables the modem status interrupt. • Bits 4 through 7: These bits are not used (always cleared). Interrupt Identification Register (IIR) The ACE has an on-chip interrupt generation and prioritization capability that permits a flexible interface with the most popular microprocessors. PRODUCT PREVIEW The ACE provides four prioritized levels of interrupts: • Priority 1 - Receiver line status (highest priority) • Priority 2 - Receiver data ready or receiver character time-out • Priority 3 - Transmitter holding register empty • Priority 4 - Modem status (lowest priority) When an interrupt is generated, the IIR indicates that an interrupt is pending and encodes 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 5. Detail on each bit is as follows: • Bit 0: This bit is used either in a hardwire prioritized or polled interrupt system. When bit 0 is cleared, an interrupt is pending. If bit 0 is set, no interrupt is pending. • Bits 1 and 2: These two bits identify the highest priority interrupt pending as indicated in Table 3 • Bit 3: This bit is always cleared in TL16C450 mode. In FIFO mode, bit 3 is set with bit 2 to indicate that a time-out interrupt is pending. • Bits 4 and 5: These two bits are not used (always cleared). • Bits 6 and 7: These bits are always cleared in TL16C450 mode. They are set when bit 0 of the FIFO control register is set. Table 5. Interrupt Control Functions INTERRUPT IDENTIFICATION REGISTER PRIORITY LEVEL BIT 3 BIT 2 BIT 1 BIT 0 0 0 0 1 None 0 1 1 0 0 1 0 1 1 0 0 24 INTERRUPT TYPE INTERRUPT SOURCE NTERRUPT RESET METHOD None None None 1 Receiver line status Overrun error, parity error, framing error, or break interrupt Read the line status register 0 2 Received data available Receiver data available in Read the receiver buffer the TL16C450 mode or register trigger level reached in the FIFO mode 0 0 2 Character time-out indication No characters have been 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 Read the receiver buffer register 1 0 3 Transmitter holding register empty Transmitter holding register empty Read the interrupt identification register (if source of interrupt) or writing into the transmitter holding register TL16C2550 www.ti.com SLWS161 – JUNE 2005 Table 5. Interrupt Control Functions (continued) INTERRUPT IDENTIFICATION REGISTER BIT 3 BIT 2 BIT 1 BIT 0 0 0 0 0 PRIORITY LEVEL 4 INTERRUPT TYPE Modem status INTERRUPT SOURCE Clear to send, data set ready, ring indicator, or data carrier detect NTERRUPT RESET METHOD Read the modem status register 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 described in the following bulleted list. • 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 6. • BIT 0 WORD LENGTH 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 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 are shown in Table 7. Table 7. Number of Stop Bits Generated • • • • • BIT 2 Word Length Selectedby Bits 1 and 2 0 Any word length Number of StopBits Generated 1 1 5 bits 1 1/2 1 6 bits 2 1 7 bits 2 1 8 bits 2 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. 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. Bit 5: This bit 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. If bit 5 is cleared, stick parity is disabled. Bit 6: This bit is the break control bit. Bit 6 is set to force a break condition; i.e., a condition where TX is forced to the spacing (cleared) state. When bit 6 is cleared, the break condition is disabled and has no effect on the transmitter logic; it only effects TX. 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. 25 PRODUCT PREVIEW Table 6. Serial Character Word Length BIT 1 TL16C2550 www.ti.com SLWS161 – JUNE 2005 Line Status Register (LSR) NOTE: The line status register is intended for read operations only; writing to this register is not recommended outside of a factory testing environment. The LSR provides information to the CPU concerning the status of data transfers. The contents of this register are summarized in Table 3 and described in the following bulleted list. • Bit 0: This bit is the data ready (DR) indicator for the receiver. DR is set whenever a complete incoming character has been received and transferred into the RBR or the FIFO. DR is cleared by reading all of the data in the RBR or the FIFO. NOTE: Bits 1 through 4 are the error conditions that produce a receiver line status interrupt. • PRODUCT PREVIEW • • • • • • Bit 1: This bit is the overrun error (OE) indicator. When OE is set, it indicates that before the character in the RBR was read, it was overwritten by the next character transferred into the register. OE 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 overrun error 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. Bit 2: This bit is the parity error (PE) indicator. When PE is set, it indicates that the parity of the received data character does not match the parity selected in the LCR (bit 4). PE 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. Bit 3: This bit is the framing error (FE) indicator. When FE is set, it indicates that the received character did not have a valid (set) stop bit. FE 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. Bit 4: This bit is the break interrupt (BI) indicator. When BI is set, it indicates that the received data input was held low for longer than a full-word transmission time. A full-word transmission time is defined as the total time to transmit the start, data, parity, and stop bits. BI 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 RX goes to the marking state for at least two RCLK samples and then receives the next valid start bit. Bit 5: This bit is the THRE indicator. THRE 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 THRE is set, an interrupt is generated. THRE is set when the contents of the THR are transferred to the TSR. THRE is cleared concurrent with the loading of the THR by the CPU. In the FIFO mode, THRE is set when the transmit FIFO is empty; it is cleared when at least one byte is written to the transmit FIFO. Bit 6: This bit is the transmitter empty (TEMT) indicator. TEMT bit is set when the THR and the TSR are both empty. When either the THR or the TSR contains a data character, TEMT is cleared. In the FIFO mode, TEMT is set when the transmitter FIFO and shift register are both empty. Bit 7: 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 Table 3 and are described in the following bulleted list. • Bit 0: This bit (DTR) controls the DTR output. 26 TL16C2550 www.ti.com • • • • • Bit 1: This bit (RTS) controls the RTS output. Bit 2: This bit (OUT1) is reserved for output and can also be used for loopback mode. Bit 3: This bit (OUT2) controls the high-impedance state output buffer for the INT signal and the OP output. When low, the INT signal is in a high-impedance state and OP is high. When high, the INT signal is enabled and OP is low. Bit 4: This bit (LOOP) provides a local loop back feature for diagnostic testing of the ACE. When LOOP is set, the following occurs: – The transmitter TX is set high. – The receiver RX is disconnected. – The output of the TSR is looped back into the receiver shift register input. – The four modem control inputs (CTS, DSR, CD, and RI) are disconnected. – The four modem control outputs (DTR, RTS, OUT1, and OUT2) are internally connected to the four modem control inputs. – The four modem control outputs are forced to the inactive (high) levels. Bit 5: This bit (AFE) is the autoflow control enable. When set, the autoflow control as described in the detailed description is enabled. 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. The ACE flow can be configured by programming bits 1 and 5 of the MCR as shown in Table 8. Table 8. ACE Flow Configuration MCR BIT 5 (AFE) MCR BIT 1 (RTS) 1 1 Auto-RTS and auto-CTS enabled (autoflow control enabled) ACE FLOW CONFIGURATION 1 0 Auto-CTS only enabled 0 X Auto-RTS and auto-CTS disabled 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. • Bit 0: This bit is the change in clear-to-send (∆CTS) indicator. ∆CTS indicates that the CTS input has changed state since the last time it was read by the CPU. When ∆CTS is set (autoflow control is not enabled and the modem status interrupt is enabled), a modem status interrupt is generated. When autoflow control is enabled (∆CTS is cleared), no interrupt is generated. • Bit 1: This bit is the change in data set ready (∆DSR) indicator. ∆DSR indicates that the DSR input has changed state since the last time it was read by the CPU. When ∆DSR is set and the modem status interrupt is enabled, a modem status interrupt is generated. • Bit 2: This bit is the trailing edge of the ring indicator (TERI) detector. TERI indicates that the RI input to the chip has changed from a low to a high level. When TERI is set and the modem status interrupt is enabled, a modem status interrupt is generated. • Bit 3: This bit is the change in data carrier detect (∆DCD) indicator. ∆DCD indicates that the DCD input to the chip has changed state since the last time it was read by the CPU. When ∆DCD is set and the modem status interrupt is enabled, a modem status interrupt is generated. • Bit 4: This bit is the complement of the clear-to-send (CTS) input. When the ACE is in the diagnostic test mode (LOOP [MCR4] = 1), this bit is equal to the MCR bit 1 (RTS). • Bit 5: This bit is the complement of the data set ready (DSR) input. When the ACE is in the diagnostic test mode (LOOP [MCR4] = 1), this bit is equal to the MCR bit 0 (DTR). 27 PRODUCT PREVIEW SLWS161 – JUNE 2005 TL16C2550 www.ti.com SLWS161 – JUNE 2005 • • Bit 6: This bit is the complement of the ring indicator (RI) input. When the ACE is in the diagnostic test mode (LOOP [MCR4] = 1), this bit is equal to the MCR bit 2 (OUT1). Bit 7: This bit is the complement of the data carrier detect (DCD) input. When the ACE is in the diagnostic test mode (LOOP [MCR4] = 1), this bit is equal to the MCR bit 3 (OUT2). Programmable Baud Generator The ACE contains a programmable baud generator that takes a clock input in the range between dc and 16 MHz and divides it by a divisor in the range between 1 and (216 -1). The output frequency of the baud generator is sixteen times (16 y) the baud rate. The formula for the divisor is: divisor = XIN frequency input P (desired baud rate y 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 9 and 10 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 kbits/s and below, the error obtained is small. The accuracy of the selected baud rate is dependent on the selected crystal frequency (see Figure 23 for examples of typical clock circuits). Table 9. Baud Rates Using a 1.8432-MHz Crystal PRODUCT PREVIEW DESIRED BAUD RATE DIVISOR USED TO GENERATE 16× CLOCK PERCENT ERROR DIFFERENCE BETWEEN DESIRED AND ACTUAL 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 2400 48 3600 32 4800 24 7200 16 9600 12 19200 6 38400 3 56000 2 0.69 2.86 Table 10. Baud Rates Using a 3.072-MHz Crystal 28 DESIRED BAUD RATE DIVISOR USED TO GENERATE 16× CLOCK 50 3840 75 2560 110 1745 0.026 134.5 1428 0.034 150 1280 300 640 600 320 1200 160 TL16C2550 www.ti.com SLWS161 – JUNE 2005 Table 10. Baud Rates Using a 3.072-MHz Crystal (continued) DESIRED BAUD RATE DIVISOR USED TO GENERATE 16× CLOCK 1800 107 2000 96 2400 80 3600 53 4800 40 7200 27 9600 20 19200 10 38400 5 0.312 0.628 1.23 VCC VCC Driver XIN XIN External Clock C1 PRODUCT PREVIEW Crystal RP Optional Driver Optional Clock Output RX2 Oscillator Clock to Baud Generator Logic XOUT Oscillator Clock to Baud Generator Logic XOUT C2 Figure 23. Typical Clock Circuits Table 11. Typical Crystal Oscillator Network CRYSTAL RP RX2 (optional) C1 C2 3.072 MHz 1 MΩ 1.5 kΩ 10 - 30 pF 40 - 60 pF 1.8432 MHz 1 MΩ 1.5 kΩ 10 - 30 pF 40 - 60 pF 16 MHz 1 MΩ 0 kΩ 33 pF 33 pF 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 derived from the input clock divided by the programmed devisor. Receiver section control is a function of the ACE line control register. The ACE RSR receives serial data from RX. The RSR then concatenates the data and moves it into the RBR FIFO. In the TL16C450 mode, when a character is placed in the RBR and the received data available interrupt is enabled (IER0 = 1), 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 the programmer's use as a scratchpad in the sense that it temporarily holds the programmer's data without affecting any other ACE operation. 29 TL16C2550 www.ti.com SLWS161 – JUNE 2005 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 derived from the input clock divided by the programmed devisor. Transmitter section control is a function of the ACE 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 TX. In the TL16C450 mode, if the THR is empty and the transmitter holding register empty (THRE) interrupt is enabled (IER1 = 1), 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. PRODUCT PREVIEW 30 PACKAGE OPTION ADDENDUM www.ti.com 27-Jun-2005 PACKAGING INFORMATION Orderable Device Status (1) Package Type Package Drawing Pins Package Eco Plan (2) Qty Lead/Ball Finish MSL Peak Temp (3) TL16C2550IPFB PREVIEW TQFP PFB 48 250 TBD Call TI Call TI TL16C2550IPFBR PREVIEW TQFP PFB 48 1000 TBD Call TI Call TI TL16C2550PFB PREVIEW TQFP PFB 48 250 TBD Call TI Call TI TL16C2550PFBR PREVIEW TQFP PFB 48 1000 TBD Call TI Call TI (1) The marketing status values are defined as follows: ACTIVE: Product device recommended for new designs. LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect. NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design. PREVIEW: Device has been announced but is not in production. Samples may or may not be available. OBSOLETE: TI has discontinued the production of the device. (2) Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS) or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability information and additional product content details. TBD: The Pb-Free/Green conversion plan has not been defined. Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes. Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material) (3) MSL, Peak Temp. -- The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature. Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release. In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis. Addendum-Page 1 MECHANICAL DATA MTQF019A – JANUARY 1995 – REVISED JANUARY 1998 PFB (S-PQFP-G48) PLASTIC QUAD FLATPACK 0,27 0,17 0,50 36 0,08 M 25 37 24 48 13 0,13 NOM 1 12 5,50 TYP 7,20 SQ 6,80 9,20 SQ 8,80 Gage Plane 0,25 0,05 MIN 0°– 7° 1,05 0,95 Seating Plane 0,75 0,45 0,08 1,20 MAX 4073176 / B 10/96 NOTES: A. All linear dimensions are in millimeters. B. This drawing is subject to change without notice. C. Falls within JEDEC MS-026 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Amplifiers amplifier.ti.com Audio www.ti.com/audio Data Converters dataconverter.ti.com Automotive www.ti.com/automotive DSP dsp.ti.com Broadband www.ti.com/broadband Interface interface.ti.com Digital Control www.ti.com/digitalcontrol Logic logic.ti.com Military www.ti.com/military Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork Microcontrollers microcontroller.ti.com Security www.ti.com/security Telephony www.ti.com/telephony Video & Imaging www.ti.com/video Wireless www.ti.com/wireless Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2005, Texas Instruments Incorporated