AN10364. Opto-electrical isolation of the I 2 C-bus (operating the bus between points with different local ground potential) Document information



Similar documents
AN1991. Audio decibel level detector with meter driver

HEF4011B. 1. General description. 2. Features and benefits. 3. Ordering information. 4. Functional diagram. Quad 2-input NAND gate

Quad 2-input NAND Schmitt trigger

AN Driving I 2 C-bus signals over twisted pair cables with PCA9605. Document information

AN Level shifting techniques in I 2 C-bus design. Document information

The 74LVC1G11 provides a single 3-input AND gate.

HEF4021B. 1. General description. 2. Features and benefits. 3. Ordering information. 8-bit static shift register

Low-power configurable multiple function gate

Planar PIN diode in a SOD323 very small plastic SMD package.

AN Designing RC snubbers

1-of-4 decoder/demultiplexer

AN460 Using the P82B96 for bus interface

14-stage ripple-carry binary counter/divider and oscillator

HEF4013B. 1. General description. 2. Features and benefits. 3. Applications. 4. Ordering information. Dual D-type flip-flop

Using the RS232 serial evaluation boards on a USB port

74HC02; 74HCT General description. 2. Features and benefits. Ordering information. Quad 2-input NOR gate

Triple single-pole double-throw analog switch

3-to-8 line decoder, demultiplexer with address latches

Schottky barrier quadruple diode

10 ma LED driver in SOT457

74HC377; 74HCT General description. 2. Features and benefits. 3. Ordering information

74HC175; 74HCT175. Quad D-type flip-flop with reset; positive-edge trigger

BAT54 series SOT23 Schottky barrier diodes Rev. 5 5 October 2012 Product data sheet 1. Product profile 1.1 General description

8-channel analog multiplexer/demultiplexer

IP4220CZ6. 1. Product profile. Dual USB 2.0 integrated ESD protection. 1.1 General description. 1.2 Features and benefits. 1.

SiGe:C Low Noise High Linearity Amplifier

74HCU General description. 2. Features and benefits. 3. Ordering information. Hex unbuffered inverter

AN BGU8009 Matching Options for 850 MHz / 2400 MHz Jammer Immunity. Document information. Keywords

8-bit binary counter with output register; 3-state

74HC107; 74HCT107. Dual JK flip-flop with reset; negative-edge trigger

74HC154; 74HCT to-16 line decoder/demultiplexer

AN Boot mode jumper settings for LPC1800 and LPC4300. Document information

74HC238; 74HCT to-8 line decoder/demultiplexer

AN Single stage 5-6 GHz WLAN LNA with BFU730F. document information

AN Sending I 2 C-bus signals via long communications cables. Document information

74HC2G02; 74HCT2G General description. 2. Features and benefits. 3. Ordering information. Dual 2-input NOR gate

High-speed switching diodes. Type number Package Configuration Package NXP JEITA JEDEC

The 74LVC1G04 provides one inverting buffer.

74HC574; 74HCT574. Octal D-type flip-flop; positive edge-trigger; 3-state

74HC4040; 74HCT stage binary ripple counter

Low forward voltage High breakdown voltage Guard-ring protected Hermetically sealed glass SMD package

Passivated, sensitive gate triacs in a SOT54 plastic package. General purpose switching and phase control

UM Vertical Alignment (VA) displays and NXP LCD drivers

74HC165; 74HCT bit parallel-in/serial out shift register

74HC4067; 74HCT channel analog multiplexer/demultiplexer

74HC138; 74HCT to-8 line decoder/demultiplexer; inverting

DISCRETE SEMICONDUCTORS DATA SHEET M3D848. CGD MHz, 20 db gain power doubler amplifier. Product specification 2002 Oct 08

LIN-bus ESD protection diode

74HC393; 74HCT393. Dual 4-bit binary ripple counter

BAS16 series. 1. Product profile. High-speed switching diodes. 1.1 General description. 1.2 Features and benefits. 1.

Hex buffer with open-drain outputs

NPN wideband transistor in a SOT89 plastic package.

Mounting instructions for SOT78 (TO-220AB); SOT186A (TO-220F)

Femtofarad bidirectional ESD protection diode

DATA SHEET. BF245A; BF245B; BF245C N-channel silicon field-effect transistors DISCRETE SEMICONDUCTORS

