C5 · Lesson 12 · Protection circuits
Clamps, TVS diodes, reverse-polarity protection and inductive kicks
A circuit's connectors are where it meets the world, and the world isn't kind: a finger carries a few thousand volts of static, a battery goes in backwards, a cable shorts a signal to the 24 V supply, a relay coil kicks back when it's switched off. A few diodes and a MOSFET, chosen with a little arithmetic, survive almost all of it. This lesson is that arithmetic.
Play
- A signal reaches a 3.3 V converter's input through a series resistor. Two diodes clamp the input: one to the 3.3 V rail, one to ground.
- Raise the signal's amplitude well past the rails. Where does the input stop, and which diode conducts on each half-cycle?
- Shrink the series resistor and watch the diode currents. The resistor is what makes the clamp safe.
Predict
A 3.3 V microcontroller pin has clamp diodes to its supply (0.6 V drop). A 12 V signal reaches it through 10 kΩ. What happens?
The upper clamp conducts once the pin is 0.6 V above the 3.3 V rail, so the pin sits near 3.9 V and the resistor carries = 0.81 mA into the supply. That's within most parts' injection rating, so the pin survives. Without the 10 kΩ, the current would be limited only by the source, and the clamp would burn out.
Name it
Rail clamps
Almost every chip input has a diode to each rail. With a series resistor , a signal beyond the rails is clamped one diode drop outside them, and the current is
so for a worst-case fault and a rated injection current (a few mA),
The injected current flows into the supply rail. If the rest of the board draws less than that (a sleeping microcontroller), the clamp pumps the rail up; a Zener or TVS across the rail, or external Schottky clamps, catches it. also forms a low-pass with the input's capacitance, so it can't be made arbitrarily large on a fast signal.
TVS diodes
A transient voltage suppressor is an avalanche diode built to absorb large pulses. It's chosen by three voltages: the standoff , above the line's normal maximum, where it leaks only microamps; the breakdown ; and the clamping voltage at a pulse current ,
with its dynamic resistance. The peak power is , often hundreds of watts for tens of microseconds. Everything downstream has to survive , not . On fast data lines the TVS's capacitance matters too, so low-capacitance arrays are used.
Electrostatic discharge
The human body model for chip-level testing is 100 pF charged to the test voltage and discharged through 1.5 kΩ: a 2 kV zap peaks at = 1.33 A with a 150 ns time constant and carries = 0.2 mJ. System-level tests use 150 pF through 330 Ω, which is far harsher: 8 kV peaks near 24 A. On-chip protection handles the first; connectors need external clamps for the second.
Reverse polarity
| Protection | Loss at current I |
|---|---|
| Series silicon diode | , about 0.7 to 1 V of drop |
| Series Schottky | , about 0.3 to 0.5 V |
| P-channel MOSFET in the positive line |
The MOSFET sits with its drain toward the battery and its gate to ground. Connected correctly, its body diode conducts first, the gate then sees nearly the full supply and turns the channel fully on; reversed, the gate turns it off and the body diode blocks. A fuse with a diode across the supply is the crude alternative: a reversed battery blows the fuse.
Inductive kicks
Switching off an inductor's current I makes it raise whatever voltage keeps the current flowing. A clamp of voltage across the coil (a diode, or a diode and a Zener) lets the current decay as , so it reaches zero after
A bare diode ( 0.7 V) is safe but slow: a relay releases late. A Zener in series speeds the release, at the price of the switch seeing .
Worked example
A 3.3 V converter input has rail clamps rated for 5 mA. A wiring fault can connect it to 24 V. What series resistor protects it, and what does the resistor dissipate during the fault?
Show the solution
- Smallest resistor. Use 4.7 kΩ.
- Dissipation during the fault. It drops about 20 V, so fine for a ¼ W part indefinitely.
- Where the current goes. The 4.3 mA it passes goes into the 3.3 V rail, so check that something on the rail draws at least that much, or add a clamp across the rail.
Answer a 4.7 kΩ resistor (4.0 kΩ at least) protects it, and it dissipates about 85 mW during the fault.
Worked example
A 12 V, 3 A load needs reverse-polarity protection. Compare a silicon diode ( = 0.9 V at 3 A), a Schottky (0.45 V) and a P-channel MOSFET with = 10 mΩ.
Show the solution
- Silicon diode. and it drops 0.9 V from the supply.
- Schottky.
- MOSFET. and it drops 30 mV.
- Compare. The diode needs a heat sink and costs the load almost a volt; the MOSFET needs neither. That's why battery-powered products with any real current use the MOSFET, even though it costs a part more than a diode.
Answer the silicon diode loses 2.7 W and drops 0.9 V, the Schottky loses 1.35 W, and the MOSFET loses only 0.09 W and drops 30 mV.
Worked example
A 24 V industrial input is protected by a TVS with a 26 V standoff, a 28.9 V breakdown and 1 Ω of dynamic resistance. A surge drives 10 A through it for 20 µs. What voltage does the circuit behind it see, and how much energy does the TVS absorb?
Show the solution
- Clamping voltage.
- Energy. The peak power is 389 W, so the energy is about
- Normal operation. The standoff of 26 V keeps it quiet at the normal 24 V.
- What the circuit behind it needs. Everything behind it must take 39 V: a regulator rated for 40 V input survives, one rated for 35 V doesn't, even though both are "24 V parts".
Answer the circuit behind it sees 38.9 V, and the TVS absorbs about 7.8 mJ.
Check
An input with rail clamps rated for 10 mA runs from 3.3 V and may be shorted to 24 V. What's the smallest series resistor that protects it?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
Which protection fits which threat? A long cable to a 24 V sensor input that may see surges from nearby motors.
Check
A TVS with = 15 V and = 0.2 Ω takes a 20 A pulse.
(a)
What voltage does it clamp to?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What's its peak power?
Check
A human-body-model zap of 4 kV: 100 pF discharged through 1.5 kΩ.
(a)
What's the peak current?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
(b)
What energy does it carry?
Check
A load draws 3 A through reverse-polarity protection.
(a)
What does a diode with = 0.6 V dissipate?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What does a MOSFET with = 50 mΩ dissipate?
Check
A 100 mH relay coil with 120 Ω of resistance carries 0.1 A and is clamped at 24.7 V when switched off. How long until its current reaches zero?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
An input with rail clamps (diode drop F) runs from supply D. A fault can reach V, the clamps take at most I, and the rest of the board draws L from the rail.
Step 1
What's the smallest series resistor?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What does that resistor dissipate during the fault?
Step 3
With the fault on, how much current is left over to pump the rail up (negative means none)?
Explain why
Why does an input protected by clamp diodes still need a series resistor?
The clamp diodes hold the input within a diode drop of the rails, but they don't limit the current: once a diode conducts, the only thing between the fault and the diode is whatever resistance is in the path. Without a series resistor, a stiff source could push amps through a diode built for milliamps and destroy it. The resistor sets the current to the fault voltage minus the clamped voltage, divided by its resistance, which can be chosen to stay within the diode's rating. It also has to be chosen small enough not to slow the signal with the input's capacitance, and the injected current still has to be absorbed by the supply rail.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.