Low-side, high-side, half-bridge, H-bridge

A MOSFET below the load is easy to drive from a GPIO. Above the load, its gate must go above the rail. We compare five arrangements, drive a motor with an H-bridge and size a bootstrap.

DrivingChapter 07

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.
Lab

Five topologies, one schematic

Copper: load current. Blue: gate/base current. Red: shoot-through. High-side N-MOS: 12 V, 4 Ω load, Vth = 3 V, k = 20 A/V². Gate ramp slowed down; H-bridge speed and current normalized.

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.

Lab

Fault simulator: wire shorted to chassis

Load 12 V / 6 Ω = 2 A, fuse 5 A. The short is on the wire between switch and load. The high-side fault current is hundreds of amps; the fuse opens fast. Time base is illustrative.
Lab

Ground shift: a shared return wire

The board returns to the supply through one wire of resistance Rret. In low-side the load current returns through it too. In high-side it returns via chassis; only the board’s ~50 mA stays in the wire. PWM slowed down.
Drive complexity Unless the gate goes above the rail, a high-side N-MOS becomes a source follower. A P-MOS is easy but has higher RDS(on) and is slower. For automotive/PLC loads of a few amps, a smart high-side switch is the cleanest choice.

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:

V+12 VVG12 VLoad4 ΩVth3 V
  1. Source settles atVGS stays just above threshold≈ 8.5 V
  2. VGS12 − 8.53.5 V
  3. Load current8.5 V / 4 Ω2.1 A
  4. MOSFET loss3.5 V · 2.1 A≈ 7 W
This is not a switch but a source follower. The load gets 8.5 V instead of 12 V and the MOSFET burns 7 W.
VG ≥ V+ + VGS(on)    e.g.: 12 V + 10 V = 22 V Generate the gate voltage relative to the source: as the source swings from 0 V to V+, the gate stays at “source + 10 V”. Do not exceed VGS(max).

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.

V+12 VRDS(on)10 mΩ
  1. Short-circuit current12 V / (2 · 0.01 Ω)600 A
The MOSFETs die within microseconds.

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.

Do not drive a bridge from two independent GPIOs Pins are undefined during reset. They can freeze during a firmware update or a breakpoint. Use a driver IC with hardware interlock, complementary PWM with hardware dead-time, or a bridge IC with EN/PH inputs.

H-bridge: motor direction control

ModeQ1 (top left)Q2 (bottom left)Q3 (top right)Q4 (bottom right)Motor
ForwardONoffoffON+V+ applied
ReverseoffONONoff−V+ applied
BrakeoffONoffONTerminals shorted: back-EMF stops the motor quickly
CoastoffoffoffoffCurrent dies out through body diodes, motor slows gradually
ILLEGALQ1+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?

TopologyDriveProConTypical use
Low-side N-MOSGPIO directlySimplest, cheapest, lowest RDS(on)Load not grounded; its low end sits at V+ when offLED strips, relays, fans, solenoids
High-side P-MOSNPN/N-MOS + pull-upGrounded load; 100 % duty; simpleP-MOS RDS(on) ~2–3× higher; slow turn-offPower rail switching, sensor power, reverse polarity
High-side N-MOSBootstrap / charge pump / driver ICLow RDS(on), fastGate must go above the railAutomotive loads, high current, smart switches
Half-bridgeDriver IC + dead-timeActively drives output to both V+ and groundShoot-through riskBuck/boost, BLDC phase, class-D
H-bridgeTwo half-bridges or a ready-made ICBidirectional current, brakingFour switches, shoot-through risk on both legsDC 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:

  1. Charge: while the low-side is on, SW is near ground. Cboot charges from VDD through a diode.
  2. Lift: when the high-side turns on, SW rises to V+. The capacitor rides up with it; the diode reverse-biases and protects VDD.
V+48 VVDD12 VVF0.7 V
  1. Cboot voltage12 − 0.711.3 V
  2. VB with HS on48 + 11.359.3 V
  3. HS gate VGSVB − VSW11.3 V
The high-side turns fully on. Its gate goes 11.3 V above the rail.
Animation

The bootstrap cycle: charge (LS on) and lift (HS on)

V+ = 48 V, VDD = 12 V, VF = 0.7 V. Each HS turn-on drains Cboot a little (exaggerated here); it refills while LS is on.
Cboot ≥ (Qg + Iq·ton(max)) / ΔVmax    in practice ×3…10 ΔVmax: the droop you accept (e.g. 0.5 V). Iq: driver current + gate–source resistor + diode leakage. LS must turn on every period: duty < 100 %.
Lab

Sizing the bootstrap capacitor

Model: VDD = 12 V, VF = 0.7 V, charge path 10 Ω, UVLO = 8 V. Qg is drawn at turn-on, Iq during the on time. It recharges with τ = 10 Ω·Cboot during the off time.

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.

ICStructureVMCurrentNote
DRV88711× H-bridge, MOSFET6,5–45 V3,6 A peakRDS(on) (HS+LS) ≈ 565 mΩ, built-in current regulation, 2 PWM inputs
DRV88332× H-bridge, MOSFET2,7–10,8 V1,5 A rmsFor small battery-powered robots
TB6612FNG2× H-bridge, MOSFET4,5–13,5 V1,2 A avg / 3,2 A peakIN1/IN2/PWM inputs, low drop; a good L298 replacement
BTS7960 (×2)Half-bridge, MOSFET5,5–27 V~40 A peakTwo of them = an H-bridge for big DC motors; internal charge pump
L298N2× H-bridge, bipolar≤ 46 V2 Aold ~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.

V+48 VQg60 nCf20 kHzDmax95 %Iq150 µAΔVmax0.5 V
  1. Longest on-time0.95 / 20 kHz47.5 µs
  2. Shortest off-time50 µs − 47.5 µs2.5 µs
  3. Iq charge150 µA · 47.5 µs7.1 nCDriver + 100 kΩ gate–source resistor
  4. Total charge60 + 7.167 nC
  5. Minimum C67 nC / 0.5 V134 nF
  6. Chosen C~3× margin470 nFX7R, ≥ 25 V ceramic
  7. Charge time constant10 Ω · 470 nF4.7 µs
  8. Refresh per period1 − e−2.5/4.741 %
  9. Droop per period67 nC / 470 nF0.14 V
  10. Steady-state minimum11.3 − 0.14 / 0.41≈ 10.9 VWell above UVLO (8 V)
  11. Diode reverse voltageV+ + VDD≈ 60 V
A 470 nF X7R and a 100 V ultrafast diode (ES1B, UF4002) are enough. Slow diodes like the 1N4007 drain Cboot during reverse recovery.

Try it in the lab: C = 470 nF, Qg = 60 nC, f = 20 kHz, duty = 95 %.