Electronicdesign 6762 Tomkugelstadt 595x335
Electronicdesign 6762 Tomkugelstadt 595x335
Electronicdesign 6762 Tomkugelstadt 595x335
Electronicdesign 6762 Tomkugelstadt 595x335
Electronicdesign 6762 Tomkugelstadt 595x335

Even Cheapskates Need Reliable I2C Isolation!

Jan. 7, 2014
The discrete I2C isolator is among the most often considered isolators. This most stubborn, hard-to-die design continues to fascinate many engineers due to its simplicity. Circuit performance, however, changes with variations in temperature and supply, making re-designs inevitable. 

Modern interface isolators integrate interface transceivers with an internal isolation barrier. Older designs, prior to this integration, use separate, standalone isolators in combination with standard interface transceivers to accomplish the same interface isolation. Surprisingly, these legacy designs still offer a significant cost advantage over their integrated counterparts.

Related Articles

The discrete I2C isolator is among the most often considered isolators. This most stubborn, hard-to-die design continues to fascinate many engineers due to its simplicity. Circuit performance, however, changes with variations in temperature and supply, making re-designs inevitable. Still, this effort can be avoided when using an integrated version.

I2C Bus Operation

The I2C or inter-integrated circuit bus is a multi-master bus with two bidirectional signal lines: one for clock (SCL), the other for data (SDA). Bus access is via open-drain outputs (Fig. 1). Both signal lines connect to the bus supply via pull-up resistors. When a node accesses the bus, its open-drain output pulls the signal line to ground potential. This is considered a logic zero. When the same output is high-impedance, the signal line is pulled up to the potential of the bus supply. This is considered a logic one.

1. The I2C bus uses bidirectional, open-drain signal lines for clock and data. The signal lines connect to VBUS via pull-up resistors. Pulling a line to ground potential is considered a logic zero. Otherwise, it’s a logic one.

Four different speed modes exist: standard mode (100 kbits/s), fast mode (400 kbits/s), fast mode plus (1 Mbit/s), and high-speed mode (3.4 Mbits/s).

I2C specifies two roles for bus nodes. A master node always provides the clock signal and the slave addresses. It also initiates and ends data transfers. A slave node always receives the clock and the addresses from the master and responds to master requests (Fig. 2). If a slave is not ready to respond, it pulls down the SCL line to force the master to wait until the line is released (high) again.

2. The master initiates a start condition, sends the slave address, and indicates whether it wants to read from or to write to a slave. The slave acknowledges the master request and either receives or transmits data.

Signal transitions from one logic state to another during a transfer occur when SCL is low. Transitions at the start or end of a transfer occur while SCL is high. While I2C can be used over a wide voltage range, the most commonly used supply levels are 3.3 V and 5 V.

Isolated I2C Bus

I2C buses using separate power supplies for master and slave nodes commonly apply signal isolators between the master node and the slave nodes to prevent the creation of unintentional ground loops (Fig. 3). Using a single ground connection could prove fatal, as this shortens different ground potentials. The resulting ground loop currents can deteriorate the signal integrity of the clock and data signals and even damage bus node circuits.

3. In an isolated I2C bus, the master node is isolated from a group of slave nodes. While the lower bus capacitance on the master side requires higher pull-up resistor values, the higher bus capacitance on the slave side needs lower resistor values to ensure equal transition times on both sides.

Integrated I2C isolator

To isolate a bidirectional signal path with unidirectional isolators, an integrated I2C isolator internally splits a bidirectional line into two unidirectional signal lines, each of which is isolated via a single isolation barrier (Fig. 4). Each channel has an open-drain output. Side one of the isolator connects to a low-capacitance I2C master node, typically the bus controller. Side two is designed for connecting to a fully loaded I2C bus with up to 400 pF of bus capacitance.

4. The integrated I2C isolator generates a higher low-level output of VOL* = 0.8 V at output B than the output low-level of VOL = 0.4 V created by a signal source at SDA1. This difference enables comparator C to distinguish between the low levels initiated by SDA2 or SDA1.

To prevent the internal signal loop from latching up, the loop is broken at the output of buffer B, whose output low-level (VOL*) of 0.8 V is higher than the 0.4-V output low-level (VOL) of the master node at SDA1. Comparator C has upper and lower input voltage thresholds that distinguish between the 0.4-V low-potential driven by SDA1 and the raised 0.8-V output low-level from B.

Thus, comparator C allows low-level voltages from SDA1 to pass through to SDA2. In the opposite direction, however, it blocks low-level signals created at SDA2 from returning to SDA2, which prevents device latch-up.

Discrete Or Cheapskate Solution

In a discrete I2C isolator, a single transistor performs the comparator function (Fig. 5). While the base terminal assumes the function of the comparator’s reference input, the emitter is the comparator’s signal input SDA1 and the collector is the comparator output.

5. When the MCU pulls SDA1 low, two equal currents, IPUa and IE, flow into the MCU’s output stage creating a VOL1 of 0.4 V.

