RS-232 Electrical Specifications and a Typical Connection

Similar documents
Dual Protocol Transceivers Ease the Design of Industrial Interfaces

Introduction. Protocol Definitions. The RS-485 Standard. APPLICATION NOTE 3884 How Far and How Fast Can You Go with RS-485?

±50V Isolated, 3.0V to 5.5V, 250kbps, 2 Tx/2 Rx, RS-232 Transceiver MAX3250

Serial Communications RS232, RS485, RS422

MAX13051 ±80V Fault-Protected Can Transceiver with Autobaud

XR3160E RS-232/RS-485/RS-422 TRANSCEIVER WITH 15KV ESD PROTECTION

SP339E RS-232/RS-485/RS-422 TRANSCEIVER WITH INTERNAL TERMINATION

PART TOP VIEW TXD V CC. Maxim Integrated Products 1

The Practical Limits of RS-485

SP330E RS-232/RS-485/RS-422 TRANSCEIVER WITH 1.65V-5.5V INTERFACE

SP483E. Enhanced Low EMI Half-Duplex RS-485 Transceiver

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

SP335E RS-232/RS-485/RS-422 TRANSCEIVER WITH INTERNAL TERMINATION

TD_485 Transceiver Modules Application Guide 2017

+3.3V Multiprotocol 3Tx/3Rx Software-Selectable Control Transceivers

±80V Fault-Protected, 2Mbps, Low Supply Current CAN Transceiver

±15kV ESD-Protected, 3.0V to 5.5V, Low-Power, up to 250kbps, True RS-232 Transceiver

DS485 Low Power RS-485/RS-422 Multipoint Transceiver

DS485 Low Power RS-485/RS-422 Multipoint Transceiver

AZRS3080 High Speed, True Fail-Safe RS-485 Transceiver with ±15kV ESD Transient Voltage Suppression. Features. Applications.

±15kV ESD-Protected, 460kbps, 1µA, RS-232-Compatible Transceivers in µmax

800Mbps LVDS/LVPECL-to-LVDS 2 x 2 Crosspoint Switch

RS-485 Transceiver Tutorial

+3.3V-Powered, EIA/TIA-562 Dual Transceiver with Receivers Active in Shutdown

Summary of Well Known Interface Standards

Lecture #3 RS232 & 485 protocols

UNISONIC TECHNOLOGIES CO., LTD UT232E Preliminary CMOS IC

Low Power Half-Duplex RS-485 Transceivers

+3.3V, Multiprotocol, 3 Tx/3 Rx, Software- Selectable Clock/Data Transceiver

TOP VIEW. Maxim Integrated Products 1

±80V Fault-Protected, 2Mbps, Low Supply Current CAN Transceiver

LMS485 5V Low Power RS-485 / RS-422 Differential Bus Transceiver

+5 V Powered RS-232/RS-422 Transceiver AD7306

USING RS-232 to RS-485 CONVERTERS (With RS-232, RS-422 and RS-485 devices)

Industry-Standard High-Speed CAN Transceivers with ±80V Fault Protection

High Speed, +5 V, 0.1 F CMOS RS-232 Driver/Receivers ADM202/ADM203

Appendix C RS-485 Network

SP1481E/SP1485E. Enhanced Low Power Half-Duplex RS-485 Transceivers

T 3 OUT T 1 OUT T 2 OUT R 1 IN R 1 OUT T 2 IN T 1 IN GND V CC C 1 + C 1

ZT3485E Low Power 3V 250kbps/16Mbps RS485 Transceivers Zywyn Corporation

OBSOLETE TTL/CMOS INPUTS* TTL/CMOS OUTPUTS TTL/CMOS TTL/CMOS OUTPUTS DO NOT MAKE CONNECTIONS TO THESE PINS INTERNAL 10V POWER SUPPLY

TOP VIEW MAX9111 MAX9111

RS-485 Transceiver Tutorial

LMS1487E Low Power RS-485 / RS-422 Differential Bus Transceiver

