TExcelTAD
Home › Power Electronics & Motor Drives › Hard-Switching Waveforms and Switching Losses

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 v⋅iv \cdot i 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

vGSv, ip plateauplateau vDS = Vin iD = Io tritfv trvtfi EonEoff

Take a buck converter whose inductor carries IoI_o and freewheels through the diode while the switch is off. Turn-on happens in two stages:

  1. The gate charges to the threshold (nothing happens), then the drain current rises from 00 to IoI_o in trit_{ri}. The diode still conducts the rest of the inductor current, so it stays forward-biased and the switch voltage stays at VinV_\text{in}.
  2. Once the switch carries all of IoI_o the diode can turn off, and the drain voltage falls in tfvt_{fv}. During this interval the gate voltage stays flat at the Miller plateau VplV_{pl}: all the gate current goes into discharging CgdC_{gd}.

Turn-off is the mirror image: the voltage rises first (trvt_{rv}, on the plateau), then the current falls (tfit_{fi}). Each stage is a triangle of power with peak VinIoV_\text{in} I_o:

Eon≈12VinIo(tri+tfv),Eoff≈12VinIo(trv+tfi),Psw=(Eon+Eoff)fswE_{on} \approx \tfrac{1}{2} V_\text{in} I_o (t_{ri} + t_{fv}), \qquad E_{off} \approx \tfrac{1}{2} V_\text{in} I_o (t_{rv} + t_{fi}), \qquad P_{sw} = (E_{on} + E_{off}) f_{sw}

Timing from the gate charge

The intervals are set by how fast the driver can move charge. With a driver of voltage VdrvV_{drv} and total gate resistance RgR_g (driver, external resistor and the MOSFET's internal resistance), the gate current is roughly constant in each stage:

Ig,on=Vdrv−VplRg,Ig,off=VplRg,tri=Qgs2Ig,on,tfv=QgdIg,onI_{g,on} = \frac{V_{drv} - V_{pl}}{R_g}, \qquad I_{g,off} = \frac{V_{pl}}{R_g}, \qquad t_{ri} = \frac{Q_{gs2}}{I_{g,on}},\quad t_{fv} = \frac{Q_{gd}}{I_{g,on}}

and the same charges divided by Ig,offI_{g,off} at turn-off. Qgs2Q_{gs2} is the part of the gate-source charge between the threshold and the plateau; QgdQ_{gd} 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 CossC_{oss}, Eoss=12Co(er)Vin2E_{oss} = \frac{1}{2} C_{o(er)} V_\text{in}^2, is dumped into its channel. Co(er)C_{o(er)} is the datasheet's "energy-related" effective capacitance (the real CossC_{oss} is strongly nonlinear). The diode's capacitance adds to it.
  • Diode recovery. The switch's turn-on current overshoots by IRRMI_{RRM} and it absorbs roughly QrrVinQ_{rr} V_\text{in} 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 EossE_{oss} by letting the current discharge CossC_{oss} before the gate turns on; at turn-off the same CossC_{oss} 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 48 V48\ \text{V} at 10 A10\ \text{A}, fsw=200 kHzf_{sw} = 200\ \text{kHz}. The high-side MOSFET has Qgs2=4 nCQ_{gs2} = 4\ \text{nC}, Qgd=6 nCQ_{gd} = 6\ \text{nC}, Vpl=4.5 VV_{pl} = 4.5\ \text{V}, Co(er)=400 pFC_{o(er)} = 400\ \text{pF}. Driver 10 V10\ \text{V}, total Rg=3 ΩR_g = 3\ \Omega.

Find: the switching intervals, EonE_{on}, EoffE_{off}, EossE_{oss} and the switching loss.

Solve:

Ig,on=10−4.53 A=1.83 A,Ig,off=4.53 A=1.50 Atri+tfv=(4+6) nC1.83 A=5.45 ns,Eon=12⋅48 V⋅10 A⋅5.45 ns=1.31 μJtrv+tfi=10 nC1.50 A=6.67 ns,Eoff=1.60 μJEoss=12⋅400 pF⋅(48 V)2=0.46 μJ,Psw=(1.31+1.60+0.46) μJ⋅200 kHz=0.67 W\begin{aligned} I_{g,on} &= \frac{10 - 4.5}{3}\ \text{A} = 1.83\ \text{A}, \qquad I_{g,off} = \frac{4.5}{3}\ \text{A} = 1.50\ \text{A} \\ t_{ri} + t_{fv} &= \frac{(4 + 6)\ \text{nC}}{1.83\ \text{A}} = 5.45\ \text{ns}, \qquad E_{on} = \tfrac{1}{2} \cdot 48\ \text{V} \cdot 10\ \text{A} \cdot 5.45\ \text{ns} = 1.31\ \mu\text{J} \\ t_{rv} + t_{fi} &= \frac{10\ \text{nC}}{1.50\ \text{A}} = 6.67\ \text{ns}, \qquad E_{off} = 1.60\ \mu\text{J} \\ E_{oss} &= \tfrac{1}{2} \cdot 400\ \text{pF} \cdot (48\ \text{V})^2 = 0.46\ \mu\text{J}, \qquad P_{sw} = (1.31 + 1.60 + 0.46)\ \mu\text{J} \cdot 200\ \text{kHz} = 0.67\ \text{W} \end{aligned}

Check: 0.67 W0.67\ \text{W} is 1.4 % of the 480 W480\ \text{W} throughput, and five times the conduction loss of a 5 mΩ5\ \text{m}\Omega switch at D=0.25D = 0.25 (100 A2⋅5 mΩ⋅0.25=0.125 W100\ \text{A}^2 \cdot 5\ \text{m}\Omega \cdot 0.25 = 0.125\ \text{W}): 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).

