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(topologysyncBuck) sizes the inductor for a 30 % ripple (3 A peak to peak) and the output capacitor for a 1 % ripple at each frequency: and . 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 = 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, = 24 ns + 6 ns (Table 5). The duty is raised by for the on-time the dead time takes.
- Losses counted. For each switch, conduction from the data sheet's table, and switching from the gate-charge method with the output charge (Graovac, Pürschel and Kiep, Infineon application note, 2006), the data sheet giving no switching energies. Also the gate drive of both switches, with = 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
| (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.
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 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.fromPartNumberfills L with the part's inductance, DCR and saturation current. - Reverse recovery. The library has no table for this part, so the body diode's recovery when Q1 turns on is not counted. The data sheet gives = 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, 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
syncBuckwith the spec above. TypeBSC070N10NS5in the part-number field of Q1 and of Q2, run, and read Analysis › Losses. - The sweep. Analysis › Parameter Sweep (
analysis.paramSweep) steps thefswvariable 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.