SP481E/SP485E. Enhanced Low Power Half-Duplex RS-485 Transceivers

Programmable RS-232/RS-485 Transceiver

Zywyn Corporation. Slew Rate Limit. Low- Power Shutdown. Rx Input Filtering

UNISONIC TECHNOLOGIES CO., LTD

Is Now A Part Of. Visit for more information about MaxLinear Inc.

Kongsberg Mesotech Ltd.

Single/Dual LVDS Line Receivers with Ultra-Low Pulse Skew in SOT23

SP3220E. +3.0V to +5.5V RS-232 Driver/Receiver Pair

ISOV CC A B Y Z YR C1HI C2LO C2HI ISOCOM ±50V. C4 10nF. Maxim Integrated Products 1

V6602H RS-485 Transceiver

TD_CAN Transceiver Modules Application Guide 2017

±15kV ESD-Protected, +3.0V to +5.5V, 10nA, RS-232/RS-485/RS-422 Multiprotocol Transceivers

The Practical Limits of RS-485

10Gb/s DWDM Single-mode SFP+ Transceiver

Programmable RS-232/RS-485 Transceiver

Low Jitter, Low Emission Timing Solutions For High Speed Digital Systems. A Design Methodology

SP339E RS-232/RS-485/RS-422 TRANSCEIVER WITH INTERNAL TERMINATION

RS-422/485 Application Note

Intelligent +3.0V to +5.5V RS-232 Transceiver

+3.3V Multiprotocol Software-Selectable Cable Terminators and Transceivers

AN-1397 APPLICATION NOTE

LVTTL/LVCMOS DATA INPUT 100Ω SHIELDED TWISTED CABLE OR MICROSTRIP PC BOARD TRACES. Maxim Integrated Products 1

UNISONIC TECHNOLOGIES CO., LTD UT232A Preliminary CMOS

CONV232/422 SERIAL DATA CONVERTER

Programmable Dual RS-232/RS-485 Transceiver

SP483E. Enhanced Low EMI Half-Duplex RS-485 Transceiver RO 1 VCC RE 2 DE 3 DI 4 GND. Description. Block Diagram

Concept of Serial Communication

SP337E 3.3V TO 5V RS-232/RS-485/RS-422 MULTIPROTOCOL TRANSCEIVER

DS90LV018A 3V LVDS Single CMOS Differential Line Receiver

Data Sheet. Description. Features. Transmitter. Applications. Receiver. Package

GPH-3102-L1C(D) 100BASE-LX Spring-Latch SFP Transceiver, 10km Reach

SP208EH/211EH/213EH High Speed +5V High Performance RS-232 Transceivers

±15kV ESD-Protected 52Mbps, 3V to 5.5V, SOT23 RS-485/RS-422 True Fail-Safe Receivers

+5V Multiprotocol, Software-Selectable Cable Terminator

PART MAX4144ESD MAX4146ESD. Typical Application Circuit. R t IN- IN+ TWISTED-PAIR-TO-COAX CABLE CONVERTER

LVTTL/CMOS DATA INPUT 100Ω SHIELDED TWISTED CABLE OR MICROSTRIP PC BOARD TRACES. Maxim Integrated Products 1

DS275S. Line-Powered RS-232 Transceiver Chip PIN ASSIGNMENT FEATURES ORDERING INFORMATION

SP385A. +3V to +5V RS-232 Line Driver/Receiver. Operates from 3.3V or 5V Power Supply Meets All EIA-232D and V.28 Specifications

MediSpec SMI Non-Magnetic Transceiver

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

MAX To 5.5V Powered, Dual RS-232 Drivers/Receivers

1000BASE-T Copper SFP Transceiver

3V to 5.5V, up to 250kbps True RS-232 Transceiver with 4µA AutoShutdown Plus and Power-On Reset

Enhanced Full Duplex RS-485 Transceivers

AFBR-59F2Z Data Sheet Description Features Applications Transmitter Receiver Package

SMARTALPHA RF TRANSCEIVER

