Inter-Operation of Interface Standards

Similar documents
DS7833 DS8833 DS7835 DS8835 Quad TRI-STATE Bus Transceivers

DM7411 Triple 3-Input AND Gate

The Practical Limits of RS-485

DS DS Series Dual Peripheral Drivers

LM1815 Adaptive Variable Reluctance Sensor Amplifier

DS8922 DS8922A DS8923 DS8923A TRI-STATE RS-422 Dual Differential Line Driver and Receiver Pairs

Comparing the High Speed Comparators

LM392 LM2924 Low Power Operational Amplifier Voltage Comparator

DS1489 DS1489A Quad Line Receiver

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

LM1044 Analog Video Switch

DS3680 Quad Negative Voltage Relay Driver

DM54LS86 DM74LS86 Quad 2-Input Exclusive-OR Gates

LM4005 LM4005C150 MHz Video Line Driver

DS36C278 Low Power Multipoint EIA-RS-485 Transceiver

LM MHz Video Amplifier System

LM18298 Dual Full-Bridge Driver

MM Stage Oscillator Divider

MM54C932 MM74C932 Phase Comparator

DM74ALS373 Octal D-Type TRI-STATE Transparent Latch

Features. Y High input impedance 400 kx. Y Low output impedance 6X. Y High power efficiency. Y Low harmonic distortion. Y DC to 30 MHz bandwidth

DS75365 Quad TTL-to-MOS Driver

LF111 LF211 LF311 Voltage Comparators

DS7880 DS8880 High Voltage 7-Segment Decoder Driver

LM102 LM302 Voltage Followers

A Digital Multimeter Using the ADD3501

54LS125A DM54LS125A DM74LS125A Quad TRI-STATE Buffers

LM107 LM207 LM307 Operational Amplifiers

LM9044 Lambda Sensor Interface Amplifier

LM125 Precision Dual Tracking Regulator

LF451 Wide-Bandwidth JFET-Input Operational Amplifier

LM119 LM219 LM319 High Speed Dual Comparator

A Simplified Test Set for Op Amp Characterization

54LS30 DM54LS30 DM74LS30 8-Input NAND Gate

DS MHz Two Phase MOS Clock Driver

LM109 LM309 5-Volt Regulator

DS2003 DS9667 DS2004 High Current Voltage Darlington Drivers

DM74LS221 Dual Non-Retriggerable One-Shot with Clear and Complementary Outputs

LF453 Wide-Bandwidth Dual JFET-Input Operational Amplifiers

DS75160A DS75161A DS75162A IEEE-488 GPIB Transceivers

LM2240 Programmable Timer Counter

LM3303 LM3403 Quad Operational Amplifiers

LM107 LM207 LM307 Operational Amplifiers

74VHC4046 CMOS Phase Lock Loop

LM9040 Dual Lambda Sensor Interface Amplifier

LM1951 Solid State 1 Amp Switch

LM110 LM210 LM310 Voltage Follower

LM1042 Fluid Level Detector

LM1801 Battery Operated Power Comparator

LM1391 Phase-Locked Loop

LM4250 Programmable Operational Amplifier

LM383 LM383A 7W Audio Power Amplifier

LM118 LM218 LM318 Operational Amplifiers

LM2405 Monolithic Triple 7 ns CRT Driver

LH0070 Series Precision BCD Buffered Reference LH0071 Series Precision Binary Buffered Reference

LM3146 High Voltage Transistor Array

96LS02 DM96LS02 Dual Retriggerable Resettable Monostable Multivibrator

LM9070 Low-Dropout System Voltage Regulator with Keep-Alive ON OFF Control

LF444 Quad Low Power JFET Input Operational Amplifier

LM194 LM394 Supermatch Pair

LM747 Dual Operational Amplifier

A 40 MHz Programmable Video Op Amp

DM54LS190 DM74LS190 DM54LS191 DM74LS191 Synchronous 4-Bit Up Down Counters with Mode Control

LM723 LM723C Voltage Regulator

LM1203A 150 MHz RGB Video Amplifier System

LH0042 Low Cost FET Op Amp

CD4046BM CD4046BC Micropower Phase-Locked Loop

CD4047BM CD4047BC Low Power Monostable Astable Multivibrator

Circuit Applications of Multiplying CMOS D to A Converters

LM390 1W Battery Operated Audio Power Amplifier

MM5452 MM5453 Liquid Crystal Display Drivers

DS90C032B LVDS Quad CMOS Differential Line Receiver

CMOS Schmitt Trigger A Uniquely Versatile Design Component

