iCoupler® Digital Isolators Protect RS-232, RS-485, and CAN Buses in Industrial, Instrumentation, and Computer Applications
By Scott Wayne, (email@example.com)
Currents that are inductively coupled into the long cables found in industrial environments by motors switching on and off, electrostatic discharge (ESD), or nearby lightning strikes can cause rapid changes in ground potential, often as large as hundreds, or thousands, of volts. When this occurs, the logic-level switching signal expected by the remote system would be superimposed on a high voltage with respect to its local ground. Without isolation, this voltage could corrupt the signal or damage the system. Referring all devices connected to the bus to a single ground will protect the system against this destructive energy, and isolating the devices will prevent ground loops and electrical surges.
To completely isolate the system, all signal lines and power supplies must be isolated. An isolated dc-to-dc converter can provide power supply isolation, while the iCoupler digital isolator provides the signal isolation.
Circuitry on the primary side of the transformer encodes the input logic transitions into 1-ns pulses, which are then coupled through the transformer; circuitry on the secondary side detects them and recreates the input signal, as shown in Figure 3. A refresh circuit on the input side ensures that the output state matches the input state even if no input transitions are present. This is important in power-up situations and for input waveforms with low data rates or constant dc inputs.
Figure 3. The digital input is recreated at the output of the iCoupler.
Because the purpose of iCoupler products is to isolate an input from an output, the circuitry on one side of the transformers must be contained on a separate chip from the circuitry on the second side of the transformers. The transformers themselves can be placed on either chip—or on a third chip, as in the ADuM140x shown in Figure 4. The entire chipset is assembled within a standard plastic package similar to that used for a wide variety of semiconductor devices.
A novel feature of iCoupler devices is their ability to combine both transmit and receive channels in the same package. The iCoupler transformers are inherently bidirectional, so signals can pass in either direction as long as the appropriate circuitry is present on each side of the transformers. In this manner, multichannel isolators are offered with a variety of transmit/receive channel configurations.
Serial Communication Buses
RS-232: The RS-232 bus standard, one of the most popular serial communication buses, was originally specified in 1962 for communication between computers and modems. Still widely used as an intersystem communication link, its simplicity, flexibility, and long history of successful use account for its continued popularity. Designed for point-to-point communications, it provides full-duplex communication using two dedicated, unbalanced single-ended lines with ground-referred signals.
Data rates are limited to 20 kbps, or 64 kbps in a low-voltage variation. The maximum practical cable length is limited to about 16 meters by the 2500-pF maximum load capacitance and the 3-kohm to 7-kohm load impedance. RS-232 specifies driver output levels of –5 V to –15 V for Logic 1 and +5 V to +15 V for Logic 0—and receiver input levels of –3 V to –15 V for Logic 1 and +3 V to +15 V for Logic 0. Voltages between –3 V and +3 V are undefined. The wide voltage swing and undefined region ensures a high level of noise immunity and allows valid signal levels to be received over lengthy cables.
The RS-232 specification defines the pinout for a 25-pin D connector with 20 signal lines, but the 9-pin connector with eight signal lines, shown in Figure 5, is more common. One line in each direction is used for data transmission; the remaining lines are designated for the communications protocol. At its simplest, RS-232 can be implemented with just three lines: Tx (transmit data), Rx (receive data), and GND (ground). A protective ground, used for equipment safety, is defined in the 25-pin connector. This line, typically connected to the power ground or chassis ground, should not be connected to the signal ground or from system to system.
Figure 5. 8-signal RS-232 network configuration.
The RS-232 standard divides equipment into two categories: DCE (data communications equipment) and DTE (data terminal equipment). These designations are a legacy of their computer and modem heritage; the terms now simply define which lines are connected as inputs and which are connected as outputs.
RS-232 is typically used to connect multiple systems, so isolation between each system and the bus is critical. Digital isolators do not support the RS-232 standard, so they cannot be used between the transceiver and the cable; instead they are used between the transceiver and the local system. The system side of the transceiver typically connects to a universal asynchronous receiver/transmitter (UART) or a processor, using 0 V to 3 V or 0 V to 5 V logic levels. Because the input and output circuits of the iCoupler isolator are electrically isolated from each other, one can be placed between the UART and transceiver as a simple way of isolating the system from the cable. To complete the isolation, an isolated dc-to-dc converter is used to supply power to the isolator and transceiver. The combination of the ADuM1402 iCoupler digital isolator, ADM232L RS-232 transceiver, and isolated power supply, shown in Figure 6, eliminates ground loops and provides effective protection against surge damage.
Figure 6. 5-signal isolated RS-232 circuit (DTE side illustrated).
RS-485: The RS-485 standard is specified to drive up
to 32 pairs of drivers and receivers. Its versatility and
ability to drive 4000-meter cables make it popular for
a wide range of applications,
especially for interconnecting systems over very long distances.
The Small Computer Systems Interface (SCSI) and PROFIBUS
Usable cable lengths are dependent upon data speed requirements, with speed/length combinations ranging from 200 kbps at 1200 meters to 12 Mbps at 100 meters. Using balanced differential signaling, RS-485 drivers send data across two output lines. The receiver determines the logic state by comparing the two signals; a difference greater than 200 mV provides a valid logic level. Differential amplifiers in the drivers and receivers steer current between the signal lines. This provides a high level of noise immunity in comparison with single-ended schemes such as RS-232.
An enable function allows the drivers to be put into a high-impedance state; so multiple drivers can share a single bus without contention. The software protocol defines the bus arbitration procedure, keeping all but one driver inactive at all times and allowing line-sharing by up to 32 drivers. A half-duplex, 2-wire bidirectional configuration is shown in Figure 7. Each node contains a driver and receiver, with all drivers and receivers sharing the same 2-wire twisted-pair cable. While this simplifies installation and reduces cost, it limits the maximum throughput rate. A 4-wire full-duplex configuration—using one node as a master and the remaining nodes as slaves—is more complex but provides higher data rates.
Figure 7. 2-wire, multidrop, half-duplex RS-485 network.
Because RS-485 is typically used to connect multiple systems, isolation between each system and the bus is critical. As with RS-232, digital isolators do not support the RS-485 standard, so they cannot be used between the transceiver and the cable; instead they are used between the transceiver and the local system. The system side of the transceiver typically connects to the local bus or a processor. Since the input and output circuits of the iCoupler isolator are electrically isolated from each other, interposing one between the processor and transceiver is a simple way of isolating the system from the cable. To complete the isolation, an isolated dc-to-dc converter is used to supply power to the isolator and transceiver. The combination of ADuM1301 iCoupler digital isolator and isolated power supply shown in Figure 8 eliminates ground loops and provides effective protection against surge damage.
Figure 8. Isolated RS-485 circuit.
Figure 9 shows the ADM2486 single-chip isolated RS-485 transceiver.
Figure 9. ADM2486 isolated RS-485 transceiver.
CAN Bus: The CAN bus standard, originally developed for automotive applications, specifies a 2-wire serial communications protocol that allows data rates up to 1 Mbps, with up to 30 nodes and a 40-meter maximum cable length. It transmits asynchronous data in frames that consist of start and stop bits, an arbitration field, a control field, a cyclic redundancy check (CRC) field, and an acknowledge field. Every node can listen and transmit at the same time, so one of the most important features of the protocol is its nondestructive bit arbitration, which ensures that no data is lost. Each node transmits a dominant start of message (SOM) bit at the beginning of each message. Other nodes will see this activity and will not attempt to start a transmission until the message is complete. Next, the 11-bit or 29-bit arbitration field is transmitted. Also known as the identifier, this field prioritizes the messages sent on the bus. The highest priority node always takes control of the bus, leaving lower-priority nodes to wait. This nondestructive arbitration ensures that the highest priority message always gets through.
The CAN bus, shown in Figure 10, uses a balanced, 2-wire differential interface and typically operates at 3 V or 5 V. Non-return-to-zero (NRZ) encoding is used, ensuring compact messages with a minimum number of transitions and high noise immunity. CAN bus transceivers use a pair of open-drain devices to create a differential signal of CANH (VCC – 0.9 V) to CANL (1.5 V). When driven, the transmitter produces the dominant signal, which represents a logic low. When no transmitter is driven, pull-up resistors set the bus to VCC/2, producing the recessive signal, which represents a logic high. A standby control puts the transceiver into a low-power mode. A low-power receiver remains active during standby mode, monitoring the bus for state changes—and signaling the controller to activate the local node when activity is detected.
Figure 10. CAN bus network.
As with RS-232 and RS-485, digital isolators do not support the CAN bus standard, so they cannot be used between the transceiver and the cable; instead they are used between the transceiver and the local CAN controller using standard 3-V or 5-V logic levels. Because the input and output circuits of the iCoupler isolator are electrically isolated from each other, a simple way of isolating the system from the cable is to interpose one between the processor and transceiver. To complete the isolation, an isolated dc-to-dc converter is used to supply power to the isolator and transceiver. The combination of iCoupler digital isolators and an isolated power supply, shown in Figure 11, eliminates ground loops and provides effective protection against surge damage.
Figure 11. Isolated CAN bus network.
More About iCouplers
FOR FURTHER READING
iCoupler Isolation in RS-232 Applications.
Copyright 1995- Analog Devices, Inc. All rights reserved.