IP4294CZ10-TBR. ESD protection for ultra high-speed interfaces

74HC74; 74HCT General description. 2. Features and benefits. 3. Ordering information

The sensor can be operated at any frequency between DC and 1 MHz.

BLL6G1214L Product profile. LDMOS L-band radar power transistor. 1.1 General description. 1.2 Features and benefits. 1.

Buffer with open-drain output. The 74LVC1G07 provides the non-inverting buffer.

DISCRETE SEMICONDUCTORS DATA SHEET. dbook, halfpage M3D088. BB201 Low-voltage variable capacitance double diode. Product specification 2001 Oct 12

74HC573; 74HCT General description. 2. Features and benefits. Octal D-type transparent latch; 3-state

8-bit synchronous binary down counter

Low-power D-type flip-flop; positive-edge trigger; 3-state

UM TEA1721 isolated 3-phase universal mains flyback converter demo board. Document information

AN11008 Flash based non-volatile storage

74HC4066; 74HCT4066. Quad single-pole single-throw analog switch

74HC595; 74HCT General description. 2. Features and benefits. 3. Applications

AN TDA8026ET - 5 slots smart card interface. Document information

AN AES encryption and decryption software on LPC microcontrollers. Document information

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

PESDxU1UT series. 1. Product profile. Ultra low capacitance ESD protection diode in SOT23 package. 1.1 General description. 1.

45 V, 100 ma NPN general-purpose transistors

AN LPC24XX external memory bus example. Document information

74HC32; 74HCT General description. 2. Features and benefits. Quad 2-input OR gate

Application Examples

AN Using RC Thermal Models. Document information

PUSB3FR4. 1. Product profile. ESD protection for ultra high-speed interfaces. 1.1 General description. 1.2 Features and benefits. 1.

DISCRETE SEMICONDUCTORS DATA SHEET. BT151 series C Thyristors

CAN bus ESD protection diode

AN Failure signature of electrical overstress on power MOSFETs. Document information

74AUP1G General description. 2. Features and benefits. Low-power D-type flip-flop with set and reset; positive-edge trigger

30 V, single N-channel Trench MOSFET

Bus buffer/line driver; 3-state

High-speed USB 2.0 switch with enable

3-input EXCLUSIVE-OR gate. The 74LVC1G386 provides a 3-input EXCLUSIVE-OR function.

40 V, 200 ma NPN switching transistor

Ultrafast, epitaxial rectifier diode in a SOD59 (TO-220AC) plastic package

HEF4013B. 1. General description. 2. Features and benefits. 3. Applications. 4. Ordering information. Dual D-type flip-flop

AN10866 LPC1700 secondary USB bootloader

NPN wideband silicon RF transistor

ESD protection for high-speed interfaces

74HC4051; 74HCT channel analog multiplexer/demultiplexer

74HC123; 74HCT123. Dual retriggerable monostable multivibrator with reset

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

74HC595; 74HCT General description. 2. Features and benefits. 3. Applications

AN Water and condensation safe touch sensing with the NXP capacitive touch sensors. Document information

PRTR5V0U2F; PRTR5V0U2K

AN SMSC Design Guide for Power Over Ethernet Applications. 1 Introduction. 1.1 Power Over Ethernet

74ALVC bit dual supply translating transceiver; 3-state. This device can be used as two 8-bit transceivers or one 16-bit transceiver.

Transcription:

Opto-electrical isolation of the (operating the bus between points with different local ground potential) Rev. 1 12 November 2010 Application note Document information Info Keywords Abstract Content P82B96, PCA9600, PCA9601, RS-485, I2C-bus, Fast-mode Plus, CAN bus, opto-isolation, safety isolation, PoE This report discusses factors that need consideration when an is used to communicate between two points that do not share a common logic ground potential. I 2 C logic signals are referenced to a ground level and it is expected that connected devices share that reference. In practice, when an is extended to link devices that are separated by distances exceeding about 1 meter there can be many factors that cause differences in the local ground potential of those devices and that in turn affects the noise margins of the system and can lead to device ratings being exceeded. In other cases where an could provide an attractive data link there is no possibility for a shared ground reference. Examples include the need to provide safety isolation between the I 2 C control signals and AC mains power, telephone lines, or patient monitoring medical equipment. In other cases, such as Power over Ethernet, standards require isolation of the grounds. Solutions are provided to deal with ground differences ranging from less than 1 V up to kilovolt levels by using Opto or transformer isolators in the signal path. Key to all solutions is the availability of I 2 C buffers with the capability to split the bidirectional I 2 C signals into pairs of conventional uni-directional logic streams that can be then be handled using conventional methods. Solutions for links from 3 khz to 1 MHz speeds are described.

