Most 1-Wire devices operate from a 2.8V to 5.25V VPUP for read and write operations. EPROM devices, including the DS2406, DS2502, DS1982, DS2505, and DS1985, require a 12V programming pulse for write operations. The programming pulse poses an overvoltage threat to devices that cannot withstand voltages above 5.5V. Therefore, if the application requires that EPROM devices be written after the system is deployed, the 5V devices must be protected (Figure 1). The circuit in this article has a forward overvoltage protection of up to 40V, which provides system protection against voltages above the 12V EPROM programming pulse.
Figure 1. 1-Wire bus with 5V and 12V devices
Figure 2. Protection Circuit Schematic
Unfortunately, the offset voltage of transistors varies from device to device and temperature to temperature. The "-1.84V" voltage can vary from -3.5V to -1.5V at room temperature. This variation makes it difficult to find a suitable Zener diode. In addition, low-voltage Zener diodes are usually specified at 5mA, which will affect the programming voltage of the 1-Wire EPROM. For example, if it is operating at 100µA, the voltage drop is well below the specified threshold. In this case, a shunt reference (much like a Zener diode) may be more appropriate, as it can reach the threshold voltage at very low currents. For example, the Maxim LM4040, powered by a 3.3V supply, only needs 67µA to reliably reach the reverse breakdown voltage. Based on the 1-Wire bus requirement of 67µA at 5V, we can calculate: R1 = (5V - 3.3V)/67µA = 25.4kΩ. About 10 slaves on the 1-Wire bus consume 67µA, which is acceptable for a 1-Wire master (such as the DS2480B). Now, let's check the current through R1 for the 12V programming pulse device:
Using a current source to implement an adjustable threshold
Figure 3. Improving the protection circuit using a current source
The NXP® PSSI2021SAY is a versatile single-chip current source (Figure 4). The device has four terminals, called VS, IOUT, GND, and REXT. If REXT is installed, it is connected in parallel with the internal 48kΩ nominal resistor.
Figure 4. Improved protection circuit
According to the product data sheet, IOUT is calculated as follows:
The circuit shown in Figure 4 was tested with REXT = 10kΩ and R1 = 39kΩ. The 1-Wire adapter is Maxim's DS9097U-E25. Figures 5 and 6 show the 1-Wire adapter signal (top curve) and the signal of the protected slave device (lower curve). The programming pulse (Figure 6) causes a ±3V spike on the protected slave device, which lasts about 10µs. During the programming pulse, the voltage of the protected slave device rises to 6V, which may be potentially dangerous.
Figure 5. Communication waveforms: adapter (top), protected slave (bottom). The circuit shown in Figure 4 does not distort the 1-Wire signal.
Figure 6. Programming pulses: adapter (top), protected slave (bottom).
The disadvantage of the PSSI2021SAY is that it consumes a fairly high supply current. At 12V, including the 15µA at IOUT, the current is up to 370µA. Aside from the adjustable function, the circuit using the PSSI2021SAY is not much better than the solution in Figure 2.
Implementing an adjustable threshold based on a bandgap reference and discrete current sources
Figure 7. Protection circuit with bandgap reference
Transistor Q2, bandgap reference U1, and resistors R2 and R3 replace the PSSI2021SAY. R3 is selected to be 100kΩ, and the bandgap reference reaches its minimum operating current when IO is 2.2V. When IO is 5V, the current flowing through U1 is 38µA; when the IO voltage is 12V, the current is 108µA.
According to Kirchhoff's law, the following relationship can be obtained:
The circuit of Figure 7 was tested by replacing the Linear Technology® LT1004 (uncommon on the market) with a National Semiconductor® LM385. The 1-Wire adapter is a Maxim DS9097U-E25. Figures 8 and 9 show the 1-Wire adapter signal (upper trace) and the signal of the protected slave (lower trace). The programming pulse (Figure 9) produces a spike of about 10µs on the slave (2V rising, 1.5V falling). This circuit achieves better performance than Figure 4. During the programming pulse, the voltage of the protected slave device only rises to the 5V level.
Figure 8. Communication waveform without C1: adapter signal (upper), protected slave device (lower).
Figure 9. Programming pulse without C1: adapter signal (upper), protected slave device (lower).
To reduce the spike caused by the programming pulse, 100pF C1 is installed. Figures 10 and 11 show the test results. The communication waveform is slightly distorted. The peak amplitude is reduced (1.4V rising, 1.2V falling). Relative to Figure 9, the voltage will not drop below 3V. A 5.1V low-power Zener diode such as BZX84 from Q1 source to GND can clamp the rising spike, but does not affect the falling spike.
Figure 10. Communication waveform with C1 installed: adapter signal (upper), protected slave device (lower).
Figure 11. C1 installed. Programming pulse: adapter signal (lower), protected slave device (upper).
Keywords:1-Wire
Reference address:Overvoltage Protection for 5V 1-Wire Slaves
Figure 1. 1-Wire bus with 5V and 12V devices
Protection circuit requirements
A suitable protection circuit needs to meet the following requirements:- Very low load on the 1-Wire bus
- Does not interfere with 1-Wire EPROM programming
- Proper Protection for 5V 1-Wire Devices
- Maintain full communication signal amplitude
Rationale
Figure 2 shows a very simple protection circuit. Zener diode U1 limits the gate voltage of Q1, and R1 limits the current through U1. Q1 is an n-channel MOSFET configured as a source follower, with the gate voltage minus a small offset voltage to reach the IO voltage of the 1-Wire slave device. To maintain the full amplitude of the communication signal, the offset voltage should be as low as possible. Depletion-mode MOSFETs with negative bias are well suited for this application. The Supertex® DN3135 was tested and its bias voltage was measured to be -1.84V (data sheet parameter VGS(OFF)). Therefore, the required gate voltage VG is 3.16V, which determines the threshold voltage of U1.Figure 2. Protection Circuit Schematic
Unfortunately, the offset voltage of transistors varies from device to device and temperature to temperature. The "-1.84V" voltage can vary from -3.5V to -1.5V at room temperature. This variation makes it difficult to find a suitable Zener diode. In addition, low-voltage Zener diodes are usually specified at 5mA, which will affect the programming voltage of the 1-Wire EPROM. For example, if it is operating at 100µA, the voltage drop is well below the specified threshold. In this case, a shunt reference (much like a Zener diode) may be more appropriate, as it can reach the threshold voltage at very low currents. For example, the Maxim LM4040, powered by a 3.3V supply, only needs 67µA to reliably reach the reverse breakdown voltage. Based on the 1-Wire bus requirement of 67µA at 5V, we can calculate: R1 = (5V - 3.3V)/67µA = 25.4kΩ. About 10 slaves on the 1-Wire bus consume 67µA, which is acceptable for a 1-Wire master (such as the DS2480B). Now, let's check the current through R1 for the 12V programming pulse device:
The programming current of a 1-Wire EPROM is specified to be 10mA. An additional 1/3mA load will not cause any problems. Therefore, the circuit shown in Figure 2 will work when the MOSFET offset voltage is close to -1.8V, but this is not guaranteed. In practical applications, it is better to provide a protection circuit with an adjustable threshold.
I(R1) = (12V - 3.3V)/25.4kΩ = 343µA (Formula 1)
Using a current source to implement an adjustable threshold
The circuit in Figure 3 uses a current source (U1) to set the maximum gate voltage of Q1. An ideal current source provides a current that is not affected by the voltage across it. For a given current, IOUT, the gate voltage can be adjusted by selecting different R1.
Figure 3. Improving the protection circuit using a current source
The NXP® PSSI2021SAY is a versatile single-chip current source (Figure 4). The device has four terminals, called VS, IOUT, GND, and REXT. If REXT is installed, it is connected in parallel with the internal 48kΩ nominal resistor.
Figure 4. Improved protection circuit
According to the product data sheet, IOUT is calculated as follows:
Here, REXT = 10kΩ, REXT is connected in parallel with the internal 48kΩ resistor, and the typical current is (61.7 + 15)µA = 76.7µA according to the PSSI2021SAY data sheet. The output current depends to some extent on the supply voltage VS, especially when the supply voltage is less than 5V. In the test, the current reached 76.7µA at 3.75V. At 12V, the current was 94µA. This result is also within the acceptable range due to the simple chip design.
IOUT = 0.617/REXT(Ω) + 15µA (Formula 2)
The circuit shown in Figure 4 was tested with REXT = 10kΩ and R1 = 39kΩ. The 1-Wire adapter is Maxim's DS9097U-E25. Figures 5 and 6 show the 1-Wire adapter signal (top curve) and the signal of the protected slave device (lower curve). The programming pulse (Figure 6) causes a ±3V spike on the protected slave device, which lasts about 10µs. During the programming pulse, the voltage of the protected slave device rises to 6V, which may be potentially dangerous.
Figure 5. Communication waveforms: adapter (top), protected slave (bottom). The circuit shown in Figure 4 does not distort the 1-Wire signal.
Figure 6. Programming pulses: adapter (top), protected slave (bottom).
The disadvantage of the PSSI2021SAY is that it consumes a fairly high supply current. At 12V, including the 15µA at IOUT, the current is up to 370µA. Aside from the adjustable function, the circuit using the PSSI2021SAY is not much better than the solution in Figure 2.
Implementing an adjustable threshold based on a bandgap reference and discrete current sources
The PSSI2021SAY data sheet describes the basic principle of the circuit. The main disadvantage is its internal reference voltage, which is provided by the forward conduction voltage of two series diodes. Better performance can be obtained if a bandgap reference is used instead of the forward-biased diodes. The circuit shown in Figure 7 is equivalent to the PSSI2021SAY, consuming less current. Once the bandgap reference reaches its normal operating current, the current is almost independent of the voltage.
Figure 7. Protection circuit with bandgap reference
Transistor Q2, bandgap reference U1, and resistors R2 and R3 replace the PSSI2021SAY. R3 is selected to be 100kΩ, and the bandgap reference reaches its minimum operating current when IO is 2.2V. When IO is 5V, the current flowing through U1 is 38µA; when the IO voltage is 12V, the current is 108µA.
According to Kirchhoff's law, the following relationship can be obtained:
For a general-purpose pnp transistor, such as 2N3906, VEB is typically 0.6V at room temperature and low collector current. Given that VBG is 1.235V, the equation can be broken down into:
VBG = IE × R2 + VEB (Formula 3)
To achieve the same nominal current (76.7µA) as the PSSI2021SAY circuit, R2 is calculated to be 8.2kΩ. When Q1 is the same as in Figure 2, VG must be 3.2V. Ignoring the base current of Q2, IC equals IE. R1 can be calculated:
R2 = (VBG - VEB)/IE = (1.235V - 0.6V)/IE = 0.635V/IE (Formula 4)
To reduce the overall load on the 1-Wire master, the output current of the current source is reduced by increasing R1 and R2 by a factor of four (R2 = 33kΩ, R1 = 160kΩ), which reduces the current to 19µA, resulting in a maximum gate voltage of 3.08V. In practice, R1 needs to be adjusted to compensate for the VGS(OFF) tolerance of the MOSFET. If the voltage of the 1-Wire slave closely matches V(IO), then the appropriate value is found.
R1 = VG/IC = 3.2V/76.7µA = 41.7kΩ (Formula 5)
The circuit of Figure 7 was tested by replacing the Linear Technology® LT1004 (uncommon on the market) with a National Semiconductor® LM385. The 1-Wire adapter is a Maxim DS9097U-E25. Figures 8 and 9 show the 1-Wire adapter signal (upper trace) and the signal of the protected slave (lower trace). The programming pulse (Figure 9) produces a spike of about 10µs on the slave (2V rising, 1.5V falling). This circuit achieves better performance than Figure 4. During the programming pulse, the voltage of the protected slave device only rises to the 5V level.
Figure 8. Communication waveform without C1: adapter signal (upper), protected slave device (lower).
Figure 9. Programming pulse without C1: adapter signal (upper), protected slave device (lower).
To reduce the spike caused by the programming pulse, 100pF C1 is installed. Figures 10 and 11 show the test results. The communication waveform is slightly distorted. The peak amplitude is reduced (1.4V rising, 1.2V falling). Relative to Figure 9, the voltage will not drop below 3V. A 5.1V low-power Zener diode such as BZX84 from Q1 source to GND can clamp the rising spike, but does not affect the falling spike.
Figure 10. Communication waveform with C1 installed: adapter signal (upper), protected slave device (lower).
Figure 11. C1 installed. Programming pulse: adapter signal (lower), protected slave device (upper).
Protection threshold
The maximum voltage between IO and GND that the circuit in Figure 7 can withstand is determined by the following factors:- Maximum safe current of U1
- VCE breakdown voltage of Q2
- VGD and VDS breakdown voltage of Q1
Summarize
If the 5V device can be protected from the programming pulse, it is possible to use 1-Wire EPROMs and 5V 1-Wire devices on the same bus. The simple protection circuit shown in Figure 2 can provide protection under certain conditions, but the gate-to-source turn-off voltage of the MOSFET varies widely, so it is not the best choice and requires a "matched" transistor and shunt reference. The circuit shown in Figure 4 can adjust the tolerance of the compensation MOSFET, but it puts a large load on the 1-Wire master device. Since the PSSI2021SAY can withstand voltages up to 75V, this circuit has protection capabilities up to 75V. The circuit shown in Figure 7 has similar functions to Figure 4, but can achieve better performance and put a much lower load on the 1-Wire master device. Its protection voltage is 40V, which is limited by Q2. The level of protection can be improved by choosing a transistor with a higher VCE breakdown voltage.
Previous article:Innovative devices effectively address circuit protection challenges
Next article:Design of a programmable amplifier for nuclear energy spectrum signals
Recommended ReadingLatest update time:2024-11-16 20:46
STM8L CPU unique ID code (Unique Device ID)
Unique Device ID is ideal for: ● Used as serial numbers (such as USB character serial numbers or other terminal applications) ● Used to activate the boot process with safety mechanism ● Used as a password This unique identifier is used in conjunction with a software encryption and decryption algorithm when programmi
[Microcontroller]
Recommended Content
Latest Power Management Articles
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
Guess you like
- Difficulties that need to be paid attention to in the design of single chip microcomputer circuits
- [phyBOARD-i.MX 8M Plus Development Board] Evaluation 2: System power-on, terminal command test
- How to use LM337 to generate negative voltage
- Newbie help, what is this thing?
- [ESP32-S2-Kaluga-1 Review] Running ESP32 Four Bitter B Test
- Please advise, what software is used for microcontroller simulation?
- What is the difference between the on and off of a dip switch?
- "Playing with the board" + Zhou Hangci's book Chapter 6, Example 2
- STM32CubeMX uses LL library to set timer to use external clock mode to control gpio flip
- Uncle Cat's FPGA Timing Constraint Tutorial