DS8908B AM FM Digital Phase-Locked Loop Frequency Synthesizer

TP5089 DTMF (TOUCH-TONE) Generator

LM137 LM337 3-Terminal Adjustable Negative Regulators

LM158 LM258 LM358 LM2904 Low Power Dual Operational Amplifiers

Obsolete. Features Y. Binary address decoding on chip. Dual-In-Line Packages CD4051BM CD4051BC CD4052BM CD4052BC CD4053BM CD4053BC

LM565 LM565C Phase Locked Loop

LM831 Low Voltage Audio Power Amplifier

LM1203 RGB Video Amplifier System

LM2940CT-5.0 LM2940CT-5 1A REGULATOR (RC) Low drop-out voltage regulator

LM W Audio Power Amplifier

BS170 MMBF170 N-Channel Enhancement Mode Field Effect Transistor

CD4016M CD4016C Quad Bilateral Switch

LM Precision Voltage Reference


LM759 LM77000 Power Operational Amplifiers

LM105 LM205 LM305 LM305A LM376 Voltage Regulators

2N7000 2N7002 NDF7000A NDS7002A N-Channel Enhancement Mode Field Effect Transistor

LM123 LM323A LM323 3-Amp 5-Volt Positive Regulator

LM567 LM567C Tone Decoder

REI Datasheet. LM709 Operational Amplifier. Quality Overview. Rochester Electronics Manufactured Components

LM380 Audio Power Amplifier

Low Power Hex TTL-to-ECL Translator

Summary of Well Known Interface Standards

LMC6772 Dual Micropower Rail-To-Rail Input CMOS Comparator with Open Drain Output

LM3045 LM3046 LM3086 Transistor Arrays

LM1112A LM1112B LM1112C Dolby B-Type Noise Reduction Processor

LM185 LM285 LM385 Adjustable Micropower Voltage References

Transcription:

Inter-Operation of Interface Standards INTRODUCTION When communication is required between systems that support different interfaces is required a detailed study of driver output and receiver input characteristics is required to determine if direct electrical inter-operation is possible The results of this study may also conclude that some translation devices are required for inter-operation This may include passive devices or active devices and even perhaps a repeater circuit This application note focuses on the simplest way to gain electrical inter-operation between devices conforming to different Interface standards Compatibility of various protocol and mechanical dimensions of connectors is beyond the scope of this application note but must also be investigated to determine if inter-operation is possible The following cases are covered along with a discussion on important electrical characteristics of standard drivers and receivers Single-ended to Differential RS-232 to RS-422 TTL to RS-422 Differential to Single-ended RS-422 to RS-232 (unipolar) RS-422 to RS-232 (polar) RS-422 to TTL RS-485 to TTL Single-ended to Single-ended TTL to RS-232 RS-232 to TTL Differential to Differential ECL to RS-422 RS-422 to RS-485 DRIVER OUTPUT AND RECEIVER INPUT CHARACTERISTICS Before any connection is made a careful review of the driver output electrical characteristics and the receiver input electrical characteristics should be completed For the driver the following parameters should be reviewed driver output levels (minimum and maximum) and typical driver loading For the receiver the following parameters should be reviewed input thresholds (sensitivity) input voltage range and input resistance Once these parameters have been reviewed a decision upon what intermediate circuitry between the driver and receiver is required if any The following pairs of parameters should be compared to determine if they are directly compatible driver load to receiver input resistance driver output levels to receiver input voltage range and driver output levels to receiver thresholds FIGURE 1 RS-232 to RS-422 National Semiconductor Application Note 972 J Goldie November 1994 CASE ONE SINGLE-ENDED TO DIFFERENTIAL When interfacing a single-ended driver to a differential receiver it is important to establish that the maximum output voltage of the single-ended driver does not exceed the recommended input voltage rating of the differential receiver If it does not then a direct connection is possible from a maximum voltage level point of view If it does a simple resistor voltage divider should be inserted to attenuate the signal down to acceptable levels A second check must be done to make sure that the minimum driver level after the divider network if employed is still greater than the receiver s sensitivity The divider network should be selected such that the total load presented to the driver is that of a single-ended receiver Two examples are provided RS-232 TO RS-422 Depending upon the RS-232 driver that has been specified driver output levels may be as high as g15v and for some RS-422 receivers the maximum input range is specified at g10v For this case a divider network is required A simple 3kXin series with a2kxwill provide the required attenuation and the correct load It attenuates the signal 40% dropping the g15v to g9v on the high side and g5v (driver minimum output level) to g3v (which is greater than the receivers thresholds of g200 mv) In addition the RS-232 driver also sees a5kxload of the divider network as it should If the RS-422 receivers can withstand a g15v input signal the attenuator circuit is not required from a voltage level point perspective but may still be desirable This is due to the fact that many RS-422 (or RS-485) receiver s input impedance is in the range of 18 kx which would cause a faster driver transition time and possibly an EMI and or crosstalk issue Figure 1 illustrates inter-operation between the RS-232 driver with a divider network to a RS-422 differential receiver Note that one receiver input is referenced to ground Depending upon the input referenced to ground a logic NOT may be achieved by tying the a input to ground and connection to the divider network with the b input Historically this divider network has been termed an L-Pad in TlA EIA documents and other international standards TL F 12330 1 Inter-Operation of Interface Standards AN-972 C1996 National Semiconductor Corporation TL F 12330 RRD-B30M36 Printed in U S A http www national com

