Slla 070 D
Slla 070 D
Slla 070 D
1 2
7 8 9 10
Contents Introduction .................................................................................................................. 3 Overview of RS-422 and RS-485 Standards ............................................................................ 3 2.1 Selected RS-422 Electrical Specifications ...................................................................... 3 2.2 Selected RS-485 Electrical Specifications ...................................................................... 9 Failsafe Operation ......................................................................................................... 12 3.1 The Need for Failsafe Protection ............................................................................... 12 3.2 Internal Failsafe ................................................................................................... 13 3.3 External Failsafe .................................................................................................. 13 Suggested Termination and Grounding Techniques .................................................................. 13 4.1 No Termination ................................................................................................... 13 4.2 Parallel Termination .............................................................................................. 14 4.3 AC Termination ................................................................................................... 16 4.4 Multipoint Termination ........................................................................................... 17 4.5 Ground Connections ............................................................................................. 18 Typical System Configurations .......................................................................................... 21 5.1 Daisy-Chain Configuration ...................................................................................... 21 5.2 Bus and Stub Configuration ..................................................................................... 21 5.3 Point-to-Point Configuration ..................................................................................... 22 Summary Comparison of the Standards ............................................................................... 22 6.1 Common-Mode Range ........................................................................................... 22 6.2 Line Contention ................................................................................................... 23 6.3 Drive Current ...................................................................................................... 23 Conclusion .................................................................................................................. 23 Glossary .................................................................................................................... 24 Acknowledgment .......................................................................................................... 24 References ................................................................................................................. 24 List of Figures
1 2 3 4 5 6
RS-422 Balanced-Voltage Digital-Interface Circuit ..................................................................... 4 RS-422 Open-Circuit Test Circuit ......................................................................................... 4 RS-422 Output-Voltage Test Circuit ...................................................................................... 5 RS-422 Short-Circuit Output-Current Test Circuit ...................................................................... 5 RS-422 Power-Off Output-Current Test Circuit ......................................................................... 5 RS-422 Test Circuit and Output-Signal Waveform ..................................................................... 6
RS-422 and RS-485 Standards Overview and System Configurations
Copyright 20022010, Texas Instruments Incorporated
www.ti.com
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
RS-422 Input Receiver Test Circuit and I/V Plot ........................................................................ 7 RS-422 Input-Sensitivity Test Circuit and Resultant Waveform ...................................................... 8 RS-485 Balanced-Voltage Digital-Interface Circuit ..................................................................... 9
........................................................................ RS-485 Open-Circuit Test Circuit ....................................................................................... RS-485 Output-Voltage Test Circuit .................................................................................... RS-485 Output-Voltage Test Circuit With Common-Mode Loading ................................................ RS-485 Short-Circuit Output-Current Test Circuit ..................................................................... RS-485 Output-Signal Test Circuit ...................................................................................... Differential Unterminated Configuration ................................................................................ Differential Unterminated-Driver Output Waveforms .................................................................. Differential Unterminated-Receiver Input Waveforms ................................................................ Differential Parallel-Terminated Configuration ......................................................................... Differential Parallel-Terminated Driver Output Waveforms .......................................................... Differential Parallel-Terminated Receiver Input Waveforms ......................................................... Differential AC-Terminated Configuration .............................................................................. Differential AC-Terminated Driver Output Waveforms ................................................................ Differential AC-Terminated Receiver Input Waveforms .............................................................. Differential Multipoint-Terminated Configuration ...................................................................... Grounding Configuration with Isolated Local Ground and PE ....................................................... Grounding Configuration with Connected Local Ground and PE ................................................... Isolated Configuration ..................................................................................................... Daisy-Chain Connection .................................................................................................. Stub Cables Connected to the Main Backbone ....................................................................... Point-to-Point Connection ................................................................................................
RS-485 U.L. Test Circuit and I/V Relationship List of Tables
10 10 11 11 11 12 13 14 14 15 15 16 16 17 17 18 19 19 20 21 22 22
1 2 3 4
Input Sensitivity and Resultant Voltages of 422-Compliant Devices ................................................. 8 Input Sensitivity and Resultant Voltages of 485-Compliant Devices
...............................................
12
Summary of Termination Techniques................................................................................... 18 Summary Comparison of RS-485 and RS-422 Specifications ...................................................... 23
www.ti.com
Introduction
Introduction
The RS-422 and RS-485 standards, as they are known today, are balanced data-transmission schemes that offer robust solutions for transmitting data over long distances and noisy environments. The official titles for these two standards are ANSI TIA/EIA-422 and TIA/EIA-485, respectively, and are revised periodically by the TR-30.2 DTE-DCE Interfaces and Protocols Subcommittee to the Telecommunications Industry Association (TIA) TR-30 Data Transmission Systems and Equipment Committee. For identification, RS-422 and RS-485 suffice. This application report offers an overview of the RS-422 and RS-485 standards. While many specifications are described in the official ANSI documents, only the most prevalent are discussed in this application report. The purpose of this application report is to not duplicate the official documents, but to outline basic differences and similarities between the RS-422 and RS-485 standards. Major specifications are described in detail and the two standards are compared. Because impedance matching is an important aspect of differential data transmission in minimizing line reflections due to transmission-line effects, techniques for terminating different system applications are presented. Also, typical system configurations are taken into consideration for optimal application performance and cost constraints.
2.1
www.ti.com
ZT
B
S0450-01
A B C
Figure 1. RS-422 Balanced-Voltage Digital-Interface Circuit Although the input electrical characteristics of the RS-422-compliant receiver are identical to those of the RS-423-compliant receiver (ANSI TIA/EIA-423 standard), the RS-423 specifies an unbalanced signaling scheme, which is not within the scope of this application report. Descriptions of selected specified parameters are presented in the following paragraphs. 2.1.1 Open-Circuit Output Voltage (VOD, VOA, and VOB Measured) The output voltage shall not exceed 6 V under unloaded conditions, and the differential voltage [measured as the difference between an output voltage, VOA (VOB), and its complementary output voltage, VOB (VOA)] is no greater than 10 V. See Figure 2 for the test circuit.
A Logic (1 or 0) + B VOB
VOD
VOA
S0451-01
A B C D
|VOD| 10 V, |VOA| 6 V, and |VOB| 6 V VOA = voltage on A output VOB = voltage on B output VOD = differential output voltage
2.1.2
Differential and Offset Output Voltage (VOD and VOC Measured) To ensure proper drive strength, a minimum of 2-V VOD and a maximum of 3-V VOS are measured (see Figure 3). Furthermore, a check on driver output-voltage balance between the differential output voltages is put in place to measure the change in these voltages (not to exceed 400 mV). The maximum limit of 400 mV most often is approached during transients when driver outputs are switching states.
www.ti.com
VOD + VOC
50 W
2.1.3
Short-Circuit Output Current (IOS Measured) With the driver shorted to ground, the magnitude of the output current shall not exceed 150 mA, regardless of the state of the driver output (high or low) at the time of the short. This test ensures that the device is not destroyed by excessive current flowing through the output stage. Figure 4 shows the test circuit.
A Logic (1 or 0)
B
IOC
IOC
S0453-01
2.1.4
Power-Off Measurement (IOFF Measured; VO Applied) As shown in Figure 5, with the driver powered down, the magnitude of the output leakage current shall not exceed 100 A for output voltages ranging from 0.25 V to 6 V. Currents higher than 100 A can disrupt the bus potential and lead to erroneous data at the receiver.
IOFF A Logic (1 or 0)
B IOFF vO vO
S0454-01
www.ti.com
2.1.5
Output-Signal Waveform (VOD Measured) Basically, this test ensures good signal quality on the bus. With a 100- resistor across the differential output, the voltage monotonically changes between 10% and 90% of VSS within a tenth of the unit interval, tui, or 20 ns, whichever is greater. Figure 6 shows the test circuit and resultant waveform. In addition, the resultant voltage shall not change more than 10% of VSS after a transition has occurred (limits overshoots and undershoots).
A Logic (1 or 0) +
VOD
100 W
B tui 1.1 VSS 0.9 VSS VOD 0.1 VSS VSS 0-V Differential VOD 0.1 VSS 0.9 VSS 1.1 VSS tr A. tui = time duration of the unit interval B. VSS = |VOD - VOD| C. 2 V ? |VOD| ? 10 V tf
S0455-01
2.1.6
Input I/V Characteristics (VIA, and VIB, Applied; IIA, and IIB, Measured) A maximum limit on the input characteristic must be placed on the receiver to ensure a maximum load on the bus when all ten receivers are placed on it. With the common-mode voltage VIA, (VIB) ranging from +10 V to 10 V while VIB, (VIA,) is held to 0 V, the resultant input current should remain within the shaded region (see Figure 7) in both the power-on and power-off conditions. A device with input characteristics within the shaded region reveals that the input impedance is no smaller than 4 k, as defined by the calculation. The inverse of the slope of the upper and lower bounds is exactly the minimum input impedance allowed for the input.
www.ti.com
IIA A
II 3.25 mA
10V
3V +3V +10V
VI
3.25 mA
S0456-01
R = V/I = 13 V/3.25 mA = 4 k
2.1.7
Input Sensitivity (VCM, VIA, and VIB, Applied; VID Measured) Figure 8 shows the test circuit used to determine a receiver's input sensitivity. To ensure functionality over the full common-mode range, suggested test voltages for both inputs and the purpose of the measurements are given in Table 1.
www.ti.com
+10
10
S0457-01
Figure 8. RS-422 Input-Sensitivity Test Circuit and Resultant Waveform For a common-mode voltage varying from 7 V to 7 V, VID need not be greater than 200 mV to correctly assume the intended state. As specified in the standard, the magnitude of the differential input voltage, VID, varying from 200 mV to 10 V, is required to maintain correct operation over this range. Table 1. Input Sensitivity and Resultant Voltages of 422-Compliant Devices
APPLIED VOLTAGE VIA'
(3)
VIB'
(3)
PURPOSE OF MEASUREMENTS Ensures correct operation with maximum differential voltage supply Ensures correct operation with maximum common mode voltage supply
|VID| < 12 V (maximum input differential voltage without damaging device) VCM is measured as the arithmetic average of VIA' and VIB', or (VIA' + VIB')/2. |VIA'| < 10 V, |VIB'| < 10 V (maximum input voltages to ensure correct operation)
2.1.8
Cable Termination Cable termination is required, unless the data rate of the application is less than 200 kbps or the signal rise/fall time at the load end of the cable is greater than four times the one-way cable delay. The latter rule-of-thumb typically is used to describe a system that does not behave like a transmission line. In most other applications, cable termination is recommended. Cable termination for a RS-422-compliant system
www.ti.com
always is placed at the load end of the cable. Two options for cable termination are recommended in the standard. The first option is to match the termination resistance to the characteristic impedance of the cable, Zo, while the second option is to place an additional capacitor in series with the termination resistance for designers that are concerned with power dissipation. These two options are discussed in detail in the Suggested Termination and Grounding Techniques section.
2.2
D1
R2
R3
D3
S0458-01
A B C D E
D1 = driver D3/R3 = transceiver R2 = receiver ZT = termination impedance Up to 32 U.L.s [receiver, driver (off state), transceiver]
Figure 9. RS-485 Balanced-Voltage Digital-Interface Circuit Although RS-485 specifies that only one driver can talk at any given time (half-duplex operation), fault conditions might occur (caused by inadvertent shorts on output drivers or line contention). Therefore, RS-485-compliant devices must provide for this. For example, consider the case when driver D1 in Figure 9 is intended to send a signal to receiver R2, but driver D3 still is enabled. If the designer did not disable driver D3 before initiating the transmission, a fault condition occurs and erroneous data might be transmitted to receiver R2. This condition also is known as line contention (see Summary Comparison of the Standards section). The maximum recommended cable length is about 1200 m. Usually, the amount of noise a designer is willing to tolerate is the deciding factor in choosing the cable length. The same relationship of speed versus cable length applies to RS-485-compliant systems, as well as to RS-422-compliant systems. 2.2.1 U.L. Concept (VIA and VIB Applied; IIA and IIB Measured) As with the RS-422, a maximum limit on the I/V characteristic must be placed on the receiver, driver (off state), and transceiver to ensure a maximum load on the bus when all 32 U.L.s are used. With the voltage VIA (VIB) ranging from 7 V to 12 V, while VIB (VIA) is grounded, the resulting input current IIA (IIB) should remain within the shaded region in both power-on and power-off conditions (see Figure 10). A device with input characteristics that fall within the shaded region conforms to having a 1-U.L. characteristic. The
www.ti.com
RS-485 standard specifies the capability to sustain up to 32 U.L.s. The RS-485 often is thought of as a 12-k load standard. Because the output current of the driver is dependent on loading, a design that requires a large number of stations (drivers, receivers, or transceivers) attached to the bus needs a larger load resistance to allow more connections. For example, a 0.5-U.L. transceiver can be placed up to 64 times on a bus, because this configuration complies with the maximum 32-U.L. specification.
IIA A/A
Load
II 1 mA
7V
3V +5V +12V
VI
0.8 mA
S0459-01
2.2.2
Open-Circuit Output Voltage (VOD, VOA, and VOB Measured) The output voltage shall not exceed 6 V under unloaded conditions, and the differential voltage generated will be no smaller than 1.5 V and no greater than 6 V. Figure 11 shows the test circuit used.
A Logic (1 or 0) + B VOB
VOD
VOA
S0451-01
A B
10
www.ti.com
2.2.3
Differential and Offset Output Voltage (VOD and VOC Measured) Similar to the RS-422, RS-485 also specifies a minimum output voltage to ensure proper drive strength, but also places a maximum limit. Figure 12 shows the limitations that have been placed on the differential and offset voltages. It also shows the magnitude in the change in these voltages shall not exceed 200 mV.
A Logic (1 or 0) + B A. 1.5 V |VOD| 5 V, and |DVOD| = ||VOD - |VOD|| 0.2 V - |V || 0.2 V B. -1 V |V | 3 V, and |DV | = ||V
OC OC OC OC
27 W
VOD + VOC
27 W
2.2.4
Differential Output Voltage With Common-Mode Loading (VOD Measured; VCM Applied) With the test circuit shown in Figure 13, the magnitude of the differential output voltage falls within 1.5 V and 5 V.
A Logic (1 or 0) + 375 W
60 W
1.5 V |VOD| 5 V
2.2.5
Short-Circuit Output Current (IOS Measured; VO Applied) With the driver shorted to a voltage source that is varied from 7 V to 12 V, current shall not exceed 250 mA, and the driver shall not be damaged (see Figure 14). Texas Instruments incorporates into all its RS-485-compliant devices a circuit that meets this requirement.
IOS A Logic (1 or 0)
B IOS vO vO
S0461-01
Figure 14. RS-485 Short-Circuit Output-Current Test Circuit Although the internal circuitry limits the amount of current flowing from the output driver, complying with the full range from 7 V to 12 V for an indefinite time is a very stringent test. For customers seeking
SLLA070D June 2002 Revised May 2010 RS-422 and RS-485 Standards Overview and System Configurations
Copyright 20022010, Texas Instruments Incorporated
11
Failsafe Operation
www.ti.com
devices with various levels of robustness, TI offers products that comply fully (indeterminate time period and full voltage range) and partially with this specification. Partially compliant devices may limit the current over the full range, but cannot sustain the current over a long period of time. Another example of partial compliance is the capability to keep the current within specification for long periods, but at a smaller voltage range. 2.2.6 Output-Signal Waveform (VOD Measured) To ensure signal quality, RS-485 also places a constraint on the output-signal waveform. The output-signal waveform is identical to the one described for the RS-422, but a different test circuit is necessary (see Figure 15). The output voltage should change monotonically between 0.1 VSS and 0.9 VSS within 0.3 tui. Thereafter, the output voltage shall not change more than 10% of VSS, and |VOD| 5 V.
A Logic (1 or 0) +
50 pF
54 W
VOD
B
S0462-01
2.2.7
Input Sensitivity (VCM, VIA, and VIB, Applied; VID Measured) Using the same test circuit as in RS-422, Table 2 shows the operating voltage extremes of the receiver and the purpose of each measurement. Table 2. Input Sensitivity and Resultant Voltages of 485-Compliant Devices
APPLIED VOLTAGE VIA' 7 V +12 V 7 V +12 V VIB' 6.8 V +11.8 V 2 V +7 V RESULTING VID 200 V +200 V 5 V +5 V RESULTING VCM 6.9 V +11.9 V 4.5 V +9.5 V RECEIVER OUTPUT STATE Q Q Q Q PURPOSE OF MEASUREMENTS Minimum VI at extreme VCM Minimum VI at extreme + VCM Maximum VI at extreme VCM Maximum VI at extreme + VCM
Failsafe Operation
The feature of receiver failsafe is a benefit in many RS-422 and RS-485 applications; however, its usefulness needs to be considered and understood at an application level.
3.1
12
www.ti.com
3.2
Internal Failsafe
TI and other manufacturers have devices with failsafe design by including some form of open-circuit, short-circuit, and idle-bus failsafe circuitry within the integrated circuits, which simplify the system design. Further discussion of internal failsafe is found in references SLYT080 and SLYT064.
3.3
External Failsafe
External failsafe uses external circuitry together with termination to provide a defined voltage across the receiver's input, regardless of whether the signal pair is shorted together or is left open circuited. It is recommended to use when there is no internal failsafe circuit, or to reinforce the effect of internal failsafe circuits in applications where extremely high levels of noise are possible. Further discussion of internal failsafe is found in reference SLYT324.
4.1
No Termination
Figure 16 shows a configuration with no termination. Figure 17 and Figure 18 show that, although reflections are present at the receiver inputs at a data signaling rate of 200 kbps with no termination, the RS-422-compliant receiver reads only the input differential voltage and produces a clean signal at the output.
DY DIN D DZ RA
S0463-01
RB R ROUT
Figure 16. Differential Unterminated Configuration Advantages Driver is only required to source a minimal amount of current to produce a signal at the receiver. Minimizes the driver's on-chip power dissipation Ensures that the receiver's output is in a known state if the receiver internally features open-line fail safe Disadvantage Signal reflections due to mismatched line impedance at high data signaling rates (should be used
RS-422 and RS-485 Standards Overview and System Configurations
Copyright 20022010, Texas Instruments Incorporated
13
www.ti.com
only in applications with data rates 200 kbps and short distances) (If tr > 4tdelay, the cable is not considered a transmission line.)
DIN
DZ
DY
ROUT
G001
DIN
RA
RB
ROUT
G002
4.2
Parallel Termination
Figure 19 shows a typical configuration using an impedance termination across the differential inputs at the far-end receiver. As shown in Figure 20 and Figure 21, parallel termination ensures that there are no impedance mismatches and eliminates reflections. A termination resistance of 100 was applied, and only one receiver was used in this experiment, while transmitting at a data signaling rate of 1 Mbps.
14
www.ti.com
DY
DIN
ZT
ROUT
DZ R
LSTUB
RA
S0464-01
ZT = Zo
Figure 19. Differential Parallel-Terminated Configuration Advantages Elimination of reflections: higher data rates and longer cables Multidrop applications are also supported. Disadvantages Long stub lengths (LSTUB) reintroduce reflections. Increase in driver's power dissipation (when compared to the unterminated case) Receiver's differential input is zero when all drivers are idle.
DIN
DZ
DY
ROUT
G003
15
www.ti.com
DIN
RA
RB
ROUT
G004
4.3
AC Termination
Because the differential outputs are complementary when the driver is activated, one output is in the high state, while the other is in the low state. Current flows from the high-state output to the low-state output through the termination resistor, as in the parallel configuration. A capacitor and resistor are used for ac termination to eliminate the dc current path from one differential output to the other. Figure 22 shows the connectivity. However, this added RC time-constant delay significantly reduces transmission speeds. Figure 23 and Figure 24 illustrate acceptable receiver input and output waveforms using an ac termination of ZT = 100 and a 1000-pF capacitor. The data rate was limited to 200 kbps in laboratory measurements. If a RS-485-system with multiple drivers is used, place another ZT and CT across the balanced line at the other end of the cable.
DY RB ZT DIN D CT DZ RA
S0465-01
ROUT
Figure 22. Differential AC-Terminated Configuration Advantages Driver power dissipation is decreased compared to parallel termination, but not as much as in the unterminated case. Line reflections are reduced. Ensures that the receiver's output goes to a known state if the receiver internally features open-line fail-safe Disadvantage Limitation on maximum data signaling rate and cable distance due to RC time constant (typically used on low-speed control lines)
SLLA070D June 2002 Revised May 2010
16
www.ti.com
DIN
DZ
DY
ROUT
G005
DIN
RA
RB
ROUT
G006
4.4
Multipoint Termination
Multipoint configurations are supported by RS-485, but not RS-422. Figure 25 shows a typical RS-485-compliant configuration, with a transceiver at both ends of the cable and drivers/receivers placed along the length of the cable. RS-485 requires termination at both ends of the cable (see Figure 25). No waveforms are provided for this configuration, but performance similar to that of the parallel-termination case can be expected.
17
www.ti.com
DIN
ZT
ZT
D D
S0466-01
ZT = Zo
Figure 25. Differential Multipoint-Terminated Configuration Advantages Same as parallel termination Optimum signal quality Disadvantage Same as parallel termination, but two termination resistors are required, one at each end of the cable, which adds more loading to the drivers. Table 3. Summary of Termination Techniques
TECHNIQUE No termination Parallel termination AC termination Multipoint termination POWER DISSIPATION Low Medium Low Medium OPEN-LINE FAIL-SAFE Supported if available on receiver Supported if available on receiver Supported if available on receiver Supported if available on receiver SHORTED-LINE FAIL-SAFE Supported if available on receiver Supported if available on receiver Supported if available on receiver Supported if available on receiver SPEED Low High Medium High SIGNAL INTEGRITY Good at low signaling rates, Poor at high speeds Excellent Good Excellent
4.5
Ground Connections
Commonly RS-422 and RS-485 system configurations are presented without a separate ground wire. Laws of physics, however, still require a solid ground connection to ensure error-free communication between drivers and receivers.
4.5.1
Local Ground and Protective Earth Is Not Connected If all the power supplies for all the transceivers and related processing circuitry are isolated and have disconnected local ground and PE (Protective Earth), no ground loop exists. Local ground of each transceiver can be connected directly (Figure 26).
18
www.ti.com
VCC1
ZT
ZT
No Ground Loop Local Ground 2 Grounding Network in Factory, Office, House, etc
S0467-01
4.5.2
Local Ground and Protective Earth Is Connected In many cases, local ground and PE are connected by wire, chassis, or leakage for many reasons, such as lowest cost or simplest power supply design. Thus, if a high-voltage potential difference exists between remote grounds, especially during transients, then current flows through the remote ground because a ground loop does exist. If the ground loop has no resistance , then the ground current is large and creates some problems. For this reason, the RS-485 standard recommends adding some resistance between logic and chassis ground to avoid excess ground-loop currents (Figure 27).
L VCC1 VCC2 L
D N Power Supply 1 R ZT ZT
R Power Supply 2 D N
100W
100W
Ground Loop Exists Local Ground 1 Grounding Network in Factory, Office, House, etc Local Ground 2
S0468-01
Figure 27. Grounding Configuration with Connected Local Ground and PE This approach reduces loop current, but the existence of a large ground loop keeps the data link sensitive to noise generated somewhere else along the loop.
19
www.ti.com
The approach to tolerate ground potential differences 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 (Figure 28).
PE2 (Protective Earth 2)
S0469-01
Power Supply 2
VCC2
The Isolated DC/DC Converter and Local Digital Isolator Ground 2 Break the Ground Loop
Digital Isolator
VCCn
Isolated Transceiver
GNDn
VCC1
VCC1
Power Supply 1
Figure 28. Isolated Configuration 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. The non-isolated transceiver on the left provides the single-ground reference for the entire bus.
20 RS-422 and RS-485 Standards Overview and System Configurations
Copyright 20022010, Texas Instruments Incorporated
Local Ground 1
Non-Isolated Transceiver
ZT
VCC2_ISO
ZT
No Ground Loop
www.ti.com
5.1
Daisy-Chain Configuration
One widely used connectivity scheme is called daisy-chaining. In this topology, each station is attached successively as close to the input/output as possible (see Figure 29). The idea is to make the main bus seem like only one transmission line.
ZT
ZT
R
S0470-01
5.2
21
www.ti.com
ZT
ZT
R
S0471-01
5.3
Point-to-Point Configuration
Point-to-point connectivity, in its simplest form of data transmission, is shown in Figure 31.
ZT
ZT
S0472-01
6.1
Common-Mode Range
RS-485-compliant drivers and receivers are specified for operation with a common-mode range of -7 V to 12 V. RS-422-compliant drivers are specified over the range of only 0.25 V to 6 V. RS-422-compliant receivers are specified regarding the 200-mV threshold levels over the common-mode range of -7 V to +7 V, but are specified regarding bus pin leakage over the common-mode range -10 V to +10 V.
22
www.ti.com
Conclusion
6.2
Line Contention
Line contention, as discussed previously, is caused when two or more drivers are turned on at the same time. For example, if driver 1 is driving VA > VB while driver 2 also is turned on and driving VB > VA, a line-contention situation arises. Both RS-422 and RS-485 require driver output current limits that protect against high currents in these situations. However, the data on the bus lines is unreliable during line contention. Thermal shutdown disables the output driver when it senses a high temperature and turns it back on after the device cools. If line contention still is present after the driver is re-enabled, thermal shutdown disables the driver again as soon as the temperature reaches a certain point. The output cycles in and out of thermal shutdown indefinitely until line contention no longer is present. The problem with line contention is exacerbated when the ground potential between the remote grounds is stretched to its maximum limit of 7 V. If driver 2 is connected to the ground that is 7 V lower than the ground for driver 1, a potential close to +12 V can exist on the output of driver 2 (assuming VCC = 5 V). If driver 2 is connected to the ground that is 7 V higher than the ground for driver 1, a potential close to 7 V can exist on the output of driver 2. The RS-485 standard, as noted, limits the current out of the output when a voltage ranging from 7 V to 12 V is applied. Therefore, the standard does require protection against the effects of line contention by limiting the output current.
6.3
Drive Current
Because RS-485 requires two termination resistors, but RS-422 requires only one termination resistor, RS-485 outputs typically are stronger. Furthermore, RS-422 allows driving up to 10 4-k loads (equivalent to 400 ), whereas RS-485 allows driving up to 32 12-k loads (equivalent 375 ). Therefore, with the same output drive strength, a RS-485-compliant driver can handle triple the number of loads. Table 4 summarizes the main differences between RS-422 and RS-485; Table 3 summarizes attributes for each termination technique discussed. Table 4. Summary Comparison of RS-485 and RS-422 Specifications
PARAMETER Number of drivers and receivers Maximum theoretical cable length Maximum data rate Maximum common-mode voltage Driver differential output level Driver load Driver output short-circuit current limit High-impedance state, power off Receiver input resistance Receiver sensitivity
(1)
UNIT m Mbps V V mA k k mV
Conclusion
Although similarities exist between RS-422 and RS-485, board designers must consider distinct differences between devices specified for one standard or the other. This application report has outlined the major differences and provided suggested connection schemes. RS-485-compliant devices can be used in RS-422-compliant systems, but the opposite is not true. TI offers a variety of devices that meet or exceed requirements of RS-422 and RS-485. TI's main competitive advantage is its extensive selection of bipolar and BiCMOS differential devices that are available at competitive prices, allowing the board designer to reduce system costs. For a complete listing of available devices from each standard, data sheets are available on the Internet at http://www.ti.com under interface products.
23
Glossary
www.ti.com
Glossary
BiCMOS bps Line contention Multidrop Multipoint U.L. Bipolar and complementary metal-oxide-semiconductor process Bits per second At least two drivers on the same bus inadvertently enabled simultaneously Multiple receivers driven by a single driver per bus line Multiple transceivers, drivers, or receivers per bus line Unit load
Acknowledgment
Technical assistance was provided by Kevin Gingerich and Frank Dehmelt, both of the TI Advanced Analog Products Group.
10
References
1. Electrical Characteristics of Balanced Voltage Digital Interface Circuits, ANSI/TIA/ EIA-422-B-1994, Telecommunications Industry Association, 1994 2. Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems, ANSI/TIA/EIA-485-A-1998, Telecommunications Industry Association, 1998 3. Application Guidelines for TIA/EIA-485-A, TIA/EIA Telecommunications Systems Bulletin, Telecommunications Industry Association, 1998 4. A Comparison of Differential Termination Techniques, Joe Vo, National Semiconductor, Application Note AN-903 5. Comparing EIA-485 and EIA-422-A Line Drivers and Receivers in Multipoint Applications, John Goldie, National Semiconductor, Application Note AN-759
24
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 DLP Products DSP Clocks and Timers Interface Logic Power Mgmt Microcontrollers RFID amplifier.ti.com dataconverter.ti.com www.dlp.com dsp.ti.com www.ti.com/clocks interface.ti.com logic.ti.com power.ti.com microcontroller.ti.com www.ti-rfid.com Applications Audio Automotive Communications and Telecom Computers and Peripherals Consumer Electronics Energy Industrial Medical Security Space, Avionics & Defense Video and Imaging Wireless www.ti.com/audio www.ti.com/automotive www.ti.com/communications www.ti.com/computers www.ti.com/consumer-apps www.ti.com/energy www.ti.com/industrial www.ti.com/medical www.ti.com/security www.ti.com/space-avionics-defense www.ti.com/video www.ti.com/wireless-apps
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright 2010, Texas Instruments Incorporated