Opto-electrical isolation of the Revision history Rev Date Description v.1 20101112 application note; initial release Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 2 of 16

Opto-electrical isolation of the 1. Introduction The provides an attractive maintenance and control communication interface between parts of a system since it uses only two signal wires yet has powerful addressing and a reasonably fast, up to 1 MHz, bidirectional data handling capability. logic signals are referenced to a common (ground) potential. Any potential difference between the grounds of different devices on an introduces a change in the logic signal level between the sending and receiving devices that is equivalent to noise-induced signal level disturbances on the bus wiring. It increases the possibility of communication errors or exceeding the voltage ratings of the connected devices. Most ICs have I/Os ratings that prohibit applying negative voltages greater than 0.3 V to 0.5 V. When one IC has a ground potential 1 V lower than another, then when that IC sends a LOW of, say, +0.4 V with respect to its ground the receiving input will be driven to 0.6 V relative to its ground and exceed its rating. Even when I 2 C components share a nominally common ground the possibility that large currents, sharing that ground, can cause significant differences in local potential should be considered. Many systems that can benefit from the advantages of control are not allowed to share any common reference signal (ground) potential. To prevent any chance of electrocution, AC mains control and medical patient monitoring equipment require a safety isolation barrier, to kilovolt levels, between the system components. Regulations require isolation from telephone lines and Standards require isolation from Ethernet wiring, especially when power is also supplied by the Ethernet wiring (PoE). Techniques enabling reliable I 2 C communication while addressing these different requirements all require first splitting the normally bidirectional / signals into two uni-directional components and then applying conventional techniques to provide the necessary tolerance to difference in local ground potentials, or to provide total galvanic isolation. The conventional techniques include: Increasing the logic signal amplitudes and limiting negative voltages using clamp diodes. Conversion to differential mode signals using CAN or RS-485 drivers or dedicated I 2 C parts Providing true galvanic isolation by including opto or magnetic/transformer signal couplers Buffers that split the signal into uni-directional components and allow them to be simply re-combined by re-connecting them include P82B96, PCA9600 and PCA9601. They can all provide the drive signals to directly interface with the isolating ICs/devices while offering a range of interfacing speeds and drive levels including Fast-mode Plus (Fm+). Figure 1 shows the separation of one signal ( or ) into two separate Send and Receive components and clamping negative voltages with Schottky diodes as in the 4-signal arrangement discussed in AN10658 (Ref. 1). Operating as shown with a 5 V bus, it can operate between points having a ground potential difference of more than 2 V. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 3 of 16

Opto-electrical isolation of the 5 V 5 V V CC1 2.7 kω V CC R1 150 Ω R1 150 Ω V CC 2.7 kω V CC2 1 kω Sx 1 kω long wiring Sx 1 / 2 P82B96 1 / 2 P82B96 1 / 2 BAT54A 1 / 2 BAT54A ground 1 ground 2 002aaf769 Fig 1. Tolerating moderate ground potential differences using separated uni-directional signals 2. Using a differential signal technique to carry the and signals Figure 2 and Figure 3 show how signals can be carried as differential signals over either CAN bus hardware, that supports multi-drop bidirectional signals carried on a single twisted pair, or RS-485 hardware that uses separate transmit and receive paths and therefore requires using four twisted pairs to carry the two I 2 C signals. Both these arrangements provide the same common-mode immunity as offered by those systems, normally around 7 V. For Figure 2 duplicate this arrangement to distribute the signal. Because CAN supports the bidirectional / signals only two twisted pairs are required. For Figure 3 these differential drivers are uni-directional so four twisted pairs are required (e.g., Cat5 cable). 3.3 V to 5 V 5 V 5 V 3.3 V to 5 V 1 / 2 P82B96 2 kω () () ground 1 D D PCA82C250 CANH CANL PCA82C250 D D 2 kω () () ground 2 1 / 2 P82B96 5 V 3.3 V to 5 V 2 kω line termination PCA82C250 D D () () ground 3 1 / 2 P82B96 002aaf770 Fig 2. Transmitting one I 2 C signal as a differential signal using CAN bus hardware All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 4 of 16

