Where does the switch go?
There are two basic places for the switch:
- Low-side: between the load and ground.
- High-side: between the supply and the load.
- Half-bridge: a high-side stacked on a low-side.
- H-bridge: two half-bridges side by side. Current can flow both ways.
The real difference is the gate drive. An N-MOS turns on by VGS, the gate voltage relative to its source.
- In low-side the source is at ground. The GPIO’s 3.3 V is VGS directly.
- In high-side the source sits on top of the load. It rises to the supply as the MOSFET turns on.
Five topologies, one schematic
Low-side or high-side? Where and why?
The system decides, not how easy the drive is. Ask these questions:
- Where is the load’s other end? If it is on chassis, only high-side works.
- Is the wire long, can it chafe on chassis? Then high-side is safer.
- Does the load share ground with the controller? Then low-side causes ground shift.
For an LED strip inside a box, low-side is almost always right. A vehicle lamp, a 24 V PLC output or a remote sensor supply needs high-side.
Low-side
pro
- N-MOS driven straight from a GPIO.
- Cheap, low RDS(on).
- Current sensing: ground-side shunt + simple op-amp.
con
- When off, the load’s low end floats at V+.
- A wire short to chassis turns the load on for good. No fuse blows.
- Load current returns through the board ground: ground shift.
Used for: LED strips, fans, relays, solenoids inside an enclosure, the bottom switches of an H-bridge.
High-side
pro
- When off, load and wire sit at 0 V: safe, less corrosion.
- A short to chassis blows the fuse. The load never turns itself on.
- Load current returns via local chassis, not the board ground.
con
- Harder to drive: P-MOS + level shifter, N-MOS + bootstrap, or a smart switch (BTS, VN, TPS1H).
- Current sensing needs a high-side amplifier (INA180, INA240).
Used for: automotive loads, 24 V PLC “PNP” outputs, sensor rails, power distribution.
Fault simulator: wire shorted to chassis
Ground shift: a shared return wire
High-side N-MOS: why must the gate go above the rail?
A 12 V high-side N-MOS with its gate at 12 V never fully turns on. As the source rises, VGS shrinks to threshold and stalls there.
In the lab, pick “High-side N”, set the gate supply to 12 V and switch it on:
- Source settles atVGS stays just above threshold≈ 8.5 V
- VGS12 − 8.53.5 V
- Load current8.5 V / 4 Ω2.1 A
- MOSFET loss3.5 V · 2.1 A≈ 7 W
Four ways to make a gate voltage above the rail:
Bootstrap
A capacitor charges while the low-side is on, then rides up with the source. Cheap and common. No 100 % duty.
Charge pump
An oscillator and diode–capacitor ladder make a steady voltage above the rail. 100 % duty works; current is low. Built into smart switches.
Isolated supply
A small isolated DC–DC plus an isolated gate driver. Works at any duty and frequency. Standard at high voltage, expensive.
High-side driver IC
IR2104, IR2110, LM5106, UCC27211: bootstrap, level shifting and dead-time in one package. Details in chapter 10.
Half-bridge and shoot-through
The two MOSFETs of one leg must never be on together. If they are, the supply shorts to ground through two RDS(on). This is shoot-through.
- Short-circuit current12 V / (2 · 0.01 Ω)600 A
Slow gate turn-off causes it as much as software bugs. So a dead-time is inserted between one MOSFET turning off and the other turning on: typically 100 ns – 1 µs. During it, inductive current flows through a body diode.
H-bridge: motor direction control
| Mode | Q1 (top left) | Q2 (bottom left) | Q3 (top right) | Q4 (bottom right) | Motor |
|---|---|---|---|---|---|
| Forward | ON | off | off | ON | +V+ applied |
| Reverse | off | ON | ON | off | −V+ applied |
| Brake | off | ON | off | ON | Terminals shorted: back-EMF stops the motor quickly |
| Coast | off | off | off | off | Current dies out through body diodes, motor slows gradually |
| ILLEGAL | Q1+Q2 or Q3+Q4 on together (same leg) | Shoot-through! | |||
For PWM speed control, one diagonal switch stays on and the other is PWM-ed. The path the current takes during the off time changes the motor’s behaviour:
- Slow decay: current circulates through the brake path.
- Fast decay: current returns to the supply.
Inductive behaviour is covered in chapter 08.
When to use which?
| Topology | Drive | Pro | Con | Typical use |
|---|---|---|---|---|
| Low-side N-MOS | GPIO directly | Simplest, cheapest, lowest RDS(on) | Load not grounded; its low end sits at V+ when off | LED strips, relays, fans, solenoids |
| High-side P-MOS | NPN/N-MOS + pull-up | Grounded load; 100 % duty; simple | P-MOS RDS(on) ~2–3× higher; slow turn-off | Power rail switching, sensor power, reverse polarity |
| High-side N-MOS | Bootstrap / charge pump / driver IC | Low RDS(on), fast | Gate must go above the rail | Automotive loads, high current, smart switches |
| Half-bridge | Driver IC + dead-time | Actively drives output to both V+ and ground | Shoot-through risk | Buck/boost, BLDC phase, class-D |
| H-bridge | Two half-bridges or a ready-made IC | Bidirectional current, braking | Four switches, shoot-through risk on both legs | DC motors, stepper windings, TECs |
Bootstrap: a gate supply from a capacitor
A bootstrap makes a cheap floating supply for the high-side gate. It works in two steps:
- Charge: while the low-side is on, SW is near ground. Cboot charges from VDD through a diode.
- Lift: when the high-side turns on, SW rises to V+. The capacitor rides up with it; the diode reverse-biases and protects VDD.
- Cboot voltage12 − 0.711.3 V
- VB with HS on48 + 11.359.3 V
- HS gate VGSVB − VSW11.3 V
The bootstrap cycle: charge (LS on) and lift (HS on)
Sizing the bootstrap capacitor
Integrated bridge ICs
Up to a few amps, a ready-made bridge IC is safer. Dead-time, shoot-through interlock, overcurrent, over-temperature and UVLO are handled inside.
| IC | Structure | VM | Current | Note |
|---|---|---|---|---|
| DRV8871 | 1× H-bridge, MOSFET | 6,5–45 V | 3,6 A peak | RDS(on) (HS+LS) ≈ 565 mΩ, built-in current regulation, 2 PWM inputs |
| DRV8833 | 2× H-bridge, MOSFET | 2,7–10,8 V | 1,5 A rms | For small battery-powered robots |
| TB6612FNG | 2× H-bridge, MOSFET | 4,5–13,5 V | 1,2 A avg / 3,2 A peak | IN1/IN2/PWM inputs, low drop; a good L298 replacement |
| BTS7960 (×2) | Half-bridge, MOSFET | 5,5–27 V | ~40 A peak | Two of them = an H-bridge for big DC motors; internal charge pump |
| L298N | 2× H-bridge, bipolar | ≤ 46 V | 2 A | old ~2–4 V drop at 1 A: a 12 V motor sees ~9 V and the chip runs hot. Needs external flyback diodes. |
Worked example
48 V half-bridge, Qg = 60 nC, 20 kHz, 95 % duty: which Cboot and diode?
The capacitor must stay charged through the longest on-time and refill in the short off-time.
- Longest on-time0.95 / 20 kHz47.5 µs
- Shortest off-time50 µs − 47.5 µs2.5 µs
- Iq charge150 µA · 47.5 µs7.1 nCDriver + 100 kΩ gate–source resistor
- Total charge60 + 7.167 nC
- Minimum C67 nC / 0.5 V134 nF
- Chosen C~3× margin470 nFX7R, ≥ 25 V ceramic
- Charge time constant10 Ω · 470 nF4.7 µs
- Refresh per period1 − e−2.5/4.741 %
- Droop per period67 nC / 470 nF0.14 V
- Steady-state minimum11.3 − 0.14 / 0.41≈ 10.9 VWell above UVLO (8 V)
- Diode reverse voltageV+ + VDD≈ 60 V
Try it in the lab: C = 470 nF, Qg = 60 nC, f = 20 kHz, duty = 95 %.