SP336E 3.3V - 5V PROGRAMMABLE RS-232/RS-485/RS-422 SERIAL TRANSCEIVER

LMS75LBC176 Differential Bus Transceivers

Transmission Line Drivers and Receivers for TIA/EIA Standards RS-422 and RS-423

SO-QSFP28-4xSFP28-AOCxM

Fractional Load RS485 and RS422 Transceivers. Features. Applications. Description REV. B

V6601 RS-485 Transceiver

MAX3280E/MAX3281E/ MAX3283E/MAX3284E ±15kV ESD-Protected 52Mbps, 3V to 5.5V, SOT23 RS-485/RS-422 True Fail-Safe Receivers

High ESD-Protected, Fail-Safe, Slew-Rate-Limited. RS-485 Transceivers

SP334 SP334. Programmable RS-232/RS-485 Transceiver. Description. Typical Applications Circuit

MAX3316EAE -40 C to +85 C 16 SSOP C BYPASS CMOS INPUT CMOS OUTPUT. AutoShutdown Plus MAX3316. Maxim Integrated Products 1

Transcription:

Maxim > Design Support > Technical Documents > Tutorials > Interface Circuits > APP 723 Keywords: RS-232, rs232, RS-422, rs422, RS-485, rs485, RS-232 port powered, RS-232 to RS-485 conversion, daisy chain, cable termination TUTORIAL 723 Selecting and Using RS-232, RS-422, and RS-485 Serial Data Standards Dec 29, 2000 Abstract: Three common serial data standards, RS-232, RS-422, and RS-485, are described by specification and electrical interface. Cable termination techniques, use of multiple loads, daisy-chaining of RS-232, conversion of RS-232 to RS-485, conversion of RS-485 to RS-232, and RS-232 portpowered RS-485 conversions are described. Introduction "The great thing about standards is there are so many to choose from." This statement was made at a recent conference on fiber optics, and it holds true for electrical-interface standards as well. As serialdata standards tend to evolve separately within particular industries, we thus have more standards than we should. Perhaps the most successful serial-data standard for PC and telecom applications is the RS-232. Similarly, the RS-485 and RS-422 are among the most successful standards for industrial applications. These standards are not directly compatible. For control and instrumentation applications, however, it is often necessary to communicate between the standards. This article discusses the different standards (electrical physical-layer specifications), explains how to convert from one standard to another standard, and demonstrates how to combine different standards within the same application. RS-232 Electrical Specifications and a Typical Connection The RS-232 link was initially intended to support modem and printer applications on IBM PCs, however, it now enables a variety of peripherals to communicate with PCs. The RS-232 standard was defined as a single-ended standard for increasing serial-communication distances at low baud rates (<20kbps). Over the years the standard changed to accommodate faster drivers like the MAX3225E, which offers 1Mbps data-rate capability. For RS-232 compliance, a transceiver such as the MAX3225E must meet the electrical specifications listed in Table 1. A typical connection (Figure 1) shows the use of hardware handshaking to control the flow of data. Page 1 of 10

Table 1. RS-232 Summary of Major Electrical Specifications Parameter Conditions Min Max Units Driver Output Voltage, Open Circuit 25 V Driver Output Voltage, Loaded 3kΩ < RL < 7kΩ ±5 ±15 V Driver Output Resistance, Power Off -2V < V < 2V 300 Slew Rate 4 30 V/µs Maximum Load Capacitance 2500 pf Receiver Input Resistance 3 7 kω Receiver Input Threshold: Output = Mark (Logic 1) -3 V Output = Space (Logic 0) 3 V Figure 1. Typical RS-232 connection. A typical RS-232 signal (Figure 2, CH1) swings positive and negative. Note the relative location of the 0V trace markers on the left axis. Although the RS-232 data is inverted, an overall translation from TTL/CMOS to RS-232 and back to TTL/CMOS restores the data's original polarity. Typical RS-232 transmissions seldom exceed 100 feet for two reasons. Firstly, the difference between transmitted levels (±5V) and receive levels (±3V) allows only 2V of common-mode rejection. Secondly, the distributed capacitance of a longer cable can degrade slew rates by exceeding the maximum specified load (2500pF). Because the RS-232 was designed as a point-to-point rather than multidrop interface, its drivers are specified for single loads from 3kΩ to 7kΩ. Therefore, a daisy-chain scheme is typically implemented for multidrop interface applications (Figure 3). Page 2 of 10

