Hard-Switching Waveforms and Switching Losses
An ideal switch dissipates nothing: when it is on there is no voltage across it, when it is off there is no current through it. A real switch needs a few nanoseconds to change state, and in most converters it does so against an inductive load: the inductor holds the current constant, so the switch must carry the full current before its voltage can fall, and must hold the full voltage before its current can stop. During those nanoseconds the device sees both at once, and is kilowatts. Multiplied by a few hundred thousand transitions per second, this switching loss is often as large as the conduction loss, and it is the main reason converter efficiency falls with frequency. This lesson draws the hard-switching waveforms, derives the energy per transition from the gate charge and gate current, and adds the two "hidden" terms, output-capacitance energy and diode recovery.
The clamped inductive switching cell
Take a buck converter whose inductor carries and freewheels through the diode while the switch is off. Turn-on happens in two stages:
- The gate charges to the threshold (nothing happens), then the drain current rises from to in . The diode still conducts the rest of the inductor current, so it stays forward-biased and the switch voltage stays at .
- Once the switch carries all of the diode can turn off, and the drain voltage falls in . During this interval the gate voltage stays flat at the Miller plateau : all the gate current goes into discharging .
Turn-off is the mirror image: the voltage rises first (, on the plateau), then the current falls (). Each stage is a triangle of power with peak :
Timing from the gate charge
The intervals are set by how fast the driver can move charge. With a driver of voltage and total gate resistance (driver, external resistor and the MOSFET's internal resistance), the gate current is roughly constant in each stage:
and the same charges divided by at turn-off. is the part of the gate-source charge between the threshold and the plateau; is the plateau length on the datasheet's gate-charge curve. Two consequences follow directly: a high plateau (a high-threshold part) speeds turn-on but slows turn-off, and the gate resistor multiplies the switching energy linearly.
Two hidden terms
- Output capacitance. At turn-on the energy stored in the MOSFET's own , , is dumped into its channel. is the datasheet's "energy-related" effective capacitance (the real is strongly nonlinear). The diode's capacitance adds to it.
- Diode recovery. The switch's turn-on current overshoots by and it absorbs roughly per cycle (Power Diodes).
Soft-switching converters (zero-voltage switching in LLC and phase-shifted bridges, Half- and Full-Bridge Converters) avoid the turn-on triangle and by letting the current discharge before the gate turns on; at turn-off the same slows the voltage rise and shrinks (but does not remove) the turn-off triangle.
Worked example: switching loss of a buck MOSFET
Given: a buck from at , . The high-side MOSFET has , , , . Driver , total .
Find: the switching intervals, , , and the switching loss.
Solve:
Check: is 1.4 % of the throughput, and five times the conduction loss of a switch at (): at this voltage and frequency, switching dominates. The constant-gate-current model is approximate during the current fall at turn-off, when the gate voltage drops from the plateau to the threshold; real waveforms also add the ringing from loop inductance (Snubbers and Layout).
import numpy as np
# hard-switched MOSFET in a 48 V -> 12 V buck, 10 A, gate-charge timing
Vin, Io, fsw = 48.0, 10.0, 200e3
Vdrv, Vpl, Vth, Rg = 10.0, 4.5, 3.0, 3.0 # driver, Miller plateau, threshold, total gate resistance
Qgs2, Qgd, Coss_er = 4e-9, 6e-9, 400e-12 # charge Vth->plateau, Miller charge, energy-related Coss
Ig_on = (Vdrv - Vpl) / Rg # gate current while on the plateau, turning on
Ig_off = Vpl / Rg # turning off (driver pulls to 0 V)
t_ri, t_fv = Qgs2 / Ig_on, Qgd / Ig_on # current rise, voltage fall
t_rv, t_fi = Qgd / Ig_off, Qgs2 / Ig_off # voltage rise, current fall
E_on = 0.5 * Vin * Io * (t_ri + t_fv)
E_off = 0.5 * Vin * Io * (t_rv + t_fi)
E_oss = 0.5 * Coss_er * Vin**2
print(f"Ig on {Ig_on:.2f} A, off {Ig_off:.2f} A")
print(f"turn-on : tri {t_ri*1e9:.2f} ns, tfv {t_fv*1e9:.2f} ns, Eon = {E_on*1e6:.2f} uJ")
print(f"turn-off: trv {t_rv*1e9:.2f} ns, tfi {t_fi*1e9:.2f} ns, Eoff = {E_off*1e6:.2f} uJ")
print(f"Coss discharged at turn-on: Eoss = {E_oss*1e6:.2f} uJ")
P_sw = (E_on + E_off + E_oss) * fsw
print(f"switching loss at {fsw/1e3:.0f} kHz: {P_sw:.3f} W")
# check the triangle formula by integrating piecewise-linear waveforms (turn-on)
t = np.linspace(0, t_ri + t_fv, 20001)
i = np.where(t < t_ri, Io * t / t_ri, Io)
v = np.where(t < t_ri, Vin, Vin * (1 - (t - t_ri) / t_fv))
E_num = np.sum(0.5 * (v[1:] * i[1:] + v[:-1] * i[:-1]) * np.diff(t))
print(f"numerical Eon = {E_num*1e6:.2f} uJ")
# effect of the gate resistor
for R in (1.0, 3.0, 10.0):
on = 0.5 * Vin * Io * (Qgs2 + Qgd) / ((Vdrv - Vpl) / R)
off = 0.5 * Vin * Io * (Qgs2 + Qgd) / (Vpl / R)
print(f"Rg = {R:4.1f} ohm: Eon + Eoff = {(on+off)*1e6:5.2f} uJ, P = {((on+off+E_oss)*fsw):.2f} W")Ig on 1.83 A, off 1.50 A
turn-on : tri 2.18 ns, tfv 3.27 ns, Eon = 1.31 uJ
turn-off: trv 4.00 ns, tfi 2.67 ns, Eoff = 1.60 uJ
Coss discharged at turn-on: Eoss = 0.46 uJ
switching loss at 200 kHz: 0.674 W
numerical Eon = 1.31 uJ
Rg = 1.0 ohm: Eon + Eoff = 0.97 uJ, P = 0.29 W
Rg = 3.0 ohm: Eon + Eoff = 2.91 uJ, P = 0.67 W
Rg = 10.0 ohm: Eon + Eoff = 9.70 uJ, P = 2.03 W
The numerical integral of the piecewise-linear waveforms confirms the triangle formula. Going from to triples the switching loss; going to cuts it to less than half but raises and , and with them ringing and EMI. Choosing is a trade between loss and noise, which is why many drivers have separate turn-on and turn-off outputs (Gate Drivers).
How losses scale
| Change | Conduction loss | Switching loss |
|---|---|---|
| double | unchanged | doubles |
| double (same current) | unchanged | doubles ( quadruples) |
| double | quadruples () | about doubles |
| larger die (lower ) | falls | rises (more charge) |
The last row is the classic figure of merit: for a given technology is roughly constant, so the optimum die balances the two losses at the operating point. A designer picking among a vendor's family of parts minimises rather than the lowest .
Guided lab: watch the Miller plateau at 12 V
Hand calculation. For a logic-level MOSFET switching a , inductive load (a power inductor in series with a , 25 W resistor, freewheel diode across both), with a gate drive through , compute and from the datasheet's and . With and : , ; , .
Simulation. Put these values into the code with , .
What you would measure. Bench supply with the current limit at ; a function generator at , duty 20 %, drives the gate through the resistor (or a small gate-driver board). Scope channel 1 on the gate, channel 2 on the drain, both referenced to the MOSFET source with short ground springs. Expect a clear flat step on during each drain-voltage edge, lasting the computed and within about (the plateau voltage and generator output resistance, typically , are the main uncertainties; add it to ). Increasing the gate resistor stretches the plateau proportionally. With the current reaches about by the end of the on-time and decays to almost zero during the off-time, so the turn-off plateau is the one at for ; the turn-on plateau sits lower, near the threshold, because the switch turns on at nearly zero current.
Hazards and safe setup. , current-limited, but the inductor and resistor get warm: the resistor dissipates about at 20 % duty and if the gate sticks on, hence its 25 W rating. Never omit the freewheel diode: interrupting inductor current without it drives the drain into avalanche. Ground the scope only at the MOSFET source of this low-voltage circuit; never float a scope to measure a high-side or mains node.
Pitfalls
- Taking and from a datasheet's resistive-load test. They are measured under different conditions; derive timing from and your gate current.
- Forgetting the driver's own resistance and the MOSFET's internal .
- Ignoring at high voltage: at it can exceed the overlap energy.
- Measuring switching loss by multiplying scope traces with mismatched probe delays: a few nanoseconds of skew gives tens of percent error.
Practice
- Double the input voltage of the worked example to (same charges). Find the new switching loss.
- What gives in the worked example?
- A switch has at , . Estimate the switching loss at , , .
Answer
- Overlap energies double to ; quadruples to ; .
- : at , so .
- Scale linearly with and : ; .
Test yourself
During the Miller plateau at turn-on, what is happening?
- the drain current rises
- the drain voltage falls while the gate current discharges
- the gate oxide charges to
- the diode conducts in reverse
With a clamped inductive load, why does the switch voltage stay at while its current rises at turn-on?
- the gate is not yet charged
- the freewheeling diode still carries part of the inductor current and stays forward-biased
- the output capacitor holds it
- the inductor reverses
Doubling the total gate resistance (all else equal) roughly…
- halves the switching loss
- leaves it unchanged
- doubles the overlap switching energy
- quadruples it
In the worked example, at 200 kHz. The switching loss is…
- 0.067 W
- 0.67 W
- 6.7 W
- 3.37 W