TTL TO RS-422 Since differential receivers are basically modified comparitors they detect logical states by the difference in potential between their input pins not with respect to circuit ground Due to this fact they can also accept standard TTL or CMOS levels if the other input is appropriately referenced For TTL levels one input should be tied to a1 5V and the resulting thresholds will be a1 7V and a1 3V In other words any levels greater that or equal to a1 7V will be a logic HIGH and any level less than or equal to a1 3V a LOW if the reference voltage was applied to the b input Receivers normally have internal references between a2v and a3v but it is not recommended that you float the reference input and rely on the internal reference due to the following reasons First the internal reference voltage is not normally specified in a datasheet thus tolerances are not guaranteed or supported Secondly the input is a high impedance input and depending upon the environment it may pick up external noise and shift the thresholds around A voltage regulator or a simple resistor divider may be used depending upon the accuracy required If a resistor divider is used remember to take into account the input impedance of the receiver which can be model (1st level) as a resistor to the internal bias voltage These two values may be measured with a curve tracer By sweeping voltage on the reference input the resulting slope of the line (V IN vs I IN )isthe input impedance and the crossing of the X axis is the zero current point or internal reference voltage Note that this test must be done with the receiver powered up to measure the reference voltage Figure 2 illustrates the inter-operation between standard TTL logic and a differential RS-422 receiver CASE TWO DIFFERENTIAL TO SINGLE-ENDED Differential to single-ended poses a more difficult problem to solve Since single-ended receivers RS-232 for example essentially detect positive or negative voltage with respect to ground an active solution is required to gain inter-operation with a single supply differential drivers The following cases are provided as examples RS-422 to RS-232 RS-422 drivers (unipolar) are commonly powered from a single a5v power supply thus both output states are positive voltages (V OL and V OH ) RS-232 receivers as discussed detect positive and negative voltages therefore to obtain inter-operation the circuit illustrated in Figure 3 can be used The PNP transistor is used as a switch that when it is ON the receiver input voltage is basically a V CE(SAT) below the driver s V OH level This is typically greater than a3v and is a valid RS-232 input level When the driver is in the opposite state the PNP is off the receiver input is pulled to ground by its internal input resistor Note RS-232 specifies the receiver thresholds are between b3v and a3v however most receiver support TTL like thresholds centered around a1 5V and guarantee a failsafe HIGH output state for an open input state (pulled low by internal input resistor) In the circuit shown in Figure 3 the resistor (R1) limits the base current and prevents the PNP from entering deep saturation the diode (D1) prevents break down of the emitter base junction when the PNP is off An additional resistor (R2) may be inserted to pull the RS-232 input to a voltage (below b3v) if required but this also requires a negative supply and is typically not necessary Figure 3 illustrates this case of inter-operation FIGURE 2 TTL to RS-422 TL F 12330 2 FIGURE 3 RS-422 to RS-232 with Active Device TL F 12330 3 http www national com 2