Opto-electrical isolation of the 3.3 V to 5 V 5 V 5 V 3.3 V to 5 V I 2 C CKT Sx V CC P82B96 2 kω Ty 2 kω 1 / 2 26LS31 long wiring e.g., Cat5 cable 1 / 2 26LS32 74LVC 2G07 I 2 C CKT Sy Ry ground 1 1 / 2 26LS32 1 / 2 26LS31 ground 2 002aaf771 Fig 3. Transmitting the I 2 C signals as differential signals using RS-485 hardware 3. Opto-coupling supports very large ground differences Figure 4 shows the simplest arrangement from application note AN460 (Ref. 2) using P82B96 and using the lowest cost 4N36 opto-couplers to opto-isolate the signal. These couplers allow saturation of the photo-transistor in the opto-coupler, resulting in very long turn-off delays caused by charge storage effects in their output transistor. For the component values given in AN460 the total switching delays will be around 50 s and that will limit the bus speed of this simple circuit to around 5 khz clock. +V CC +V CC1 R2 R4 R5 +5 V () R3 R1 () 1 / 2 P82B96 002aab987 Fig 4. Simple 5 khz opto-electrical isolation circuit All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 5 of 16

Opto-electrical isolation of the 4. Achieving higher opto-coupled bus speeds: 100 khz The clock speed allowed for any I 2 C class is calculated by adding the delays introduced by the buffers and the opto-couplers to the minimum LOW period. The typical system performance will be found to be much faster when using components specified for a faster class. For example using Fast-mode (Fm) parts for their smaller maximum response delays in a Standard-mode system. Faster speeds require faster opto-couplers. Parts such as 6N137 use Schottky-clamped output transistors to reduce their switching delays to less than 100 ns (each coupler) when operating in the 5 V bus arrangement of Figure 5. They will ensure operation of Standard-mode systems to 100 khz. +5 V +5 V 0.1 μf 2.2 kω 560 Ω 560 Ω usual pull-up usual pull-up () () 6 7 8 2 1 / 2 P82B96 0.1 μf 5 6N137 2 3 2N2907 002aaf778 Fig 5. Use higher speed opto-couplers for full 100 khz operation 5. Opto-couplers for 400 khz Because the original I 2 C specifications did not envisage the development of bus buffering components or the possibilities for signal propagation delays in the system, it is strictly not allowed to introduce any delays other than those anticipated in the bus rise and fall times unless the bus is operated at a speed lower than the maximum allowed for each class. When buffers and opto-couplers introduce delays into the clock and data lines the LOW period should be increased by an amount equal to the sum of those delays. Because the buffers support clock stretching some of that increase will happen automatically, without action by the designer. That is why a system programmed for a nominal 400 khz will be observed to be running at a slightly slower frequency after buffers and opto-couplers are introduced. In practice, typical I 2 C parts do not use up all of the allowed response time that can be calculated from the bus specifications. For example, the typical response time for ICs specified for 400 khz application are mostly under 700 ns while the bus specifications allow for 1.2 s delays. This means that in practice delays up to 500 ns can be tolerated. P82B96 introduces delays around 400 ns and fast couplers will have delays less than 100 ns, so in practical systems, when the designer checks the actual bus timings, 400 khz opto-coupling can be achieved. A fast yet simple circuit, designed for interfacing All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 6 of 16