Figure 2. An RS-232 receiver accepts the bipolar input signal (top trace, CH1) and outputs an inverted TTL/CMOS signal (bottom trace, CH2). Figure 3. Daisy-chaining allows multiple slave transceivers on a single RS-232 line. Daisy-Chain Devices and Their Limitations In a daisy-chain configuration, the RS-232 signal enters through one receiver and is looped through to a transmitter. This configuration is repeated for subsequent devices along the data transmission line. Cable breaks are a major problem with this technique. A break between slave 1 and slave 2 prevents all downstream devices from transmitting or receiving data. Other multidrop RS-232 techniques involve prebuffering or boosting the RS-232 output drive (enabling it to drive multiple 5kΩ inputs in parallel). To eliminate the problems associated daisy-chain networks, Maxim developed the MAX3322E/MAX3323E, specifically designed to be configured in multidrop applications. These unique devices employ a logically switched input resistance of 5k. When a device is not selected, its input resistance remains in a high impedance state allowing communication to proceed with other devices along the shared bus. Another solution to the daisy-chain network problem is to convert the RS-232 Rx and Tx signals to RS- 422 signals (see Table 2). RS-422 is a differential standard that allows transmission over much greater distances. The higher input resistance of RS-422 inputs, combined with their higher drive capability, allows a connection of up to ten nodes (Figure 4). Another RS-422 advantage is the separate transmit Page 3 of 10

and receive paths for which no direction control is needed. Any necessary handshaking between devices can be performed with either software (XON/OFF handshaking) or hardware (a separate set of twisted pairs). The MAX3162 provides an economical way to translate between RS-232 and RS-422 signals. For more detail about this process, refer to the RS-232/RS-485 Protocol Translators section below. Table 2. RS-422 Summary of Key Specifications Parameter Conditions Min Max Units Driver Output Voltage, Open Circuit ±10 V Driver Output Voltage, Loaded R L = 100Ω 2-2 V Driver Output Resistance A to B 100 Ω Driver Output Short-Circuit Current Per output to common 150 ma Driver Output Rise Time R L = 100Ω 10 % of bit width Driver Common-Mode Voltage R L = 100Ω ±3 V Receiver Sensitivity V CM < ±7V ±200 mv Receiver Common-Mode Voltage Range -7 7 V Receiver Input Resistance 4 kω Differential Receiver Voltage Operational ±10 V Withstand ±12 V Figure 4. A typical RS-422 system allows as many as ten slave transceivers on the differential transmission line. Page 4 of 10

Differences Between RS-485 and RS-422 and Their Use in Applications RS-422 and RS-485 transceivers are often confused with each other; one is assumed to be a full-duplex version of the other. The electrical differences, however, in their common-mode ranges and receiverinput resistances make these standards suitable for different applications. As RS-485 meets all the RS- 422 specifications (Table 3), RS-485 drivers can be used in RS-422 applications. The opposite, however, is not true. The common-mode output range for RS-485 drivers is -7V to +12V, whereas the common-mode range for RS-422 drivers is only ±3V. The minimum receiver-input resistance is 4kΩ for RS-422 drivers and 12kΩ for RS-485 drivers. Table 3. RS-485 Summary of Key Specifications Parameter Conditions Min Max Units Driver Output Voltage, Open Circuit 1.5-1.5 6-6 V V Driver Output Voltage, Loaded R L = 100Ω 1.5-1.5 5-5 V V Driver Output Short-Circuit Current Per output to common ±250 ma Driver Output Rise Time R L = 54Ω C L = 50pF 30 % of bit width Driver Common-Mode Voltage R L = 54Ω ±3 V Receiver Sensitivity -7V < V CM < 12V ±200 mv Receiver Common-Mode Voltage Range -7 12 V Receiver Input Resistance 12 kω To reduce wiring expense and achieve longer line lengths, RS-485 transceivers have become a popular standard for use in point-of-sale, industrial, and telecom applications. The wider common-mode range of RS-485 also enables longer line lengths and a higher input resistance per node, allowing more nodes to be connected to the bus (Figure 5). Page 5 of 10

