This article explains how ground loops occur and discusses how galvanic isolation has been used to eliminate them.
Transmitting data over long distances is fraught with potential problems. A ground loop can be a source of interference that can induce a noise voltage between the grounds on either end of the transmission. If this voltage is large enough, it can cause data errors at the receiver. This article will explain how ground loops occur and discuss how galvanic isolation has been used to eliminate them. Ground loops are discussed in the context of USB throughout this article, but other interfaces, such as RS-232, RS-485, and CAN, are also susceptible to ground loops (see AN-375, AN-740, AN-770). Though this discussion focuses on breaking ground loops as a motivation for isolating these interfaces, there are other important considerations, such as operator safety and the protection of electronics that necessitate isolation. These are covered in greater detail in Ott, AN-375, AN-740, AN-770, and AN-727 (see the References section).
Ground loops are, as their name suggests a physical loop in a system’s grounding scheme resulting from multiple ground paths between circuits. These ground paths can act as a large loop antenna that causes noise to be picked up from the environment, inducing currents in the grounding system. The 50 Hz/60 Hz magnetic field from ac power is a common source of the noise that ground loops pick up. Analogously, a distributed grounding system can also allow ground voltage noise from sources at one location to cause ground currents to flow in the ground loop. Since grounds are low impedance, the noise currents are often large. Hundreds of millivolts of noise can cause amps of current to flow through the ground loop.
Figure 1 shows an example of how ground loop interference can occur in a generic data transmission path. Device #1 drives a single-ended signal that Device #2 receives. The signal line is grounded at either device. For example, the ground connection could be the shield of a coaxial cable. There is a second low impedance path connection between the devices’ grounds through the safety grounds of their power supplies. These two ground connections create a large loop, which picks up a noise voltage from the magnetic field of a nearby interferer. This interference degrades the signal that is seen by Device #2 and hinders the transmission.
While designers should be careful to avoid loops by using a single grounding location, some interfaces require ground connections between their transceivers. This ground connection needs to be broken while maintaining the flow of information from the transmitter to the receiver. In other words, the two devices need to be galvanically isolated.
One possible method of breaking the ground loop is using an optocoupler, as illustrated in Figure 2. Device #1 drives the optocoupler’s LED, which excites a current in a phototransistor. The ground connection through the cable is removed, which prevents noise currents from flowing between Device #1 and Device #2 and information is transferred in the form of light.
This approach has limitations as the performance and complexity of the interface increase. Optically isolating interfaces can become complex, expensive and require a significant amount of board space. Optocouplers’ have significant propagation delays making them only useful for low-speed signals. Power dissipation in the LED and pull-up resistor can become significant as multiple optocouplers are used. Digital isolation technology can be used to break ground loops without compromising the interface’s performance, and relatively few components in simple application circuits. Digital isolators are non-optical isolators, which use CMOS interface ICs to transfer information through capacitive or magnetic coupling (Ott).
Connecting two ac powered devices with a USB cable can cause a ground loop that disrupts communications through the bus. USB communication occurs over a single bidirectional differential pair (the D+ and D− signals in Figure 3). A host device controls the bus and communicates with a peripheral. The directionality of data packets is established through the USB protocol, not by control signals. The host device provides power and ground to the peripheral device. This ground connection in a USB cable and the safety grounds of the host and peripheral forms a ground loop which can cause the peripheral’s ground potential to move relative to the host’s and result in unreliable communication (see AN-375, AN-727].
Isolating a USB port to eliminate the cable ground connection is inherently difficult because there are no control signals to indicate whether data is being transmitted downstream (to the peripheral) or upstream (to the host). Without access to the internal signals of the serial interface engine (SIE) controlling the bus, the only way to determine the data’s directionality is through the bus transactions. The SIE’s signals may not be available because the SIE is often integrated into processors.
There are several possible approaches to isolating USB. For example, the challenges of isolating D+ and D− can be avoided by using an external SIE that is controlled by a serial interface with unidirectional signals, such as SPI. SPI is unidirectional, so it is more easily isolated. Figure 4 illustrates this approach. The propagation delay of optocouplers would severely limit the speed of the isolated SPI, so a quad channel digital isolator is used. The external USB controller transmits data from its buffers, which are filled through the SPI interface. Although, the external SIE will transmit data at the fastest peripheral’s fastest possible data rate, the effective data rate of the bus is limited by the controller’s ability to keep the SIE’s buffers full. The propagation delay of the digital isolator may be a bottleneck in this case. This approach is costly in terms of board space because of the external SIE and can require modifications to the peripheral’s drivers.
A simpler approach is to directly isolate the D+ and D− lines with an ADuM3160 single-chip USB isolator, as shown in Figure 5. This digital isolator requires no modifications of either the host or peripheral’s drivers. Its internal logic determines the directionality of D+ and D− by the USB protocol and activates and deactivates drivers accordingly. A 2.5kV isolation barrier splits the ground connection through the USB cable that would cause a ground loop otherwise (Cantrell).
A simple hardware simulation of a ground loop was designed to illustrate the risks of ground loops in wired communication and the effectiveness of galvanic isolation at breaking ground loops. The test setup created a ground loop with connections through the USB cable and power supplies of a USB hub and a peripheral, which were controlled by a laptop. This setup coupled a 60 Hz signal derived from the ac power line to the ground line with a transformer. This was analogous to the magnetic field from power lines inducing noise in a ground loop, since it relied on the same noise source. A variable series resistance made the current through the ground loop adjustable. The voltage from the hub’s ground to the peripheral’s ground was observed and the current through the ground loop was increased until it disrupted communications to the hub. Two different peripheral devices consistently lost communication with the hub and laptop when their ground rose to over 1 V rms above the hub’s ground due to the simulated ground loop current. Isolating the hub’s port with an ADuM3160 USB isolator the ground connection through the USB cable and prevented the transformer-coupled current from flowing. This effectively restored communication between the PC and either peripheral and illustrates how digital isolation can be employed to prevent ground loops.
In summary, ground loops can be problematic in wired communications. Multiple ground connections between devices create a loop, which can pick up interference from nearby ac magnetic fields. Additionally, if there is a difference in ground potential, which can be the case over long distances, it will contribute to the ground loop noise current. Either of these can cause data errors. USB is an example of an interface that can suffer from ground-loop interference and is not easily isolated using discrete digital isolators. A hardware simulation of a ground loop provided a real-world example of how ground loops can affect a USB interface, and how a USB isolator, the ADuM3160, remedied the situation. Other interfaces besides USB can also experience problems from ground loops. Resources on how to isolate these interfaces and more information on digital isolation can be found at www.analog.com/iCoupler.