Opto-electrical isolation of the 3.3 V bus components, is shown in Figure 6. The P82B96 data sheet also gives examples of modifying the duty cycle of the clock when attempting to reach the highest speeds and those techniques are also applicable to delays introduced by opto isolation. In Figure 6 the reason to use the weakest pull-up on the P82B96 Sx pin is to provide the lowest output drive voltage (V OL ) at Sx and therefore the highest noise margin because the indicated bus voltage is 3.3 V. Substituting PCA9600 for the P82B96 and using a 0.3 ma pull-up will provide a guaranteed V OL at 0.65 V and higher speed. +3.3 V +3.3 V 0.1 μf use highest possible pull-up that gives a reasonable bus rise time 180 Ω 180 Ω use lowest pull-up, e.g., 1 kω () () 6 7 8 2 1 / 2 P82B96 0.1 μf 5 HCPL-060L 2 3 74LVC1G07 002aaf779 Fig 6. Simple circuit for applications up to 400 khz (duplicate for line) 6. Operating up to Fast-mode Plus speeds 1 MHz When the highest possible speed is required then all delays must be minimized and more care will be required when setting the master clock timing. There is a selection of opto-couplers with typical propagation delays in the range 40 ns to 50 ns, and some are as low as 16 ns. When driven by PCA9600, with its typical propagation delays 40 ns to 80 ns, the total propagation delay through each coupler path can be kept below 100 ns considerably faster than competing 1 MHz isolators using magnetic/transformer coupling. Figure 7, Figure 9 and Figure 10 show applications all capable of a real 1 MHz clock frequency. Real means the actual observed clock frequency, not the nominal frequency programmed into the master. Because the buffer/opto delays will cause the programmed clock LOW period to be stretched, even the fastest system in Figure 10 will stretch the clock LOW by about 130 ns and would slow a master, programmed for a nominal 1 MHz clock, to around a real or observed 770 khz. Achieving a real 1 MHz is possible but the master must be programmed with new timings that make allowance for the stretching of the clock LOW period. After allowing for the stretch the actual LOW period must be set to 500 ns (minimum) to comply with the Fm+ specification. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 7 of 16

Opto-electrical isolation of the 3.3 V 5 V 5 V 100 nf shield R1 R1 V CC Sx PCA9600 Ty 100 nf (incl. Fm+) Sy Ry R1 = 1 kω; all other resistors = 74LVC07A NEC / CEL 2 PS9821-2 002aaf780 Fig 7. Circuit capable of Fm+ operation to 1 MHz (typical) using couplers with 50 ns (typical) delays The example in Figure 7 uses couplers with typical delays of 50 ns and conventional switching of the LED current using, or the LVC gate, as a series switch to the ground. When turning off, the stray capacitance of the driver and LED input must be charged nearly to the supply before the LED current drops near zero. This increases the rise time delay in the coupler and accounts for some additional slowing of the clock. Still, by programming the nominal master LOW to about 250 ns, to allow for 250 ns clock stretching by PCA9600 with these 50 ns couplers, Figure 8 shows a correctly acknowledged address transmission at a true 1 MHz. In Figure 8 the top two traces show / at the terminals of a master connected on the left side while the lower traces show / at the terminals of an Fm+ slave connected on the right. The dark blue trace shows at the master. When the master releases the Sx of PCA9600 the bus does not immediately rise to the V DD at 3.3 V. It rises only to the LOW level output by Sx, about 0.65 V, until the pin, shown by the lower magenta trace becomes HIGH and that HIGH at propagates back through the PCA9600 to Sx and allows it to rise to 3.3 V. The time at which actually achieves the HIGH level, starting the HIGH period of the ninth clock pulse, is indicated by the black arrow. The step at 0.65 V just prior to that time represents a holding of the master clock LOW until the master s input HIGH has time to propagate to the slave and back to the master. In these traces the slave acknowledge is indicated by the red arrow on the green slave trace. Above that, and slightly delayed, is the Acknowledge LOW as received by the master (red arrow on cyan trace). Note that LOW is valid even before the master starts to rise and, after the step of clock stretch, at least 300 ns before the master actually goes HIGH (black arrow). All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 8 of 16

Opto-electrical isolation of the 019aaa718 PCA9621 slave at the right. Top: waveforms at left; dark blue; cyan. Bottom: waveforms at right; magenta; green. Remark: Nominal 5 V SMPS used was nearer to 4 V. Fig 8. 1 MHz traces generated by arrangement as in Figure 7 An alternative LED drive method, suggested by Avago and applied in Figure 9, uses the or gate output to short-circuit the LED when it is required to be off. The change in voltage across the LED is smaller, so operation may be faster but another advantage is that the supply current shows much smaller changes and that simplifies bypass requirements. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 9 of 16