Take an I2C isolator operating from a 5-V supply and supporting data rates of up to 200 kbits/s. In transmit direction from SDA1 to SDA2, the MCU starts a communication by pulling SDA1 low. Two currents, IPUa through pull-up resistor RPU1 and emitter current IE from transistor Q1, flow together into the open drain of the MCU’s SDA output, creating the low-level output voltage, VOL1.

The current through the pull-up resistor is calculated with:

IPUa = VCC1 – VOL1/RPU1

Limiting the current in the SDA1 line to 1 mA ensures low VOL levels of approximately 100 mV in the output stages of the MCU’s I/O and the isolator IC. Assuming a VOL1 of 0.1 V, a supply of VCC1 = 5 V, and a pull-up resistor of RPU1 = 10 kΩ, IPUa = 490 μA. Letting an equal current flow through Q1 requires a collector resistor of:

RC = VCC1 – VCE–sat – VOL1/IC

With IC ~ IE ~ IPUa, and a saturation voltage of VCE-sat = 0.1 V, the collector resistor RC = 10 kΩ.

A switching transistor chooses a transistor with a minimum forward current gain of ≥ 100. To ensure transistor saturation, the base current should be IB = 50 μA for a collector current of IC = 500 μA. The bias current, IB2, should be approximately 10 times the base current, making IB2 = 500 μA and IB1 = IB2 + IB = 550 μA.

To turn T1 fully on, its base potential must be larger than the maximum base-emitter voltage, plus the low-level output voltage at SDA1:

VB = VBE–MAX + VOL

For T1, VBE-max is given with 850 mV, yielding a base potential of:

VB = 0.85 V + 0.1 V = 0.95 V

At low currents, the forward voltage of a Schottky diode is assumed with VF = 0.3 V. The value of bias resistor RB2 is given with:

RB2 = (VB – VF)/IB2 = (0.95 V – 0.3 V)/500 µA = 1.3 kΩ

Then the upper bias resistor, RB1, can be calculated via:

RB1 = (VCC1 – VB)/IB1 = (5 V – 0.95 V)/550 µA = 7.36 kΩ

Choose the closest resistor from the E-96 series with RB1 = 7.32 kΩ.

In the receive direction, from SDA2 to SDA1, communication starts when the I2C bus is pulled low at SDA2 and the isolator output, OUTC, turns low.

First, the isolator’s push-pull output must be converted into an open-drain output via diode D1. The output low-level of the isolator is assumed with VOL = 0.1 V, the forward voltage of D1 with VF = 0.3 V. To turn Q1 fully off, a base-emitter voltage of VBE-OFF = 0.4 V is chosen. This requires an SDA1 potential or VOL2 of:

VOL2 ≥ VB – VBE–OFF = 0.95 V – 0.4 V = 0.55 V

To provide a sufficient guard band to VOL1, VOL2 is raised to 0.7 V. The emitter resistor, RE, is calculated via:

RE = (VOL2 – VF – VOL)/IPUb

The current through the pull-up resistor is determined by:

IPUb = (VCC1 – VOL2)/RPU1

Inserting numerical values yields a charge current of:

IPUB = (5 V – 0.7 V)/10 kΩ = 430 µA

and an emitter resistor:

RE = (0.7 V – 0.3 V – 0.1 V)/430 µA = 698 Ω

Figure 7 shows the final circuit. Note that the value for the pull-up resistor on side 2, RPU2, is not given as it depends on the actual bus capacitance and the required time constant RPU2 • CB2.

6. When SDA2 is pulled low, the isolator output (OUT C) in combination with diode D1 and emitter resistor RE create an output low-level of VOL2 = 0.7 V. This level allows designers to clearly distinguish between VOL1 = 0.4 V and VOL2 = 0.7 V, which turn Q1 on or off.
7. The final discrete isolator is just a few more cents than the triple isolator IC. But the circuit requires redesign should the supply voltages and/or the VOL levels of the I2C output stages change.

References

Download ISO1540 and ISO1541 data sheets at www.ti.com/iso154-ca and www.ti.com/iso1541-ca.

Thomas Kugelstadt is an applications manager with Texas Instruments. He is responsible for defining new, high-performance analog products and developing complete system solutions for industrial interfaces with robust transient protection. He is a graduate engineer from the Frankfurt University of Applied Science. He can be reached at [email protected].

Sponsored Recommendations

Understanding Thermal Challenges in EV Charging Applications

March 28, 2024
As EVs emerge as the dominant mode of transportation, factors such as battery range and quicker charging rates will play pivotal roles in the global economy.

Board-Mount DC/DC Converters in Medical Applications

March 27, 2024
AC/DC or board-mount DC/DC converters provide power for medical devices. This article explains why isolation might be needed and which safety standards apply.

Use Rugged Multiband Antennas to Solve the Mobile Connectivity Challenge

March 27, 2024
Selecting and using antennas for mobile applications requires attention to electrical, mechanical, and environmental characteristics: TE modules can help.

Out-of-the-box Cellular and Wi-Fi connectivity with AWS IoT ExpressLink

March 27, 2024
This demo shows how to enroll LTE-M and Wi-Fi evaluation boards with AWS IoT Core, set up a Connected Health Solution as well as AWS AT commands and AWS IoT ExpressLink security...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!