However this active circuitry may not be required if the two systems share the same ground reference are located close together are in a relativity noise free environment and the RS-232 receiver provides a TTL threshold This is due to the fact that RS-422 driver output levels are quite similar to standard TTL levels however driver output curves should be consulted to determine that the drivers V OH level will be detected by the RS-232 receiver as a valid V IH and the V OL asav IL respectively These output levels can be determined by superimposing a 5 kxload line over the driver V OH I OH curve If the resulting driver V OH is greater than the receivers V IH then inter-operation is possible Similarly the output low case should be checked RS-422 drivers are voltage mode drivers and both outputs are not required to inter-operate with the single-ended receiver Therefore select the output which provides the desired logic (true or inverting) and leave the other output open Do not tie the unused output to ground as that could yield an output short circuit condition (I OS ) which is undesirable from a power dissipation consideration Figure 4 illustrates the direct connection example RS-422 TO RS-232 RS-422 drivers are also available that are powered from polar (g5v) power supplies If this is the case then once again a direct connection to a RS-232 receiver is possible This is possible since the V OH of the driver is typically between a3v and V CC while the V OL of the driver is between b3v and V EE in both the output levels are greater in magnitude than the RS-232 receivers thresholds Figure 5 illustrates this second case of direct inter-operation RS-422 TO TTL As discussed above RS-422 driver output levels are quite similar to standard TTL levels however driver output curves should be consulted to determine that the drivers V OH level will be detected by the TTL input as a valid V IH and the V OL asav IL respectively In almost all cases a direct connection will be possible RS-422 drivers are voltage mode drivers and both outputs need not be used Simply pick the output (true or inverting) and leave the other output open Do not tie the unused output to ground as that could yield an output short circuit condition (I OS ) which is undesirable from a power dissipation consideration Figure 6 illustrates the inter-operation of a RS-422 driver with a standard TTL input FIGURE 4 RS-422 to RS-232 Direct Connection TL F 12330 4 FIGURE 5 RS-422 to RS-232 TL F 12330 5 FIGURE 6 RS-422 to TTL TL F 12330 6 3 http www national com

RS-485 TO TTL RS-485 driver output levels are NOT similar to standard TTL levels however direct inter-operation may be possible Again driver output curves should be consulted to determine that the drivers V OH level will be detected by the TTL input as a valid V IH and the V OL asav IL respectively Since the RS-485 outputs include blocking diodes the V OH levels are lower than standard TTL levels and the V OL levels are a diode higher than standard levels Once again RS-485 drivers are voltage mode drivers and both outputs need not be used Simply select the desired output (true or inverting) and leave the other output open Do not tie the unused output to ground as that could yield an output short circuit condition (I OS ) which is undesirable from a power dissipation consideration If the driver output levels do not meet the TTL input V IH and V IL specifications a RS-485 receiver should be used to receive the RS-485 levels and correctly translate them to TTL compatible levels Figure 7 illustrates this connection CASE THREE SINGLE-ENDED TO SINGLE-ENDED Single-ended to Single-ended is once again simply comparing output levels to thresholds and input voltage ranges In some cases a direct connection is possible as described in the following examples TTL TO RS-232 TTL output levels can directly inter-operate with certain RS- 232 receivers This is true since most RS-232 receivers support a tighter threshold specification than required by the RS-232 standard The RS-232 standard specifies that the thresholds are between a3v and b3v however most thresholds are centered around a1 5V If this is the case then standard TTL levels (High l 2 0V and Low k 0 8V) will be detected correctly One note of caution is that the TTL gate will be loaded with the 5 kx load instead of a standard TTL input load The TTL gate driving the RS-232 receiver must have adequate drive capability to obtain the correct levels with the RS-232 receiver load This connection is illustrated in Figure 8 RS-232 TO TTL RS-232 output levels are polar and therefore they swing around ground This negative swing typically prevents direct inter-operation to TTL inputs which prefer positive voltages only To clamp off the negative swing a diode may be used to clip the negative swing but will load down the driver when the diode is forward biased This is typically acceptable if the driver employed provides a relatively tight current limit in the range of 10 ma Figure 9 illustrates this inter-operation with a diode clamp FIGURE 7 RS-485 to TTL TL F 12330 7 FIGURE 8 TTL to RS-232 TL F 12330 8 FIGURE 9 RS-232 to TTL TL F 12330 9 http www national com 4