Figure 5. Compared with RS-422, the higher input impedance and wider common-mode range of an RS- 485 connection enables longer line lengths. Differential RS-485 transmissions (Figure 6) produce opposing currents and magnetic fields along each segment (wire) of a twisted-pair cable, thus minimizing the emitted electromagnetic interference (EMI) by cross-canceling the opposing fields around each wire. For transmissions through a long cable or at high data rates, the cable appears as a transmission line and should be terminated with the cable's characteristic impedance. This aspect of the RS-485 connection causes confusion. Does the line need to be terminated, and if so, how should it be terminated? If the designer is not the end user, should these questions be left for the installer to resolve? For most RS-485 transceivers, the data sheet indicates a simple choice between no termination and a simple point-to-point termination when the cable acts as a transmission line (Figure 7). A termination resistor across the A-B terminals is harmless. By default, the transmission line should be terminated at the last transceiver on the line (bus). Figure 6. The opposite polarity signals on an RS-485 line minimize EMI by cross-canceling each other's respective magnetic fields. The GND references on the above scope photo have been shifted (offset) to clearly show the inverted polarities of the RS-485 output signals. Page 6 of 10

Figure 7. The choice of termination resistors for a transmission line depends on the application. Fail-Safe Deciding whether you need a termination resistor or not is only part of the problem in implementing an RS-485 system. Normally, an RS-485 receiver output is "1" if A > B by +200mV or more, and "0" if B > A by 200mV or more. In a half-duplex RS-485 network, the master transceiver tri-states the bus after transmitting a message to the slaves. Then, with no signal driving the bus, the receiver's output state is undefined, as the difference between A and B tends towards 0V. If the receiver output, RO, is "0," the slaves interpret it as a new start bit and attempt to read the following byte. The result is a framing error because the stop bit never occurs. The bus goes unclaimed, and the network stalls. Unfortunately, different runs of chips can produce different output signals on RO for a 0V differential input. The prototype can work perfectly, however, certain nodes will fail in a later production run. To solve this problem, bias the bus as shown in Figure 7 under Multidrop/Fail-Safe Termination. Biasing the bus ensures that the receiver output remains "1" when the bus is tri-stated. Alternatively, you can use "true fail-safe" receivers like those of the MAX3080 (5V) and MAX3070 (3V) families. These devices ensure an RO output of "1" in response to a 0V differential input by changing the receiver's threshold to - 50mV. RS-232/RS-485 Protocol Translators The MAX3162 is an unique device for it contains both RS-232 and RS-485 receivers and transmitters. This wide range of communication devices contained within a single IC enables an individual to convert bidirectionally between RS-232 and RS-485 signals. The circuit in Figure 8 illustrates the MAX3162 configured to bidirectionally convert RS-232 and RS-485 signals in a point-to-point application. Page 7 of 10

Figure 8. The MAX3162 converts bidirectionally between RS-232 and RS-485 signals in a point-to-point application. Figure 9 shows the MAX3162 configured as an RS-232/RS-485 multipoint protocol translator. The direction of translation is controlled through the RTS signal, R1IN. The single-ended RS-232 receiverinput signal is translated to a differential RS-485 transmitter output. Similarly, a differential RS-485 receiver-input signal is translated to a single-ended RS-232 transmitter output. RS-232 data received on R2IN is transmitted as an RS-485 signal on Z and Y. RS-485 signals received on A and B are transmitted as an RS-232 signal on T1OUT. The RTS line is a common means for controlling bus direction in circuits that convert from RS-232 to RS-485. This line on the RS-232 port controls whether the RS-485 transceiver acts as a transmitter or a receiver (Figure 9). Note that the system cannot be sure that a byte of data in the UART's transmit buffer has been transmitted unless the system monitors the RS-485 driver input, DI. That is, the system in systems with short line lengths and without termination resistors across the A-B terminals. Page 8 of 10

