You are on page 1of 3

TRANSCEIVERS

Learn RS-485 design basics


By Thomas Kugelstadt dation across the cable and con-
Senior Applications Engineer nectors. This robustness is the
Texas Instruments Inc. primary reason RS-485 is good
for long distance networking in
Ratified in the early 1980s as noisy environments.
a new balanced transmission
standard, RS-485 has emerged as Cable type
the industry’s seemingly eternal RS-485 applications benefit from
interface workhorse. Since then, differential signaling over twisted Figure 1: Bus nodes are networked in a daisy-chain (a) or bus topology (b).
much literature has been written pair cable. This is because noise
on the subject, overwhelming from external sources couples
system engineers who are rarely equally into both signal lines as
confronted with interface design. common-mode noise, which is
This article serves as an introduc- rejected by the differential re-
tory guide to designers new to ceiver input. Figure 2: RS-485 drivers must provide a differential output of a minimum of
RS-485 by discussing the main Industrial RS-485 cables are of 1.5V across a 54Ω load, while RS-485 receivers must detect a differential input
aspects of the standard. the sheathed, unshielded, twist- with a minimum of 200mV.
RS-485 only defines the elec- ed pair type with a characteristic
trical characteristics of drivers impedance of 120Ω and 22 AWG.
and receivers used in balanced Figure 3 shows the cross sec-
multipoint transmission lines. As tion of a cable for half-duplex
an electrical-only standard, RS- networks.
485 is commonly referenced by Beyond network cabling, it is
higher level standards as their mandatory that the PCB layouts
physical layer. and the connector pin assign- Figure 3: Shown is the cross section of a single pair unshielded, twisted pair
ments of RS-485 equipment type cable for half-duplex networks.
Network topology keep both signal lines close and
Bus nodes are networked in a dai- equidistant to one another to
sy-chain or bus topology (Figure maintain the network’s electrical
1). That is, each node connects characteristics.
to the main cable trunk via short
stubs. The interface bus is usually Bus termination, stub length
designed for half-duplex trans- Data transmission lines should
mission, meaning that only one always be terminated, and stubs
signal pair is used, across which should be as short as possible to
the driving and receiving of data avoid signal reflections on the
must occur at different times. line. Proper termination requires
This implementation requires matching the terminating resis-
the protocol-controlled op- tors (RT) to the characteristic im- Figure 4: Applications in noisy environments often add common-mode noise
eration of all nodes via direction pedance (Z0) of the transmission filtering by replacing the 120Ω resistors with two resistor capacitor low-pass
control signals (i.e. driver/receiver cable. Because RS-485 recom- filters.
enabled signals) to ensure that mends cables with Z0 = 120Ω,
only one driver is active on the the cable trunk is commonly ter- differ and common-mode noise (ns); v = signal velocity of the
bus at any time. Having more minated with 120Ω resistors, one to be converted into differential cable as factor of c; c = speed of
than one driver accessing the bus at each cable end (Figure 1b). noise, thus compromising the light (9.8 x108ft/s).
simultaneously leads to bus con- Applications in noisy en- receiver’s noise immunity. The table lists the maximum
tention, which must be avoided vironments often add com- The electrical length of a stub stub lengths of the cable in Figure
at all times. mon-mode noise filtering by (the distance between a transceiver 4 for various driver rise times.
RS-485 drivers must provide a replacing the 120Ω resistors and cable trunk) should be shorter
differential output of a minimum with two resistor capacitor than one-tenth of the driver’s out- Loss of signal
of 1.5V across a 54Ω load, while low-pass filters (Figure 4). It is put rise time and is given by Fail-safe operation is a receiver’s
RS-485 receivers must detect a important to match the resistor ability to assume a determined
differential input with a minimum values (preferably with precision output state in the absence of an
of 200mV (Figure 2). These two resistors) to ensure equal roll- input signal. There are three pos-
values provide sufficient margin off frequencies of both filters. where: LStub = maximum sible causes that can lead to the
for reliable data transmission, Larger resistor tolerances cause length of an unterminated cable loss of signal: open-circuit caused
even under severe signal degra- the filter corner frequencies to (ft); tr = driver (10/90) rise time by a wire break or by disconnect-

EE Times-Asia | August 1-15, 2008 | eetasia.com 