CASE FOUR DIFFERENTIAL TO DIFFERENTIAL As in the other three cases described driver output levels need to be compared to receiver input thresholds and input voltage ranges If they agree then a direct connection is possible If the levels are not compatible then a repeater translator circuit will be required ECL TO RS-422 Differential ECL or even Pseudo ECL (PECL) will typically directly inter-operate with a RS-422 receiver This is possible since a RS-422 receiver provides a tight threshold specification of g200 mv and a wide common mode range of g10v Differential ECL output levels are normally between g500 mv to g800 mv which are detectable by the receiver Since the receiver supports a positive and negative common mode range ECL or PECL signals may be received Figure 10 illustrates a ECL to RS-422 (or RS-485) connection RS-422 TO RS-485 Direct connection of RS-422 to RS-485 is always possible RS-485 can be considered a subset of RS-422 which supports multipoint (multiple drivers) applications RS-422 and RS-485 receivers are virtually identical except for the fact that the RS-485 receiver present a input impedance that is typically 3 times the RS-422 receiver For this reason the RS-422 driver can now drive at least 32 receiver loads opposed to the RS-422 limit of 10 Recall that RS-422 is limited to single driver multiple receiver applications and only RS-485 devices (drivers) should be employed in true multipoint (multiple driver) applications Figure 11 illustrates a RS-422 driver driving up to 32 RS-485 receivers in a multidrop uni-directional application SUMMARY In many cases direct inter-operation is possible between different interface standards In cases where that is not possible typically simple circuitry can be inserted between the two devices to alter or clamp the levels to levels that are compatible with the other device In the extreme case where simple circuitry can not solve the problem a repeater may be used For example if an A driver needs to interoperate with a B receiver a repeater may be inserted between the two that includes a A receiver and a B driver For example this may be desirable for interfacing a RS-422 driver to a ECL differential receiver since most ECL receivers can not accept positive (above ground) input voltages This method should be a solution of last resort due to the added cost of the active devices and the repeater itself The methods described above are preferred as they provide direct or inter-operation with only simple circuitry As a final word of caution always review the respective device specifications to determine if inter-operation is possible before connecting the two together FIGURE 10 ECL to RS-422 TL F 12330 10 FIGURE 11 RS-422 to RS-485 TL F 12330 11 5 http www national com

AN-972 Inter-Operation of Interface Standards Table I lists key generic electrical characteristics of common interface standards TABLE I Electrical Characteristics Comparison of Common Interface Standards Parameter RS-232 RS-422 RS-423 RS-485 Maximum Driver Output Level g25v No Load g10v No Load g6v No Load g6v No Load g15v7kxload g6v Diff g6v Diff Minimum Driver Output Level g5v g2v g3 6V g1 5V 3kXLoad 100X Load 450X Load 54X Load Standard Driver Load 3 kx 7 kx 100X l4kxtypical 54X 5kXTypical 450X Minimum Receiver Input Voltage Range g15v g10v g10v g10v Receiver Thresholds g3v g0 2V g0 2V g0 2V a1 5V Typical Receiver Input Impedance 3 kx 7 kx t4kx t4kx El12 kx 5kXTypical MODE Single Ended Differential Single Ended Differential REFERENCES EIA TIA Standard EIA TIA-232-E Interface Between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data interchange EIA TlA Washington D C TIA EIA Standard TIA EIA-422-B Electrical Characteristics of Balanced Voltage Digital Interface Circuits TIA Washington D C TlA EIA Standard TIA ElA-423-B Electrical Characteristics of Unbalanced Voltage Digital Interface Circuits TIA Washington D C LIFE SUPPORT POLICY EIA Standard EIA RS-485 Standard for Electrical Characteristics of Generators and Receivers for use in a Balanced Digital Multipoint Systems EIA Washington D C Application Note 216 Summary of Well Known Interface Standards Interface Databook National Semiconductor Santa Clara CA Application Note 759 Comparing EIA-485 and EIA-422-A Line Drivers and receivers in Multipoint Applications Interface Databook National Semiconductor Santa Clara CA NATIONAL S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF NATIONAL SEMICONDUCTOR CORPORATION As used herein 1 Life support devices or systems are devices or 2 A critical component is any component of a life systems which (a) are intended for surgical implant support device or system whose failure to perform can into the body or (b) support or sustain life and whose be reasonably expected to cause the failure of the life failure to perform when properly used in accordance support device or system or to affect its safety or with instructions for use provided in the labeling can effectiveness be reasonably expected to result in a significant injury to the user National Semiconductor National Semiconductor National Semiconductor National Semiconductor Corporation Europe Hong Kong Ltd Japan Ltd 1111 West Bardin Road Fax a49 (0) 180-530 85 86 13th Floor Straight Block Tel 81-043-299-2308 Arlington TX 76017 Email europe support nsc com Ocean Centre 5 Canton Rd Fax 81-043-299-2408 Tel 1(800) 272-9959 Deutsch Tel a49 (0) 180-530 85 85 Tsimshatsui Kowloon Fax 1(800) 737-7018 English Tel a49 (0) 180-532 78 32 Hong Kong Fran ais Tel a49 (0) 180-532 93 58 Tel (852) 2737-1600 http www national com Italiano Tel a49 (0) 180-534 16 80 Fax (852) 2736-9960 National does not assume any responsibility for use of any circuitry described no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications