LLC resonant converter: design the tank and check the gain
An LLC converter drives a resonant tank (a capacitor and an inductor in series, with the transformer's magnetising inductance in parallel) from a half bridge. Near the tank's resonant frequency the gain hardly depends on the load, and the switches turn on at zero voltage. You open an LLC half bridge, read its resonant current and output, let Design › Design Steps › LLC Tank size the tank for an input range, read its gain curve, check the zero-voltage switching, and then step the input voltage and the load. About 25 minutes.
Pictures: a numbered red box is what you click or read, ▶ Run is a button, File › Open Example a menu path, ⌘⇧Y a key (⌘ is Cmd on a Mac, Ctrl elsewhere).
1. Open the example
Step 1 of 16 · about 1 minChoose File › Open Example › Isolated › LLC resonant half bridge.
File.Open Example.Isolated.LLC resonant half bridge.
2. Read the power stage
Step 2 of 16 · about 1 minA 400 V source feeds a half bridge. Its switch node drives a resonant capacitor, a resonant inductor and a 4:1 transformer. A diode bridge and a capacitor turn the transformer's output into DC for a 5 Ω load.
Vin: 400 V DC.Q1: the upper switch of the half bridge;Q2below it is the lower one. They conduct in turn, so the switch node is a square wave between 0 V and 400 V.AmR: an ammeter in the resonant branch. Its output is the signalir, the resonant current.Cr: the resonant capacitor, 63.3 nF.Lr: the resonant inductor, 40 µH. WithCrit resonates at 1/(2π√(Lr·Cr)) = 100 kHz, and √(Lr/Cr) = 25 Ω is the tank's characteristic impedance.T1: the transformer. Its turns ratio is 4:1 and its magnetising inductanceLmis 200 µH, five timesLr. That is the second inductor of the name LLC.D1: one of the four rectifier diodesD1toD4.Co: the output capacitor, 100 µF.R1: the 5 Ω load, about 470 W.
3. Read the gate drive
Step 3 of 16 · about 1 minThe gate signals are made above the power stage and reach it through the net labels g1 and g2.
PWM: a carrier at 100 kHz (the circuit variablefr) against a constant duty of 0.5. It is the only place the switching frequency is set.Inv: the complement of the PWM signal, for the lower switch.DT2: delays the rising edge of the lower switch's signal by 200 ns.DT1: the same for the upper switch. While both are off, the resonant current moves the switch node from one rail to the other.
4. Run it
Step 4 of 16 · about 1 minClick ▶ Run, then Open in Separate Window at the top right of the scope, so the scope has a window of its own (the next steps use it). The window folds its signal list to a strip on the left edge: click Show signals there, then open Voltages and tick v(out). A meter's signal is drawn by what it measures, so v(out) (volts) and ir (amperes) each get an axis of their own.
v(out): the output voltage. It rings for most of the first millisecond as the circuit settles and then holds near 48 V.ir: the resonant current. It is close to a sine at 100 kHz, which is why the first-harmonic model of the tank works.
5. Measure whole cycles
Step 5 of 16 · about 1 minClick Cursors (Shift+C) and place the two lines at 1.5 ms and 1.9 ms, after the ringing.
Cursors: shows two vertical lines and the values at each.- The table's heading now reads
cursors 1.5ms – 1.9ms.v(out)has a mean of 48.25 V with 114 mV peak to peak, andirpeaks at 4.52 A with an RMS of 3.19 A (a sine has an RMS of its peak divided by √2). At the resonant frequency the gain is one, so the output isVin/(2·4) = 50 V less two diode drops, 48.6 V; the run gives 48.25 V.
6. Open Design › LLC Tank
Step 6 of 16 · about 1 minThe example's tank was chosen by hand. The task Design › Design Steps › LLC Tank designs it from a spec.
First click Dock Back on the scope to put it back in the dock.
LLC Tank: opens the Design panel on this task.
7. Give the spec
Step 7 of 16 · about 1 minFill in the five fields. An empty field uses the circuit's value or a default; you at the right of a field says you typed it. The nominal input, where the gain is one, is the 400 V of the circuit's source.
Lowest input: 360 V. The gain has to rise to 400/360 = 1.11 there.Highest input: 420 V. The gain has to fall to 400/420 = 0.95 there.Output voltage: 48 V.Output power: 480 W.Resonant frequency: 100k, that is 100 kHz.Run: computes the design and changes nothing.Applywrites it into the circuit.
Advanced holds the rest: the ratio Lm/Lr (5 by default), the quality factor (by default the largest whose peak gain is 10 % above what the low input needs), the lightest load (10 %), the rectifier drop, the switch capacitance and the dead time.
8. Read the tank and its gain curve
Step 8 of 16 · about 1 minClick Run, then collapse the bottom panel (↓ at its top right) to give the page the window.
- Turns ratio
Np/Ns: 4.032. For a gain of one at 400 V, half of 400 V (the half bridge's square wave) divided by the 48 V output plus 1.6 V of diode drops. Resonant inductor: 50.51 µH.Resonant capacitor: 50.15 nF.Magnetising inductance: 252.5 µH, five timesLr.full load: the gain against switching frequency at 480 W. It peaks at 1.22 near 55 kHz and is 1 at 100 kHz.Mmax(1.11) andMmin(0.95) are the gains the input range asks for. Thelightest loadcurve (10 % of the power) peaks much higher; the plot cuts it off at twice the full-load peak so the working range stays readable. It falls toMminat 115 kHz.
9. Read the numbers
Step 9 of 16 · about 1 minClick Changes to apply to fold it, then Numbers.
fPeak: 54.88 kHz, the frequency of the full-load peak. Below it the tank is capacitive and the switches lose zero-voltage switching, so this is the lowest the converter may run.fmin: 76.99 kHz, where the full-load curve reachesMmax. It is the lowest frequency the 360 V input needs.fmax: 115.4 kHz, where the lightest-load curve falls toMmin. The converter works betweenfminandfmax.imPeak: 1.715 A, the peak magnetising current at the switch's turn-off. It is the current that moves the switch node.tSwing: 97.95 ns. The node has to move 2·Coss·Vin,max= 2 · 200 pF · 420 V = 168 nC, and 168 nC at 1.715 A takes 97.95 ns. The dead time is 200 ns, so the node arrives before the switch turns on.
Rac is the load seen from the tank (65.37 Ω), Q the quality factor 0.485 and Cf the output capacitor (47.74 µF, sized for the ripple at fmin, where the output pulses are longest). The list under Changes to apply is what Apply will write: the turns ratio Nt 4 → 4.032, T1.lm 200 µH → 252.5 µH, Lres 40 µH → 50.51 µH, Cres 63.3 nF → 50.15 nF, the load R1.r 5 Ω → 4.8 Ω (480 W at 48 V), Co.c 100 µF → 47.74 µF.
10. Apply and read the verification
Step 10 of 16 · about 1 minClick Apply, then fold Numbers and Changes made.
Apply: writes every change in one step, so ⌘Z takes the design back out. It also sets the run's end time to 1.83 ms.All targets met: all three checks pass.Full-load peak gain: 1.222, against 1.111 asked for at the lowest input.Leg swing time at turn-off: 97.95 ns, against the 200 ns dead time.- The third check runs the circuit with the new tank at the nominal input: the mean output is 47.899 V, 0.21 % from 48 V (3 % is allowed).
The badge out of date over the panel says the scope still shows the run of the old circuit.
11. Run it again and look at one cycle
Step 11 of 16 · about 1 minClose the Design page with the × on its tab, open the bottom panel again, then click ▶ Run. When the run ends, click Open in Separate Window on the scope. Tick v(sw) in the scope, ir keeps its own axis; choose Scope > Zoom Axis > Time Only and then click Zoom In six times.
- The
Scopemenu, whereZoom X Onlyis: the zoom changes the time axis and leaves the voltage and current axes alone. Zoom In: halves the time window about its middle. Six clicks leave about 30 µs, three cycles of 10 µs.v(sw): the switch node, 0 V whileQ2conducts and 400 V whileQ1does, with the 200 ns dead time between.ir: the resonant current, a sine with a peak of 4.36 A. Its two parts: the load current's part peaks at π·Io/(2·n) = π · 10 A/(2 · 4.032) = 3.9 A, and the magnetising current at 1.7 A, a quarter of a period apart. They add as √(3.9² + 1.7²) = 4.3 A. Over 1.4 ms to the end,v(out)has a mean of 47.9 V, as the design asked.
12. Ask for the zero-voltage check over a frequency range
Step 12 of 16 · about 1 minClick Dock Back on the scope, then Analysis › Soft Switching. Type fr as the sweep's variable and the values in the Values field.
Variable: the circuit variable to sweep. Here it isfr, the PWM's frequency.Values: the values to try, 40k, 50k, 55k, 60k, 77k, 100k and 115k.Run: runs a copy of the circuit once per value and classifies every turn-on of every switch.
13. Read the result
Step 13 of 16 · about 1 minAll zero voltage: whether every switch turned on at zero voltage. It does not at 40, 50 and 55 kHz and does from 60 kHz up.60k: the first row withYes. The result line says the same: both switches gain zero-voltage switching between 55 and 60 kHz. The tank design said 54.88 kHz for the peak (fPeak), so the first-harmonic model and the simulation agree within the 5 kHz of this scan. Everything in the working range, 77 to 115 kHz, is zero-voltage.
The switches in this circuit have no output capacitance, so the check reads the voltage across the switch at its turn-on edge: about −0.07 V, the body diode conducting, which happens when the current has reversed during the dead time. Whether the dead time is long enough for a real switch is the swing time of step 9.
14. Step the input voltage
Step 14 of 16 · about 1 minClose the result window and press ⌘⇧Y to open the console. Type these two lines, each followed by Enter:
simulation.tune {"component":"Vin","key":"v","value":360}
simulation.continue {"duration":0.002}
Console: every menu item is a command, and the console runs any of them.simulation.tunechanges the source to its lowest input, 360 V, at the end of the run, with every capacitor voltage and inductor current kept.simulation.continueruns another 2 ms from there.
Click the Scope tab and Open in Separate Window.
v(out): the output follows the input down by the same 10 %, from 47.9 V to 43.0 V. The switching frequency is still 100 kHz, where the gain is one for any load, so nothing opposes the change. The 48 V has to be brought back by a lower frequency.ir: the resonant current falls from 4.35 A to 3.9 A because the load current falls with the output.
15. Lower the frequency to hold the output
Step 15 of 16 · about 1 minClick Dock Back on the scope, press ⌘⇧Y and type:
circuit.variables {"set":{"Vin":"360","fr":"83k"}}
Console: the same console.circuit.variables: sets the circuit variablesVin(the source) andfr(the PWM frequency). This edits the circuit; undo it to get the 400 V and 100 kHz back.
Then type simulation.run. When the run ends, click Show results on its notice and Open in Separate Window on the scope, tick v(out) under Voltages, click Zoom to Fit and Zoom In three times (only the time axis zooms, as in step 11), so that about twenty cycles fill the plots.
v(out): 47.94 V from 360 V in, the 48 V the design asked for. The first-harmonic model of step 9 asked for 77 kHz (fmin); the simulated circuit reaches 48 V at 83 kHz.ir: the peak is 5.0 A, against 4.35 A at 400 V and 100 kHz. Below resonance the magnetising current grows, and the tank carries more current for the same power.
16. Take the load down to a tenth
Step 16 of 16 · about 1 minType these two lines, or run them as the picture's script does:
simulation.tune {"component":"R1","key":"r","value":48}
simulation.continue {"duration":0.0015}
v(out): the output jumps to 52.9 V, falls back within 0.2 ms and settles at 48.74 V, 0.8 V (1.7 %) above its full-load value. At a tenth of the load, the frequency stays where it was and the output hardly moves: this is the property the LLC is chosen for. The lightest-load curve of step 8 shows how far the frequency would have to rise to bring it back to exactly 48 V.ir: the peak falls from 5.0 A to 2.3 A and no further. The rest is the magnetising current, which does not depend on the load. It is why the light-load efficiency of an LLC is limited.
The same steps from a script
powercraft-cli run \
--cmd file.openExample --params '{"name":"llcHalfBridge"}' \
--cmd design.llc --params '{"vin":400,"vinMin":360,"vinMax":420,"vout":48,"pout":480,"fr":"100k","apply":true}' \
--cmd simulation.run --params '{}' \
--cmd scope.measure --params '{"signals":["v(out)","ir"],"t0":"1.4m"}' \
--cmd analysis.softSwitching --params '{"sweep":{"variable":"fr","values":[40000,50000,55000,60000,77000,100000,115000]}}'
scope.measure gives a mean of 47.9 V for v(out) and a peak of 4.35 A for ir. The sweep's boundary says where zero-voltage switching starts: between 55 000 and 60 000 Hz.
Back to the learning path.

