python · try it yourself
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 33 to 10 Ω10\ \Omega triples the switching loss; going to 1 Ω1\ \Omega cuts it to less than half but raises dv/dtdv/dt and di/dtdi/dt, and with them ringing and EMI. Choosing RgR_g 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 fswf_{sw} unchanged doubles
double VinV_\text{in} (same current) unchanged doubles (EossE_{oss} quadruples)
double IoI_o quadruples (I2RI^2 R) about doubles
larger die (lower RDS(on)R_{DS(on)}) falls rises (more charge)

The last row is the classic figure of merit: for a given technology RDS(on)⋅QgR_{DS(on)} \cdot Q_g 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 Irms2RDS(on)+kfswVinIoQI_\text{rms}^2 R_{DS(on)} + k f_{sw} V_\text{in} I_o Q rather than the lowest RDS(on)R_{DS(on)}.

Guided lab: watch the Miller plateau at 12 V

Hand calculation. For a logic-level MOSFET switching a 12 V12\ \text{V}, 1 A1\ \text{A} inductive load (a 100 μH100\ \mu\text{H} power inductor in series with a 10 Ω10\ \Omega, 25 W resistor, freewheel diode across both), with a 5 V5\ \text{V} gate drive through 47 Ω47\ \Omega, compute tfvt_{fv} and trvt_{rv} from the datasheet's QgdQ_{gd} and VplV_{pl}. With Qgd=3 nCQ_{gd} = 3\ \text{nC} and Vpl=3 VV_{pl} = 3\ \text{V}: Ig,on=2/47=42.6 mAI_{g,on} = 2/47 = 42.6\ \text{mA}, tfv=70 nst_{fv} = 70\ \text{ns}; Ig,off=3/47=63.8 mAI_{g,off} = 3/47 = 63.8\ \text{mA}, trv=47 nst_{rv} = 47\ \text{ns}.

Simulation. Put these values into the code with Vin=12 VV_\text{in} = 12\ \text{V}, Io=1 AI_o = 1\ \text{A}.

What you would measure. Bench supply 12 V12\ \text{V} with the current limit at 1.5 A1.5\ \text{A}; a function generator at 10 kHz10\ \text{kHz}, duty 20 %, drives the gate through the 47 Ω47\ \Omega 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 vGSv_{GS} during each drain-voltage edge, lasting the computed tfvt_{fv} and trvt_{rv} within about ±30 %\pm 30\ \% (the plateau voltage and generator output resistance, typically 50 Ω50\ \Omega, are the main uncertainties; add it to RgR_g). Increasing the gate resistor stretches the plateau proportionally. With L/R=10 μsL/R = 10\ \mu\text{s} the current reaches about 1.04 A1.04\ \text{A} by the end of the 20 μs20\ \mu\text{s} on-time and decays to almost zero during the off-time, so the turn-off plateau is the one at VplV_{pl} for 1 A1\ \text{A}; the turn-on plateau sits lower, near the threshold, because the switch turns on at nearly zero current.

Hazards and safe setup. 12 V12\ \text{V}, current-limited, but the inductor and resistor get warm: the resistor dissipates about 1.6 W1.6\ \text{W} at 20 % duty and 14.4 W14.4\ \text{W} 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 trt_r and tft_f from a datasheet's resistive-load test. They are measured under different conditions; derive timing from QgdQ_{gd} and your gate current.
  • Forgetting the driver's own resistance and the MOSFET's internal RGR_{G}.
  • Ignoring EossE_{oss} at high voltage: at 400 V400\ \text{V} 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

  1. Double the input voltage of the worked example to 96 V96\ \text{V} (same charges). Find the new switching loss.
  2. What RgR_g gives Eon+Eoff=2 μJE_{on} + E_{off} = 2\ \mu\text{J} in the worked example?
  3. A switch has Eon+Eoff=50 μJE_{on} + E_{off} = 50\ \mu\text{J} at 400 V400\ \text{V}, 20 A20\ \text{A}. Estimate the switching loss at 300 V300\ \text{V}, 10 A10\ \text{A}, 30 kHz30\ \text{kHz}.
Answer
  1. Overlap energies double to 5.82 μJ5.82\ \mu\text{J}; EossE_{oss} quadruples to 1.84 μJ1.84\ \mu\text{J}; P=7.66 μJ⋅200 kHz=1.53 WP = 7.66\ \mu\text{J} \cdot 200\ \text{kHz} = 1.53\ \text{W}.
  2. E∝RgE \propto R_g: 2.91 μJ2.91\ \mu\text{J} at 3 Ω3\ \Omega, so Rg=3⋅2/2.91=2.06 ΩR_g = 3 \cdot 2/2.91 = 2.06\ \Omega.
  3. Scale linearly with VV and II: 50⋅(300/400)(10/20)=18.75 μJ50 \cdot (300/400)(10/20) = 18.75\ \mu\text{J}; P=18.75 μJ⋅30 kHz=0.56 WP = 18.75\ \mu\text{J} \cdot 30\ \text{kHz} = 0.56\ \text{W}.

Test yourself

During the Miller plateau at turn-on, what is happening?

  1. the drain current rises
  2. the drain voltage falls while the gate current discharges CgdC_{gd}
  3. the gate oxide charges to VdrvV_{drv}
  4. the diode conducts in reverse

With a clamped inductive load, why does the switch voltage stay at VinV_\text{in} while its current rises at turn-on?

  1. the gate is not yet charged
  2. the freewheeling diode still carries part of the inductor current and stays forward-biased
  3. the output capacitor holds it
  4. the inductor reverses

Doubling the total gate resistance (all else equal) roughly…

  1. halves the switching loss
  2. leaves it unchanged
  3. doubles the overlap switching energy
  4. quadruples it

In the worked example, Eon+Eoff+Eoss=3.37 μJE_{on} + E_{off} + E_{oss} = 3.37\ \mu\text{J} at 200 kHz. The switching loss is…

  1. 0.067 W
  2. 0.67 W
  3. 6.7 W
  4. 3.37 W