Opto-electrical isolation of the 5 V 5 V R1 R1 shield V CC Sx P82B96 PCA9600 Ty (incl. Fm+) Sy Ry R1 = 2.7 kω; all other resistors = 74LVC06A AVAGO ACSL6420 002aaf781 Fig 9. The 5 V supply current does not have large changes, it is reasonably constant because it is diverted around the LEDs rather than being simply switched on/off. Used with PCA9600, this circuit will also typically operate to 1 MHz. Avago s alternative LED drive arrangement for their quad coupler with 50 ns (typ) propagation delays +5 V +5 V 180 Ω 0.1 μf 0.1 μf 2 1 LED shield 8 6 1 / 2 LVC2G07 1 / 2 PCA9600 4 HCPL0723 5 8 shield 1 6 LED 2 5 HCPL0723 4 002aaf782 Fig 10. These Avago couplers have just 22 ns maximum propagation delay (16 ns typical). This arrangement must be duplicated for the bus signal, total 4 HCPL0723 required. Fastest arrangement; PCA9600 drives the highest speed opto-couplers All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 10 of 16

Opto-electrical isolation of the 7. Multi-node opto-electrical isolation The examples so far have considered only arrangements that connect a single isolated module to a normal bus. When more than one module must be isolated, or when a lower impedance or higher voltage distribution bus is required then care must be taken to run those distribution buses at normal logic signal levels. In particular the signal levels at the Sx/Sy pins must never be distributed because they have a relatively low noise margin and therefore lower tolerance to noise. That means the opto-coupler I/O side must always be connected to the distribution bus. In all the figures above the connection on the right hand side of the schematic is a perfectly standard with full noise margins and so can be used as a distribution bus for connection of multiple opto-isolation modules. In the higher speed examples Figure 7, Figure 9 and Figure 10, the right hand bus can be operated at the 20 ma or 30 ma Fm+ bus drive current levels that are generally suitable for driving quite long wiring or cables. Provided the additional delays are taken into account, all those Fm+ drive versions should easily drive 20 m cables. At lower speeds and on very long cables the use of higher bus voltages, e.g., 12 V to 15 V, can provide increased noise immunity. V CC1 V CC2 V CC3 MASTER μc 10 kω 10 kω OPTO multidrop OPTO 10 kω MODULE distribution bus MODULE 10 kω SLAVE isolated S side line side line side S side slave isolated V CC1 V CC2 V CC4 10 kω 10 kω MASTER μc 10 kω LINE DRIVER multidrop distribution bus OPTO MODULE 10 kω SLAVE S side line side line side S side slave isolated alternative, with master not isolated 002aaf783 Fig 11. Suggested circuit for multipoint applications Figure 11 shows a general arrangement for a multi-drop system in which isolated and non-isolated modules can be mixed as required. The coupler shown in the example in Figure 12 is the Darlington type HCPL-2731 with an 18 V rating and V OL guarantees when sinking 24 ma. It can be used to directly drive lower impedance higher voltage distribution bus lines in exactly the same way that P82B96 is used. It can interface with other isolated modules or with a simple P82B96 line driver module as also shown in Figure 12 when isolation is not required. Both isolated and non-isolated modules can be used to connect the master(s) or any slaves to the distribution bus wiring. When many isolation modules are used in a system it is convenient to build the opto modules as shown in Figure 12 with a logic buffer (e.g. HEF4050B) driving the LED on the line side. That ensures each All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 11 of 16

Opto-electrical isolation of the module imposes no load on the distribution bus and saves making calculations about loading. When only a small number of modules is used then a buffer is not needed, but just remember to include the LED drive current when calculating the pull-up resistor(s) for the line side distribution bus to remain under 24 ma. V CCn V CC2 8 2 Sx 1 3 V CC2 8 P82B96 Sx 1 2 3 6 6 Sy 7 5 Sy 7 5 4 4 S side opto-isolation module using HCPL-2731 line side S side line driver module line side 002aaf784 Fig 12. Suggested modules for use in the system of Figure 11 When using the HCPL-2731 the distribution bus pull-ups should be calculated for no more than the 24 ma guaranteed rating of that part. That still allows 510 pull-ups to 12 V that will drive around 2 nf (or at least 20 meters) of wiring capacitance. For smaller bus capacitance it is not necessary to waste energy and larger resistance pull-ups can be used. The cheapest, simplest, opto interface as shown in Figure 12 is very slow and the warnings about a few khz operation, as for Figure 4, should be taken seriously. It is wise to monitor the waveforms around the opto devices and check they are doing what the data sheet implies. Never connect the Sx sides of an opto module to a distribution bus because that interface has lower noise margins. The Sx interface is intended for connection only to standard I 2 C parts and not to other buffers. Adapting higher speed buses to higher voltages, while working with the lower voltage ratings of faster opto-couplers, will require some level shifting technique, for example an FET such as 2N7002 in common-gate configuration as the driver, and a resistive voltage divider on the receiver as shown in Figure 13. The resistive divider should be made high impedance, compared to the bus pull-up, to avoid any significant lowering of the bus HIGH logic level. This divider technique obviously has limitations if very many modules are needed. Then an alternative is to replace the 74LVC1G07s by 3-state high voltage logic, e.g., HEF40244B, using the active LOW enable pins as the inputs. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 12 of 16

