The RS-485 Design Guide
The RS-485 Design Guide
The RS-485 Design Guide
Introduction
In 1983, the Electronics Industries Association (EIA) approved a new balanced transmission standard
called RS-485. Finding widespread acceptance and usage in industrial, medical, and consumer
applications, RS-485 has become the industrys interface workhorse.
This application report presents design guidelines for engineers new to the RS-485 standard that can help
them accomplish a robust and reliable data transmission design in the shortest time possible.
In a comprehensive way, this document discusses the important aspects of the RS-485 standard by
focusing on the following subjects: bus topology, signal levels, cable type, bus termination, failsafe, bus
loading, data rate versus bus length, minimum node spacing, and grounding and isolation.
Network Topology
The RS-485 standards suggests that its nodes be networked in a daisy-chain, also known as party line or
bus topology (see Figure 1). In this topology, the participating drivers, receivers, and transceivers connect
to a main cable trunk via short network stubs. The interface bus can be designed for full-duplex or
half-duplex transmission (see Figure 2)
Signal Levels
www.ti.com
The full-duplex implementation requires two signal pairs, (four wires), and full-duplex transceivers with
separate bus access lines for transmitter and receiver. Full-duplex allows a node to simultaneously
transmit data on one pair while receiving data on the other pair.
RT
to Master
RT
RT
from Master
RT
RT
RT
Signal Levels
RS-485 standard conform drivers provide a differential output of a minimum 1.5 V across a 54- load,
whereas standard conform receivers detect a differential input down to 200 mV. The two values provide
sufficient margin for a reliable data transmission even under severe signal degradation across the cable
and connectors. This robustness is the main reason why RS-485 is well suited for long-distance
networking in noisy environment.
+ 1.5 V
- 1.5 V
+ 200 mV
- 200 mV
Cable Type
RS-485 applications benefit from differential signaling over twisted-pair cable, because noise from external
sources couple equally into both signal lines as common-mode noise, which is rejected by the differential
receiver input.
Industrial RS-485 cables are of the sheathed, unshielded, twisted-pair type, (UTP), with a characteristic
impedance of 120 and 2224 AWG. Figure 4 shows the cross-section of a four-pair, UTP cable typically
used for two full-duplex networks. Similar cables, in two-pair and single-pair versions, are available to
accommodate the low-cost design of half-duplex systems.
Conductor
Insulation
Cable Shield
Sheath
www.ti.com
Beyond the network cabling, it is mandatory that the layout of printed-circuit boards and the connector pin
assignments of RS-485 equipment maintain the electrical characteristics of the network by keeping both
signal lines close and equidistant to another.
60 W
60 W
220 pF
220pF
RT
120 W
120 W
RT
60 W
60 W
SIGNAL RATE
[kbps]
RISE TIME
tr [ns]
SN65HVD12
1000
100
SN65LBC184
250
250
19
SN65HVD3082E
200
500
38
Note: drivers with long rise times are well suited for applications requiring long stub lengths and reduced,
device-generated EMI.
Failsafe
Failsafe operation is a receivers ability to assume a determined output state in the absence of an input
signal.
Three possible causes can lead to the loss of signal (LOS):
SLLA272B February 2008 Revised May 2008
Submit Documentation Feedback
Bus Loading
www.ti.com
1. Open-circuit, caused by a wire break or by the disconnection of a transceiver from the bus
2. Short-circuit, caused by an insulation fault connecting the wires of a differential pair to another
3. Idle-bus, occurring when none of the bus drivers is active.
Because these conditions can cause conventional receivers to assume random output states when the
input signal is zero, modern transceiver designs include biasing circuits for open-circuit, short-circuit, and
idle-bus failsafe, that force the receiver output to a determined state, under an LOS condition.
A drawback of these failsafe designs is their worst-case noise margin of 10 mV only, thus requiring
external failsafe circuitry to increase noise margin for applications in noisy environments.
An external failsafe circuit consists of a resistive voltage divider that generates sufficient differential bus
voltage, to drive the receiver output into a determined state. To ensure sufficient noise margin, VAB must
include the maximum differential noise measured in addition to the 200-mV receiver input threshold, VAB =
200 mV + VNoise.
The values for the failsafe bias resistors, RB, are calculated for worst-case conditions, that is, maximum
noise at minimum supply:
V Bus*min
RB +
VAB 1375 ) 4Z 0
(2)
For a minimum bus voltage of 4.75 V, (5 V 5%), VAB = 0.25 V, and Z0 = 120 , RB yields 528 .
Inserting two 523- resistors in series to RT establishes the failsafe circuit shown in Figure 6.
V Bus
RB
523 W
RT
120 W
RT
120 W
RB
523 W
Bus Loading
Because a driver's output depends on the current it must supply into a load, adding transceivers and
failsafe circuits to the bus increases the total load current required. To estimate the maximum number of
bus loads possible, RS-485 specifies a hypothetical term of a unit load (UL), which represents a load
impedance of approximately 12 k. Standard-compliant drivers must be able to drive 32 of these unit
loads. Todays transceivers often provide reduced unit loading, such as 1/8 UL, thus allowing the
connection of up to 256 transceivers on the bus.
Because failsafe biasing contributes up to 20 unit loads of bus loading, the maximum number of
transceivers, N, is reduced to:
32 UL STANDARD * 20 UL FAILSAFE
N+
UL per transceiver
(3)
Thus, when using 1/8-UL transceivers, it is possible to connect up to a maximum of 96 devices to the bus.
www.ti.com
CableLength [m]
10000
1000
100
10
0.1
1
10
Data Rate [bps]
100
(1)
Section 1 of the graph presents the area of high data rates over short cable length. Here, the losses of the
transmission line can be neglected and the data rate is mainly determined by the drivers rise time. Although
the standard recommends 10 Mbps, todays fast interface circuits can operate at data rates of up to 40 Mbps.
(2)
Section 2 shows the transition from short to long data lines. The losses of the transmission lines have to be
taken into account. Thus, with increasing cable length, the data rate must be reduced. A rule of thumb states
that the product of the line length [m] times the data rate [bps] should be <107. This rule is far more
conservative than today's cable performance and will therefore show less length at a given data rate than the
graph presents.
(3)
Section 3 presents the lower frequency range where the line resistance, and not the switching, limits the
cable length. Here, the cable resistance approaches the value fo the termination resistor. This voltage divider
diminishes the signal by -6 dB. For a 22 AWG cable, 120 , UTP, this occurs at approximately 1200 m.
www.ti.com
0 .5
C L ( pF )
0 .4
100
60
0 .3
40
20
10
0 .2
0 .1
0
40
50
60
70
80
Vcc2
Vcc1
Vcc2
Vn
Vcc1
Vcc2
Vn
Vn
GPD
2
Ground loop
Electrical Installation
Electrical Installation
100 O
100 O
Circuit
ground
Ground loop
2
Circuit
ground
Electrical Installation
1
a)
1
1
b)
c)
Figure 9. Design Pitfalls to be Aware off: a) High GPD, b) High Loop Current, c) Reduced Loop Current,
Yet Highly Sensitive to Induced Noise Due to Large Ground Loop
Conclusion
www.ti.com
Because remote nodes are likely to draw their power from different sections of the electrical installation,
modification to the installation, (i.e., during maintenance work), can increase the GPD to the extent that
the receivers input common-mode range is exceeded. Thus, a data link working today might cease
operation sometime in the future.
The direct connection of remote grounds through ground wire also is not recommended (see Figure 9b),
as this causes large ground loop currents to couple into the data lines as common-mode noise.
To allow for a direct connection of remote grounds, the RS485 standard recommends the separation of
device ground and local system ground via the insertion of resistors (Figure 9c). Although this approach
reduces loop current, the existence of a large ground loop keeps the data link sensitive to noise generated
somewhere else along the loop. Thus, a robust data link has not been established yet.
The approach to tolerate GPDs up to several kilovolts across a robust RS-485 data link and over long
distance is the galvanic isolation of the signal and supply lines of a bus transceiver from its local signal
and supply sources (see Figure 10).
Supply
Isolator
L2
VREG
SMPS
L1
N2
VREG
XCVR
SMPS
XCVR
Local
Processing
Circuit
N1
Local
Processing
Circuit
Signal
Isolator
PE 1
PE 2
Figure 10. Isolation of Two Remote Transceiver Stations With Single-Ground Reference
In this case, supply isolators, such as isolated DC/DC converters, and signal isolators, such as digital,
capacitive isolators, prevent current flow between remote system grounds and avoid the creation of
current loops.
Whereas Figure 10 shows the detailed connection of only two transceiver nodes, Figure 11 gives an
example for multiple, isolated transceivers. All transceivers but one connect to the bus via isolation. The
non-isolated transceiver on the left provides the single-ground reference for the entire bus.
Vcc4
Vcc1
R
D
Nonisolated
XCVR
Isolated
XCVR
R
D
GND4
GND1
D Vcc2
Isolated
XCVR
Isolated
XCVR
GND2
GND3
D Vcc3
Conclusion
The objective of this application report is to cover the main aspects of an RS-485 system design. Despite
the enormous amount of technical literature on the subject, this documents intent is to provide system
designers new to RS-485 with design guidelines in a very comprehensive way.
Following the discussions presented in this document and consulting the detailed application reports in the
reference section can help accomplishing a robust, RS-485-compliant system design in the shortest time
possible.
References
www.ti.com
Supporting the design effort, Texas Instruments provides an extensive product range of RS-485
transceivers. Device features include low EMI, low-power (1/8 UL), high ESD protection (from 16 kV up to
30 kV), and integrated failsafe functions for open-, short- and idle-bus conditions. For long-distance
applications requiring isolation, the product range extends to unidirectional and bidirectional, digital
isolators in dual, triple and quad versions (from DC to 150 Mbps), and isolated DC/DC converters (with
3-V and 5-V regulated outputs), to provide the power supply across the isolation barrier.
References
Further information is available at www.ti.com by entering the blue literature numbers that follow into the
Keyword Search field.
1. Removing Ground Noise in Data Transmission Systems application report (SLLA268)
2. Interface Circuits for TIA/EIA-485 (RS-485) design notes (SLLA036)
3. Detection of RS-485 Signal Loss, TI Analog Application Journal, 4Q 2006 (SLYT257)
4. Overtemperature Protection in RS-485 Line Circuits application report (SLLA200)
5. Device Spacing on RS-485 Buses, TI Analog Application Journal, 2Q 2006 (SLYT241)
6. PROFIBUS Electrical-Layer Solutions application report (SLLA177)
7. A Statistical Survey of Common-Mode Noise, TI Analog Application Journal, Nov 2000 (SLYT153)
8. Failsafe in RS-485 Data Buses, TI Analog Application Journal, 3Q 2004 (SLYT080)
9. The RS-485 Unit Load and Maximum Number of Bus Connections, TI Analog Application Journal, 1Q
2004 (SLYT086)
10. Using Signaling Rate and Transfer Rate application report (SLLA098)
11. Operating RS-485 Transceivers at Fast Signaling Rates application report (SLLA173)
12. RS-485 for E-Meter Applications application report (SLLA112)
13. Failsafe in RS-485 Data Buses, TI Analog Application Journal, 3Q 2004 (SLYT064)
14. Use Receiver Equalization to Extend RS-485 Data Communications application report (SLLA169)
15. The RS-485 Unit Load and Maximum Number of Bus Connections application report (SLLA166)
16. Comparing Bus Solutions application report (SLLA067)
17. RS-485 for Digital Motor Control Applications application report (SLLA143)
18. 422 and 485 Standards Overview and System Configurations application report (SLLA070)
19. TIA/EIA-485 and M-LVDS, Power and Speed Comparison application report (SLLA106)
20. Live Insertion with Differential Interface Products application report (SLLA107)
21. The ISO72x Family of High-Speed Digital Isolators application report (SLLA198)
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 TIs 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 TIs 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 TI 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. Information of third parties may be subject to additional
restrictions.
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.
TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonably
be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing
such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and
acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products
and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be
provided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in
such safety-critical applications.
TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are
specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military
specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at
the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.
TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are
designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designated
products in automotive applications, TI will not be responsible for any failure to meet such requirements.
Following are URLs where you can obtain information on other Texas Instruments products and application solutions:
Products
Amplifiers
Data Converters
DSP
Clocks and Timers
Interface
Logic
Power Mgmt
Microcontrollers
RFID
RF/IF and ZigBee Solutions
amplifier.ti.com
dataconverter.ti.com
dsp.ti.com
www.ti.com/clocks
interface.ti.com
logic.ti.com
power.ti.com
microcontroller.ti.com
www.ti-rfid.com
www.ti.com/lprf
Applications
Audio
Automotive
Broadband
Digital Control
Medical
Military
Optical Networking
Security
Telephony
Video & Imaging
Wireless
www.ti.com/audio
www.ti.com/automotive
www.ti.com/broadband
www.ti.com/digitalcontrol
www.ti.com/medical
www.ti.com/military
www.ti.com/opticalnetwork
www.ti.com/security
www.ti.com/telephony
www.ti.com/video
www.ti.com/wireless
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright 2008, Texas Instruments Incorporated