DATA COMMUNICATIONS APPLICATION NOTE DAN139 November 2003 EXAR’S XR16L580 COMPARED WITH INDUSTRY STANDARD 16550 UART Author: PY 1.0 INTRODUCTION This application note describes the major differences between Exar’s XR16L580 and the industry standard 16550 UART (referred to as “16550” in this document). This application note is applicable to the 48-TQFP package only. These devices are very similar, with a few minor hardware, bus timing and firmware-related differences. In most applications, the XR16L580IM will fit and operate in a TL16C550CPT or TL16C550CPFB socket. 1.1 HARDWARE DIFFERENCES (48-TQFP) • The XR16L580 and 16550 are both available in the 48-pin TQFP package. Additionally, the 16550 can also be found in the 40-pin PDIP and 44-pin PLCC packages. The XR16L580 is not available in those packages but is available in the 32-pin QFN package. In the 48-pin TQFP package, the XR16L580 is pin-to-pin compatible with the industry standard 16550, but some legacy signals are not available (“No Connects”) in the XR16L580 (see Table 1). These legacy signals are typically not used in most applications, hence they are likely not needed. • The XR16L580 has two new pins, 16/68# pin to select Intel or Motorola bus and PwrSave pin to reduce Isleep (sleep current) to less than 30 uA in sleep mode. The Power-Save feature is perfect for battery operated designs. These two pins are ‘No Connects’ in the 16550. Since the 16/68# pin has an internal pull-up resistor and the PwrSave pin has an internal pull-down resistor in the XR16L580, these pins can be left open when installing the XR16L580 into any 16550 socket. The pads on the PCB for these two pins should have no connection. • The 32-pin QFN package of the XR16L580 is a new package and should be considered for new designs only. It is the industry’s smallest package UART. • For most cases, the XR16L580 will work with the oscillator circuitry for any industry standard 16550 UART. When using an external clock input for frequencies greater than 24 MHz, the XR16L580 will require a 2K pull-up resistor on the XTAL2 pin. For applications using crystal clock frequencies in the range 1.843214.7456 MHz, there is virtually no difference in the set up. 1.2 BUS TIMING DIFFERENCES 1.2.1 Chip Select (-CS) and Read (-IOR) / Write (-IOW) Timing Some of the 16550 UARTs require that the -CS pin be asserted first before the -IOR or -IOW pin and the -IOR or -IOW pin must be de-asserted before the -CS pin is de-asserted. During a read, the Exar UARTs can have either the -CS or the -IOR signal asserted first and have either signal be de-asserted first. The signals are wire-ORed in the XR16L580, therefore the second signal asserted will initiate the read cycle and the first signal de-asserted terminates the read cycle. The same is true during a write for -CS and -IOW. The flexibility of the XR16L580 timing can be important in DSP, ARM, and MIPS designs. Also, because of this flexibility, the XR16L580 will work with the timing used for the 16550. EXAR Corporation 48720 Kato Road, Fremont CA, 94538 • (510) 668-7000 • FAX (510) 668-7017 • www.exar.com • [email protected] DATA COMMUNICATIONS APPLICATION NOTE DAN139 TABLE 1: LEGACY SIGNALS IN THE INUDSTRY STANDARD 16550, 48-TQFP PACKAGE PIN NAMES 48-TQFP PIN# DESCRIPTION RCLK 5 -BAUDOUT 12 The RCLK needs to be connected to the BAUDOUT external to the uart on the 16550. This is done internally in the XR16L580. CS0 9 CS1 10 IOR 20 These are redundant Chip Select signals on the 16550 and have been removed in the XR16L580. These are redundant control signals on the 16550 and have been removed in the XR16L580. IOW 17 -TXRDY 23 -RXRDY 29 -AS 24 The Address Strobe signal is used to latch the address inside the uart on the 16550. The XR16L580 automatically latches the address internally and hence this signal has been removed. -DDIS 22 Data Disable output. Rarely used in today’s applications. -OP1 34 General Purpose outputs. Rarely used in today’s applications. -OP2 31 These are status indicator outputs on the 16550 that are rarely used in most applications and have been removed in the XR16L580. 2 DATA COMMUNICATIONS APPLICATION NOTE DAN139 1.3 FIRMWARE DIFFERENCES BETWEEN THE XR16L580 AND INDUSTRY STANDARD 16550 The internal registers in the XR16L580 and 16550 are similar with some exceptions: TABLE 2: XR16L580 AND 16550 REGISTER SET DIFFERENCES A2:A0 R/W XR16L580 STANDARD 16550 LCR Bit-7 = 0 001 R/W Interrupt Enable Register (IER) • Bit-7 = Auto CTS# Interrupt Enable Interrupt Enable Register (IER) Bit-7 = Not Used • • • • • Bit-6 = Auto RTS# Interrupt Enable • Bit-5 = Xoff Interrupt Enable • Bit-4 = Sleep Mode Enable 010 W FIFO Control Register (FCR) • Bit-5 = TX FIFO Trigger Level Select Bit-1 • Bit-4 = TX FIFO Trigger Level Select Bit-0 010 R Interrupt Status Register (ISR) • Bit-5 = RTS/CTS Interrupt R/W Bit-5 = Not Used Bit-4 = Not Used FIFO Control Register (FCR) • Bit-5 = Not Used • Bit-4 = Not Used Interrupt Status Register (ISR) • Bit-4 = Xoff or Special Character Interrupt 100 Bit-6 = Not Used Modem Control Register (MCR) • Bit-7 = BRG Prescaler Select • Bit-5 = Not Used • Bit-4 = Not Used Modem Control Register (MCR) Bit-7 = Not Used • Bit-6 = IR Mode Enable • Bit-5 = Xon any (while in Xoff state, start transmission upon receiving any character) • • • • Bit-6 = Not Used Bit-5 = Not Used Bit-2 = control OP1 output • Bit-2 = control OP1 output (in internal loopback mode only) / Invert Infrared RX signal polarity (if EFR bit-4 = 1) LCR = 0xBF 010 R/W Enhanced Feature Register (EFR) • Auto RTS/CTS Enable, Enhanced Functions Enable, Software Flow Control Select N/A 100 R/W XON1 N/A 101 R/W XON2 N/A 110 R/W XOFF1 N/A 111 R/W XOFF2 N/A R = Read-Only, W = Write-Only, R/W = Read/Write 3 DATA COMMUNICATIONS APPLICATION NOTE DAN139 2.0 SUMMARY OF DIFFERENCES BETWEEN THE XR16L580 AND INDUSTRY STANDARD 16550 UART The differences between the XR16L580 and most industry standard 16550 UARTs are summarized in the table below. TABLE 3: DIFFERENCES BETWEEN EXAR ’S XR16L580 AND INDUSTRY STANDARD 16550 COMPARISON Data Bus Standard Power Supply Operation 5V Tolerant Inputs Max Frequency on XTAL1 BRG Prescaler XR16L580 STANDARD 16550 Intel or Motorola Intel 2.5, 3.3 and 5 V 3.3 and 5 V Yes No 16 MHz @ 2.5V 32 MHz @ 3.3V 48 MHz @ 5V 16 MHz @ 3.3V 24 MHz @ 5V 1 or 4 1 Package 32-QFN, 48-TQFP 44-PLCC, 48-TQFP, 40-PDIP Extra Pins Available in XR16L580 16/68#, PwrSave No N/A (RCLK is internally connected to Baudout) RCLK, CS0, CS1, Baudout, IOW, IOR, DDIS, -TXRDY, -AS, -RXRDY, -OP1, -OP2 Industrial Commercial and Industrial 16 16 1 Trigger Table 1 Trigger Table Extra Pins Available in 16550 Operating Temperature Ranges TX/RX FIFO Size TX/RX Trigger Tables TX FIFO Interrupt Trigger Levels 4 Selectable 1 RX FIFO Interrupt Trigger Levels 4 Selectable 4 Selectable Yes No Auto RTS/CTS Flow Control No Wake-up Interrupt Hardware Flow Control Software Flow Control Infrared Mode Invert Infrared RX signal control Sleep Mode Auto Xon/Xoff Flow Control No IrDA encoder/decoder (ver 1.0) No Yes No Sleep Mode with Auto Wake-up No Low Power Mode Yes (Power-Save) No Diagnostic Modes Local Loopback Local Loopback 3.0 REPLACING THE INDUSTRY STANDARD 16550 UART WITH THE XR16L580 IN THE 48-TQFP PACKAGE The XR16L580 can be installed into any industry standard 16550 UART socket with no hardware changes when using the 48-TQFP package under these conditions: crystal oscillator frequency of 1.8432 - 14.7456 MHz, the legacy signals in Table 1 are unused and the pads for the 16/68# and PwrSave pins have no connections. The software will need to be updated to take advantage of the enhanced features in the XR16L580 that are not available in the industry standard 16550 like Sleep Mode with Power-Save, Automatic RTS/CTS Hardware Flow Control, Automatic Xon/Xoff Software Flow Control, and Infrared Mode. 4 NOTICE EXAR Corporation reserves the right to make changes to the products contained in this publication in order to improve design, performance or reliability. EXAR Corporation assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. Charts and schedules contained here in are only for illustration purposes and may vary depending upon a user’s specific application. While the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. EXAR Corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. Products are not authorized for use in such applications unless EXAR Corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of EXAR Corporation is adequately protected under the circumstances. Copyright November 2003 EXAR Corporation Send your UART technical inquiry with technical details to hotline: [email protected] Reproduction, in part or whole, without the prior written consent of EXAR Corporation is prohibited. 5