must either allow a fixed time delay or actively monitor the DI input before using the DE input to change the bus direction. Other direction-control techniques include using a microcontroller and driving the DE input with data while pulling the A-B lines apart (connecting a pull-up resistor from A to 5V and connecting a pull-down resistor from B to ground). The value of these resistors varies with cable capacitance, but is typically 1kΩ. Figure 9. The MAX3162 converts bidirectionally between RS-232 and RS-485 signals in a multipoint application. Port-Powered Devices Many converters from RS-232 to RS-485 are "port-powered converters" in which the RS-485 power is derived from the RS-232 RTS line (or sometimes a combination of the RTS and CTS (DTR) lines). Because the power available from an RS-232 port is limited, the RS-485 launch voltages are not achieved when using a port-powered converter with, for example, one hundred RS-485 terminations. The low receiver threshold (200mV), however, allows a fair margin for error. This technique is acceptablein systems with short line lengths and without termination resistors across the A-B terminals. Page 9 of 10

Hot-Swap When circuit boards are inserted into a hot or powered backplane, differential disturbances to the data bus can lead to data errors. Upon initial circuit-board insertion, the data communication processor undergoes its own power-up sequence. During this period, the processor's logic-output drivers are high impedance and unable to drive the DE and active-low RE inputs of the MAX3060E/MAX3080E to a defined logic level. Leakage currents up to ±10mA from the high-impedance state of the processor's logic drivers could cause standard CMOS enable inputs of a transceiver to drift to an incorrect logic level. Additionally, parasitic circuit board capacitance could cause coupling of VCC or GND to the enable inputs. Without the hot-swap capability, these factors could improperly enable a transceiver's driver or receiver. References 1. RS-422 and RS-485 Application Note, B&B Electronics (This is a great source of information on RS-232, RS-485 and RS-422 standards and their practical realizations. www.bb-elec.com) 2. Serial Port Complete, Jan Axelson (This definitive reference for serial ports includes considerable useful source code written in Visual Basic. www.lvr.com) MAX14775E Related Parts ±65V Fault Protected 500Kbps/20Mbps Half-Duplex RS- 485/RS-422 Transceivers MAX14770E ±35kV High-ESD PROFIBUS RS-485 Transceiver MAX14783E MAX14786E MAX1480E High-Speed 3.3V/5V RS-485/RS-422 Transceiver with ±35kV HBM ESD Protection Full-Duplex, ±35kV ESD-Protected, RS-485 Transceivers for High-Speed Communication ±15kV ESD-Protected, Isolated RS-485/RS-422 Data Interfaces MAX232 +5V-Powered, Multichannel RS-232 Drivers/Receivers MAX3162 MAX3232 MAX485 +3.0V to +5.5V, 1µA, RS-232/RS-485/422 Multiprotocol Transceivers 3.0V to 5.5V, Low-Power, up to 1Mbps, True RS-232 Transceivers Using Four 0.1µF External Capacitors Low-Power, Slew-Rate-Limited RS-485/RS-422 Transceivers More Information For Technical Support: https://www.maximintegrated.com/en/support For Samples: https://www.maximintegrated.com/en/samples Other Questions and Comments: https://www.maximintegrated.com/en/contact Application Note 723: https://www.maximintegrated.com/en/an723 TUTORIAL 723, AN723, AN 723, APP723, Appnote723, Appnote 723 2014 Maxim Integrated Products, Inc. The content on this webpage is protected by copyright laws of the United States and of foreign countries. For requests to copy this content, contact us. Additional Legal Notices: https://www.maximintegrated.com/en/legal Page 10 of 10