Opto-electrical isolation of the Picogates are shown as the logic buffers in some schematics because they simplify layout. A hex device, 74LVC07A, would be lower cost but with gates effectively connected in series, care should then be taken with stray capacitance coupling between IC pins that could cause high frequency instability. +5 V +5 V 74LVC 1G07 +12 V V CC 0.1 μf (1) () Sx 6 7 8 2 2N7002 BSH103 etc. d buffered () 0.1 μf (1) 5 3 74LVC 1G07 s 13 kω 10 kω use highest possible pull-up that achieves required bus rise time 0.1 μf (1) 74LVC 1G07 +12 V buffered bus pull-up (min. ) () Sy Ty Ry 6 7 8 2 2N7002 d buffered () P82B96 0.1 μf (1) 5 3 74LVC 1G07 s 13 kω 'S' side 10 kω Line side 002aaf785 Fig 13. (1) 6N137 data suggests 0.1 F mounted between pin 5 and pin 8. Suggested 12 V / 100 khz distribution bus module with isolation (30 ma driver) 8. Conclusion Solutions have been presented, using P82B96 or PCA9600 to split the bidirectional I 2 C signals into uni-directional signals enabling them to be transmitted through various uni-directional logic signal devices including opto-isolators. The solutions range from simple but slow to the fastest Fm+ speed class and allow isolation of sections of an up to the limits of available couplers, at least several kv. Details of the timing considerations for I 2 C buses and designing for the delays caused by buffers, cables, or opto-couplers can be found at the NXP web site www.nxp.com/i2c or at www.nxp.com/interface. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 13 of 16

Opto-electrical isolation of the 9. Abbreviations Table 1. Acronym CAN FET I/O IC LED LVC PoE SMPS Abbreviations Description Controller Area Network Field-Effect Transistor Inter-integrated Circuit bus Input/Output Integrated Circuit Light-Emitting Diode Low Voltage CMOS Power over Ethernet Switched Mode Power Supply 10. References [1] AN10658, Sending signals via long communication cables www.nxp.com/documents/application_note/an10658.pdf [2] AN460, Using the P82B96 for bus interface www.nxp.com/documents/application_note/an460.pdf All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 14 of 16

Opto-electrical isolation of the 11. Legal information 11.1 Definitions Draft The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. 11.2 Disclaimers Limited warranty and liability Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. Right to make changes NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer s own risk. Applications Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned, as well as for the planned application and use of customer s third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer s applications or products, or the application or use by customer s third party customer(s). Customer is responsible for doing all necessary testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer s third party customer(s). NXP does not accept any liability in this respect. Export control This document as well as the item(s) described herein may be subject to export control regulations. Export might require a prior authorization from national authorities. 11.3 Trademarks Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners. logo is a trademark of NXP B.V. All information provided in this document is subject to legal disclaimers. NXP B.V. 2010. All rights reserved. Application note Rev. 1 12 November 2010 15 of 16

Opto-electrical isolation of the 12. Contents 1 Introduction............................ 3 2 Using a differential signal technique to carry the and signals............ 4 3 Opto-coupling supports very large ground differences............................. 7 4 Achieving higher opto-coupled bus speeds: 100 khz................................ 8 5 Opto-couplers for 400 khz................ 8 6 Operating up to Fast-mode Plus speeds 1 MHz................................. 9 7 Multi-node opto-electrical isolation........ 13 8 Conclusion............................ 15 9 Abbreviations.......................... 16 10 References............................ 16 11 Legal information....................... 17 11.1 Definitions............................ 17 11.2 Disclaimers........................... 17 11.3 Trademarks........................... 17 12 Contents.............................. 18 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section Legal information. NXP B.V. 2010. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 12 November 2010 Document identifier: