Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new

This worked example picks the switching frequency of a 48 V to 12 V, 10 A synchronous buck by running it at ten frequencies from 100 kHz to 1 MHz. At each frequency the inductor and output capacitor are sized again, both switches are a real MOSFET with its data-sheet loss model, and the efficiency, ripple and inductor size come from the run. The answer is the knee of the curve of loss against inductor size: below it, a higher frequency buys a much smaller inductor for little loss; above it, it buys little for much loss. Choosing the switching frequency explains the trade-off; this article puts numbers on it.

Every number below is pasted by the script that runs the sweep, and a test fails when the article and the script's output differ.

The design

  • Spec. 48 V in, 12 V out, 10 A. circuit.template (topology syncBuck) sizes the inductor for a 30 % ripple (3 A peak to peak) and the output capacitor for a 1 % ripple at each frequency: L=(Vin−Vout)D/(fswΔI)L = (V_{in} - V_{out}) D / (f_{sw} \Delta I) and C=ΔI/(8fswΔV)C = \Delta I / (8 f_{sw} \Delta V). Its ceramic output and input capacitors carry an ESR that grows as their capacitance falls.
  • Switches. Q1 and Q2 are both an Infineon BSC070N10NS5 (100 V, 6.0 mΩ typical at VGSV_{GS} = 10 V; data sheet, Rev. 2.3, 2019-11-13), from the built-in library.
  • Dead time. 30 ns at every frequency: the part's turn-off delay plus fall time, td(off)+tft_{d(off)} + t_f = 24 ns + 6 ns (Table 5). The duty is raised by tdfswt_d f_{sw} for the on-time the dead time takes.
  • Losses counted. For each switch, conduction from the data sheet's RDS(on)R_{DS(on)} table, and switching from the gate-charge method with the output charge QossQ_{oss} (Graovac, Pürschel and Kiep, Infineon application note, 2006), the data sheet giving no switching energies. Also the gate drive of both switches, 2QgVGSfsw2 Q_g V_{GS} f_{sw} with QgQ_g = 30 nC at 10 V (Table 6), and the ESR loss of the capacitors.
  • Not counted. The inductor is ideal: no part is chosen yet, so its copper and core loss are left out (see below). The junction is at 25 °C.

Run the sweep

One point of the sweep is a chain of commands in the command line. This is the one at the knee found below:

powercraft-cli run \
  --cmd circuit.template --params '{"topology":"syncBuck","vin":48,"vout":12,"iout":10,"ripplePct":30,"vripplePct":1,"fsw":300000}' \
  --cmd circuit.setParam --params '{"component":"Vin","key":"rs","value":0}' \
  --cmd circuit.variables --params '{"set":{"td":3e-08,"D":0.259}}' \
  --cmd device.fromPartNumber --params '{"mpn":"BSC070N10NS5","component":"Q1","apply":true}' \
  --cmd device.fromPartNumber --params '{"mpn":"BSC070N10NS5","component":"Q2","apply":true}' \
  --cmd simulation.settings --params '{"tEnd":0.000666667,"maxStep":2.5e-09}' \
  --cmd simulation.run --params '{}' \
  --cmd scope.measure --params '{"signals":["i(L1)","v(out)","i(R1)","i(C1.esr)","i(Cin.esr)"],"t0":0.0005}' \
  --cmd analysis.losses --params '{"t0":0.0005}' \
  --cmd device.get --params '{"id":"infineon/bsc070n10ns5"}'

Each run lasts 200 switching periods and is measured over the last 50. The script docs/tutorials/python/fsw_sweep.py runs this chain at every frequency, writes the table to sweep.csv, draws the figures and pastes the numbers into this article:

python3 docs/tutorials/python/fsw_sweep.py all     # data, figures, article
python3 docs/tutorials/python/fsw_sweep.py check   # fails when the article differs from sweep.csv

Results

fswf_{sw} (kHz) L (µH) C (µF) ½LI²pk (µJ) Efficiency Loss (W) Q1 switching (W) ΔiL (A) ΔVout (mV)
100 30.00 31.25 1981.8 98.64 % 1.65 0.52 3.00 120.2
200 15.00 15.62 990.9 97.79 % 2.70 1.03 3.00 120.8
300 10.00 10.42 660.6 96.96 % 3.75 1.55 3.00 122.1
400 7.50 7.81 495.5 96.15 % 4.80 2.06 3.00 124.0
500 6.00 6.25 396.4 95.34 % 5.85 2.58 3.00 126.6
600 5.00 5.21 330.3 94.55 % 6.90 3.10 3.00 129.8
700 4.29 4.46 283.2 93.78 % 7.95 3.61 3.00 133.6
800 3.75 3.91 247.8 93.01 % 9.00 4.13 3.00 138.1
900 3.33 3.47 220.2 92.26 % 10.05 4.64 3.00 143.3
1000 3.00 3.12 198.2 91.52 % 11.10 5.16 3.00 149.0

½LI²pk is the energy the inductor stores at its peak current. The size of its core grows with it, so it is the inductor size in this comparison.

Efficiency against switching frequency from the sweep, one point per run, with the knee circled.

The loss against switching frequency: Q1's switching loss, the conduction loss of both switches and the total loss.

The inductance sized for a 30 % ripple at each frequency, falling as one over the switching frequency.

The simulated output ripple at each frequency. It grows because the smaller output capacitor has a larger ESR. The inductor ripple, in the table, stays the same because the inductor is resized.

From 100 kHz to 1000 kHz the inductor falls from 30.00 µH to 3.00 µH, and the energy it stores at its peak current from 1981.8 µJ to 198.2 µJ. The efficiency falls from 98.64 % to 91.52 %, because the loss grows from 1.65 W to 11.10 W. Of that 9.45 W, 4.64 W is Q1's switching loss and 3.84 W is the reverse recovery of Q2's body diode. The conduction loss of both switches only rises from 0.65 W to 1.05 W: the fixed 30 ns dead times, in which Q2's body diode carries the current, take a larger share of a shorter period. The gate drive reaches 0.60 W at 1000 kHz. The inductor ripple stays at 3.00 A at every point, because L is resized each time.

The knee of the trade-off is at 300 kHz: 10.00 µH, 660.6 µJ, 96.96 % efficiency and 3.75 W of loss. Up to the knee, each watt of extra loss removes 629 µJ of inductor energy. Above it, each watt removes only 63 µJ.

Where the knee is

The total loss against the inductor's stored energy, one point per switching frequency, with the knee circled.

The knee is the point of the loss-against-size curve farthest from the straight line between its two ends, with both axes scaled to their range (the "Kneedle" rule of Satopää, Albrecht, Irwin and Raghavan, ICDCS Workshops 2011). It is a reproducible way to name the point after which each step costs more than it gives; it is not an optimum. If the heatsink or the efficiency target is fixed, read the table instead: the highest frequency whose loss you can still remove is the answer.

What the sweep leaves out

  • Inductor loss. A real inductor adds copper loss, which falls with frequency (fewer turns), and core loss, which rises with it. Both push the knee lower than the switches alone do. Repeat the sweep once a part is chosen: device.fromPartNumber fills L with the part's inductance, DCR and saturation current.
  • Reverse recovery. The library has no ErrE_{rr} table for this part, so the body diode's recovery when Q1 turns on is not counted. The data sheet gives QrrQ_{rr} = 89 nC at 40 A and 100 A/µs (Table 7), a test point well above this converter's.
  • Temperature. The junction is at 25 °C. Hot, RDS(on)R_{DS(on)} is higher (1.65 times at 125 °C in the data sheet's Diagram 9), which raises the conduction loss at every frequency but barely moves the knee.
  • Gate driver. The switching estimate assumes a 10 V driver with 2 Ω of external gate resistance. A stronger driver lowers the switching loss line and moves the knee up.

Do it yourself

  • One point in the app. Press Ctrl+K (Cmd+K on a Mac), choose Circuit From Template and give topology syncBuck with the spec above. Type BSC070N10NS5 in the part-number field of Q1 and of Q2, run, and read Analysis › Losses.
  • The sweep. Analysis › Parameter Sweep (analysis.paramSweep) steps the fsw variable of an open circuit; note that it keeps L and C fixed, so for a sweep that resizes them use the template at each frequency, as the script does.
  • Read on. MOSFET loss and junction temperature explains the loss equations; How to choose an inductor the part that comes after this choice.