RS485 Data Interface
A good source for technical and standards documentation.
BALANCED DIFFERENTIAL DRIVERS
Balanced Line Drivers
is a specialized interface that would not be considered standard equipment on today's home PC but is very common in the data acquisition world. RS232 is the most common interface used to communicate serially but it has it's limitations.
Standards have been developed to insure compatibility between units provided by different manufacturers, and to allow for reasonable success in transferring data over specified distances and/or data rates. The Electronics Industry Association (EIA) has produced standards for RS485, RS422, RS232, and RS423 that deal with data communications. Suggestions are often made to deal with practical problems that might be encountered in a typical network. EIA standards where previously marked with the prefix "RS" to indicate recommended standard; however, the standards are now generally indicated as "EIA" standards to identify the standards organization. While the standards bring uniformity to data communications, many areas are not specifically covered and remain as "gray areas" for the used to discover (usually during installation) on his own
RS485 will support 32 drivers and 32 receivers (we are
talking about bi-directional - half duplex - multi-drop communications over a single
or dual twisted pair cable !!). An RS-485 network can be connected in a 2 or 4 wire mode.
Maximum cable length can be as much as 4000
feet because of the differential voltage transmission
system used. The typical use for RS485 is a single PC connected to several addressable
devices that share the same cable. You can think of RS485 as a "party-lined"
communications system (the addressing is handled by the Remote Computer unit). The RS232
may be converted to RS485 with a simple interface converter - it can have optical
isolation and surge suppression. Electronic data communications between elements
will generally fall into two broad categories: single-ended and differential.
RS232 (single-ended) was introduced in 1962, and despite rumors for its early
demise, has remained widely used through the industry. The specification allows
for data transmission from one transmitter to one receiver at relatively slow
data rates (up to 20K bits/second) and short distances (up to 50Ft. @ the
maximum data rate).
Independent channels are established for two-way (full-duplex) communications. The RS232 signals are represented by voltage levels with respect to a system common (power / logic ground). The "idle" state (MARK) has the signal level negative with respect to common, and the "active" state (SPACE) has the signal level positive with respect to common. RS232 has numerous handshaking lines (primarily used with modems), and also specifies a communications protocol. In general if you are not connected to a modem the handshaking lines can present a lot of problems if not disabled in software or accounted for in the hardware (loop-back or pulled-up). RTS (Request to send) does have some utility in certain applications. RS423 is another single ended specification with enhanced operation over RS232; however, it has not been widely used in the industry.
RS232 signals are represented by voltage levels with respect to system common (power ground). This type of signal works well in point to point communications at low data transmission rates. RS232 ports on the PC are assigned to a single device. COM1 could be the mouse port and COM2 used for a modem. This is a example of point to point (one port communicates with one device). RS232 signals require a common ground between the PC and the associated device. Wiring distances should be limited to one or two hundred feet on async. data and about 50 feet with sync. data (that may be pushing things in some cases). Synchronous data has a transmit and receive clock that limits the max distance you can go on a sync. data line
In short, the RS232 port was designed to communicate with local devices, and will support one driver and one receiver.
When communicating at high data rates, or over
long distances in real world environments, single-ended methods are often
inadequate. Differential data transmission (balanced differential signal) offers
superior performance in most applications. Differential signals can help nullify
the effects of ground shifts and induced noise signals that can appear as common
mode voltages on a network.
RS422 (differential) was designed for greater distances and higher Baud rates than RS232. In its simplest form, a pair of converters from RS232 to RS422 (and back again) can be used to form an "RS232 extension cord." Data rates of up to 100K bits / second and distances up to 4000 Ft. can be accommodated with RS422. RS422 is also specified for multi-drop (party-line) applications where only one driver is connected to, and transmits on, a "bus" of up to 10 receivers.
While a multi-drop "type" application has many desirable advantages, RS422 devices cannot be used to construct a truly multi-point network. A true multi-point network consists of multiple drivers and receivers connected on a single bus, where any node can transmit or receive data.
"Quasi" multi-drop networks (4-wire) are often constructed using RS422 devices. These networks are often used in a half-duplex mode, where a single master in a system sends a command to one of several "slave" devices on a network. Typically one device (node) is addressed by the host computer and a response is received from that device. Systems of this type (4-wire, half-duplex) are often constructed to avoid "data collision" (bus contention) problems on a multi-drop network (more about solving this problem on a two-wire network in a moment).
RS485 meets the requirements for a truly multi-point communications network, and the standard specifies up to 32 drivers and 32 receivers on a single (2-wire) bus. With the introduction of "automatic" repeaters and high-impedance drivers / receivers this "limitation" can be extended to hundreds (or even thousands) of nodes on a network. RS485 extends the common mode range for both drivers and receivers in the "tri-state" mode and with power off. Also, RS485 drivers are able to withstand "data collisions" (bus contention) problems and bus fault conditions.
To solve the "data collision" problem often present in multi-drop networks hardware units (converters, repeaters, micro-processor controls) can be constructed to remain in a receive mode until they are ready to transmit data. Single master systems (many other communications schemes are available) offer a straight forward and simple means of avoiding "data collisions" in a typical 2-wire, half-duplex, multi-drop system. The master initiates a communications request to a "slave node" by addressing that unit. The hardware detects the start-bit of the transmission and automatically enables (on the fly) the RS485 transmitter. Once a character is sent the hardware reverts back into a receive mode in about 1-2 microseconds (at least with R.E. Smith converters, repeaters, and remote I/O boards).
Any number of characters can be sent, and the transmitter will automatically re-trigger with each new character (or in many cases a "bit-oriented" timing scheme is used in conjunction with network biasing for fully automatic operation, including any Baud rate and/or any communications specification, eg. 9600,N,8,1). Once a "slave" unit is addressed it is able to respond immediately because of the fast transmitter turn-off time of the automatic device. It is NOT necessary to introduce long delays in a network to avoid "data collisions." Because delays are NOT required, networks can be constructed, that will utilize the data communications bandwidth with up to 100% through put.
|Mode of Operation||DIFFERENTIAL|
|Total Number of Drivers and Receivers on One Line||1 DRIVER
|Maximum Cable Length||4000 FT.|
|Maximum Data Rate||10Mb/s|
|Maximum Driver Output Voltage||-7V to +12V|
|Driver Output Signal Level (Loaded Min.)||Loaded||+/-1.5V|
|Driver Output Signal Level (Unloaded Max)||Unloaded||+/-6V|
|Driver Load Impedance (Ohms)||54|
|Max. Driver Current in High Z State||Power On||+/-100uA|
|Max. Driver Current in High Z State||Power Off||+/-100uA|
|Slew Rate (Max.)||N/A|
|Receiver Input Voltage Range||-7V to +12V|
|Receiver Input Sensitivity||+/-200mV|
|Receiver Input Resistance (Ohms)||>=12k|
SELECTION OF TRANSMISSION LINE
When choosing a transmission line for RS-485, it is necessary to examine the required distance of the cable and the data rate of the system. Losses in a transmission line are a combination of ac losses (skin effect), dc conductor loss, leakage, and ac losses in the dielectric. In high quality cable, the conductor losses and the dielectric losses are on the same order of magnitude.
Beyond the obvious traits such as number of conductors and wire gauge, cable specifications include a handful of less intuitive terms.
Characteristic Impedance (Ohms): A value based on the inherent conductance, resistance, capacitance and inductance of a cable that represents the impedance of an infinitely long cable. When the cable is cut to any length and terminated with this Characteristic Impedance, measurements of the cable will be identical to values obtained from the infinite length cable. That is to say that the termination of the cable with this impedance gives the cable the appearance of being infinite length, allowing no reflections of the transmitted signal. If termination is required in a system, the termination impedance value should match the Characteristic Impedance of the cable.
Shunt Capacitance (pFft): The amount of equivalent capacitive load of the cable, typically listed in a per foot basis. One of the factors limiting total cable length is the capacitive load. Systems with long lengths benefit from using low capacitance cable.
Propagation velocity (% of c): The speed at which an electrical signal travels in the cable. The value given typically must be multiplied by the speed of light (c) to obtain units of meters per second. For example, a cable that lists a propagation velocity of 78% gives a velocity of 0.78 X 300 X 10' - 234 X 106 meters per second.
Plenum rated cable is fire resistant and less toxic when burning than non-plenum rated cable. Check
building and fire codes for requirements. Plenum cable is generally more expensive due to the sheathing
The RS-422 specification recommends 24AWG twisted pair cable with a shunt capacitance of 16 pF per foot and 100 ohm characteristic impedance. While the RS-485 specification does not specify cabling, these recommendations should be used for RS-485 systems as well.
It can be difficult to quantify whether shielding is required in a particular system or not, until problems arise. We recommend erring on the safe side and using shielded cable. Shielded cable is only slightly more expensive than unshielded.
There are many cables available meeting the recommendations of RS-422 and RS-485, made specifically for that application. Another choice is the same cable commonly used in the twisted pair Ethernet cabling. This cable, commonly referred to as Category 5 cable, is defined by the EIA/TIA/ANSI 568 specification. The extremely high volume of Category 5 cable used makes it widely available and very inexpensive, often less than half the price of specialty RS422/485 cabling. The cable has a maximum capacitance of 17 pF/ft (14.5 pF typical) and characteristic impedance of 100 ohms.
Category 5 cable is available as shielded twisted pair (STP) as well as unshielded twisted pair (UTP) and generally exceeds the recommendations for RS-422 making it an excellent choice for RS-422 and RS-485 systems.
jump to ... Home
jump to converters, jump to more technical information pages