ing a transceiver from the bus; as one-eighth UL, thus allowing
short-circuit caused by an insula- the connection of up to 256
tion fault connecting the wires of transceivers on the bus.
a differential pair to another; and Because fail-safe biasing
idle-bus occurring when none of contributes up to 20 ULs of bus
the bus drivers is active. loading, the maximum number
Because these conditions can of transceivers, N, is reduced to:
cause conventional receivers to
assume random output states
when the input signal is 0, mod-
ern transceiver designs include Thus, when using 1/8 transceiv-
biasing circuits for open-circuit, ers, a maximum of 96 devices can Figure 5: Inserting two 523Ω resistors in series to RT establishes a single fail-safe
short-circuit and idle-bus fail-safe, be connected to the bus. circuit at one bus end.
which drive the receiver output
to a determined state when the Data rate vs. bus length
input signal is 0. Maximum bus length is limited by
While these fail-safe transceiv- transmission line losses and signal
ers claim to reduce component jitter at a given data rate. Because
count, their worst-case noise data reliability sharply decreases
margin of 10mV necessitates for a jitter of 10 percent or more of
the design of external fail-safe the baud period, Figure 6 shows
circuitry. An external fail-safe cir- the cable length vs. data rate char-
cuit consists of a resistive voltage acteristic of a conventional RS-485
divider that generates sufficient driver for a 10 percent signal jitter.
differential bus voltage to drive In Figure 6, Section 1 repre-
the receiver output into a deter- sents the range of low data rates
mined state. To ensure sufficient where the line length is limited
noise margin, VAB must include by the predominantly non-reac-
the maximum differential noise tive (resistive) losses of the cable.
in addition to the 200mV receiver In Section 2, the cable’s reactive
input threshold. The values for losses increase with frequency, Figure 6: At short lengths, the cable losses are discarded and only the driver rise
the fail-safe bias resistors (RB) are thus making a reduction in cable time limits the maximum data rate possible.
then calculated for worst-case length necessary. A rule of thumb
conditions—maximum noise at states that the product of the line
minimum supply, that is: length (feet) and the data rate (bit/
s) is less than 3,107. At short lengths,
the cable losses are discarded and
only the driver rise time limits the
With VAB = 200mV + VNoise. maximum data rate possible. (as
shown in Section 3).
For a minimum bus voltage of
4.75V, VAB = 0.25V and Z0 = 120, Minimum node spacing
RB yields 528Ω. Inserting two 523 Adding bus capacitance in the
resistors in series to RT (Figure 5) form of devices and their intercon-
establishes a single fail-safe circuit nections lowers the bus imped-
at one bus end. ance. It also causes impedance
Because a driver’s output mismatches between the media Figure 7: Minimum node spacing with device and media capacitance is shown.
depends on the current, it must and the loaded section of the
supply into a load. Adding trans- bus. Input signals arriving at these where CL is the lumped load tacts, PCB traces, protection
ceivers and fail-safe circuits to mismatches are partially reflected capacitance; and C, the media devices and any other physical
the bus increases the total load back to the signal source, distort- capacitance (cable or PCB trace) connections to the trunk line,
current required. To estimate ing the driver output signal. per unit length. While this equa- as long as the distance from the
the maximum number of bus Ensuring a valid receiver input tion presents the relationship for bus to the transceiver (the stub)
loads possible, RS-485 specifies a voltage level during the first signal the minimum device spacing is electrically short.
hypothetical term of a unit load transition from an output driver as a function of the distributed
(UL), which represents a load im- anywhere on the bus requires a media and lumped-load capaci- Galvanic isolation
pedance of approximately 12kΩ. minimum distance between bus tance, Figure 7 shows this rela- Remote data links often possess
Standard compliant drivers must nodes, approximated through tionship graphically. large ground potential differences
be able to drive 32 of these ULs. Load capacitance includes which add to the transmitter out-
Today’s transceivers often pro- contributions from the line put as common-mode noise. If
vide reduced unit loading, such circuit bus pins, connector con- large enough, these voltages can

 eetasia.com | August 1-15, 2008 | EE Times-Asia


Figure 8: The design pitfalls to be aware off are (a) high ground potential differences; (b) high loop current; and (c) reduced loop current, yet highly sensitive to
induced noise due to large ground loop.

Device Signal rate Rise time Maximum stub


(kbit/s) tr [ns] length [ft]
SN65HVD12 1000 100 7
SN65LBC184 250 250 19
SN65HVD3082E 200 500 38
The electrical length of a stub (the distance between a transceiver and cable
trunk) should be shorter than one-tenth of the driver’s output rise time.

exceed the receiver’s input com- Figure 9 shows the detailed


mon-mode range and damage connection of multiple isolated
the component. Thus, relying on transceivers. All but one trans-
the local earth ground as a reliable ceiver connects to the bus via
path for the return current is not isolation. The non-isolated trans-
advised (Figure 8a). ceiver on the left provides the
Connecting remote grounds single-ground reference for the
directly by ground wire is also not entire bus.
recommended (Figure 8b), as this Without claiming to be com-
might cause large ground-loop plete, this article aims to cover
currents to flow, which again will the main aspects of an RS-485
couple into the data lines as com- system design. Despite the enor-
mon-mode noise. mous amount of technical litera-
Reducing loop currents by ture on the subject, it intends to
inserting resistors in the ground provide system designers new to
path, as suggested by RS-485, RS-485 with design guidelines in
is only half the battle won. The a very comprehensive way.
existence of a large ground loop An extensive product range
keeps the data link sensitive to of RS-485 transceivers is avail-
noise generated somewhere else able from TI. Device features in-
along the loop. Thus, a robust data clude low EMI, low power, high
link has not yet been established ESD protection (16-30kV) and
(Figure 8c). integrated fail-safe functions
The most reliable approach to for open-, short- and idle-bus
a robust, long distance data link is conditions. For long distance
via galvanic isolation. In this case, applications requiring isolation,
the signal and supply lines of a the product range extends to
bus transceiver are isolated from unidirectional and bidirectional,
its local signal and supply sources. digital isolators in dual, triple
Supply isolators (i.e. isolated DC/ and quad versions (from DC to
DC converters) and signal isolators 150Mbit/s), and isolated DC/DC
(i.e. digital, capacitive isolators) converters (with 3V and 5V regu-
prevent current flow between lated outputs) to provide the Figure 9: All but one transceiver connects to the bus via isolation. The non-
remote system grounds and avoid power supply across the isola- isolated transceiver on the left provides the single-ground reference for the
the creation of current loops. tion barrier. entire bus.

EE Times-Asia | August 1-15, 2008 | eetasia.com 

You might also like