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
Documentation

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 min

Choose File › Open Example › Isolated › LLC resonant half bridge.

The File menu open at Open Example, Isolated, LLC resonant half bridge, marked 1 to 4

  1. File.
  2. Open Example.
  3. Isolated.
  4. LLC resonant half bridge.

2. Read the power stage

Step 2 of 16 · about 1 min

A 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.

The power stage: source, two switches, ammeter, resonant capacitor and inductor, transformer, diode bridge, output capacitor and load, marked 1 to 9

  1. Vin: 400 V DC.
  2. Q1: the upper switch of the half bridge; Q2 below it is the lower one. They conduct in turn, so the switch node is a square wave between 0 V and 400 V.
  3. AmR: an ammeter in the resonant branch. Its output is the signal ir, the resonant current.
  4. Cr: the resonant capacitor, 63.3 nF.
  5. Lr: the resonant inductor, 40 µH. With Cr it resonates at 1/(2π√(Lr·Cr)) = 100 kHz, and √(Lr/Cr) = 25 Ω is the tank's characteristic impedance.
  6. T1: the transformer. Its turns ratio is 4:1 and its magnetising inductance Lm is 200 µH, five times Lr. That is the second inductor of the name LLC.
  7. D1: one of the four rectifier diodes D1 to D4.
  8. Co: the output capacitor, 100 µF.
  9. R1: the 5 Ω load, about 470 W.

3. Read the gate drive

Step 3 of 16 · about 1 min

The gate signals are made above the power stage and reach it through the net labels g1 and g2.

The gate drive: constant duty, PWM, inverter and two dead-time blocks, marked 1 to 4

  1. PWM: a carrier at 100 kHz (the circuit variable fr) against a constant duty of 0.5. It is the only place the switching frequency is set.
  2. Inv: the complement of the PWM signal, for the lower switch.
  3. DT2: delays the rising edge of the lower switch's signal by 200 ns.
  4. 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 min

Click ▶ 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.

The scope: v(out) above, ir below, marked 1 to 2

  1. v(out): the output voltage. It rings for most of the first millisecond as the circuit settles and then holds near 48 V.
  2. 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 min

Click Cursors (Shift+C) and place the two lines at 1.5 ms and 1.9 ms, after the ringing.

The scope with two cursors; the table heading now says cursors 1.5ms to 1.9ms, marked 1 to 2

  1. Cursors: shows two vertical lines and the values at each.
  2. 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, and ir peaks 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 is Vin/(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 min

The 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.

The Design menu with LLC Tank, marked 1

  1. LLC Tank: opens the Design panel on this task.

7. Give the spec

Step 7 of 16 · about 1 min

Fill 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.

The LLC Tank form: lowest input 360 V, highest input 420 V, output 48 V, 480 W, resonant frequency 100 kHz, marked 1 to 6

  1. Lowest input: 360 V. The gain has to rise to 400/360 = 1.11 there.
  2. Highest input: 420 V. The gain has to fall to 400/420 = 0.95 there.
  3. Output voltage: 48 V.
  4. Output power: 480 W.
  5. Resonant frequency: 100k, that is 100 kHz.
  6. Run: computes the design and changes nothing. Apply writes 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 min

Click Run, then collapse the bottom panel (↓ at its top right) to give the page the window.

The result: the four tank values and the gain against frequency at full and lightest load, marked 1 to 5

  1. 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.
  2. Resonant inductor: 50.51 µH.
  3. Resonant capacitor: 50.15 nF.
  4. Magnetising inductance: 252.5 µH, five times Lr.
  5. 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) and Mmin (0.95) are the gains the input range asks for. The lightest load curve (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 to Mmin at 115 kHz.

9. Read the numbers

Step 9 of 16 · about 1 min

Click Changes to apply to fold it, then Numbers.

The numbers: peak frequency 54.88 kHz, fmin 76.99 kHz, fmax 115.4 kHz, magnetising current 1.715 A, swing time 97.95 ns, marked 1 to 5

  1. 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.
  2. fmin: 76.99 kHz, where the full-load curve reaches Mmax. It is the lowest frequency the 360 V input needs.
  3. fmax: 115.4 kHz, where the lightest-load curve falls to Mmin. The converter works between fmin and fmax.
  4. imPeak: 1.715 A, the peak magnetising current at the switch's turn-off. It is the current that moves the switch node.
  5. 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 min

Click Apply, then fold Numbers and Changes made.

The verification: peak gain 1.222, swing time 97.95 ns, simulated output 47.899 V, marked 1 to 5

  1. 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.
  2. All targets met: all three checks pass.
  3. Full-load peak gain: 1.222, against 1.111 asked for at the lowest input.
  4. Leg swing time at turn-off: 97.95 ns, against the 200 ns dead time.
  5. 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 min

Close 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.

Three cycles: v(sw) is a square wave from 0 to 400 V, ir a sine wave of 4.4 A peak, marked 1 to 4

  1. The Scope menu, where Zoom X Only is: the zoom changes the time axis and leaves the voltage and current axes alone.
  2. Zoom In: halves the time window about its middle. Six clicks leave about 30 µs, three cycles of 10 µs.
  3. v(sw): the switch node, 0 V while Q2 conducts and 400 V while Q1 does, with the 200 ns dead time between.
  4. 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 min

Click Dock Back on the scope, then Analysis › Soft Switching. Type fr as the sweep's variable and the values in the Values field.

The Soft Switching form with the sweep over fr, marked 1 to 3

  1. Variable: the circuit variable to sweep. Here it is fr, the PWM's frequency.
  2. Values: the values to try, 40k, 50k, 55k, 60k, 77k, 100k and 115k.
  3. 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 min

The sweep: zero-voltage switching is lost at 55 kHz and below, and kept from 60 kHz up, marked 1 to 2

  1. All 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.
  2. 60k: the first row with Yes. 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 min

Close 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}

The console with the two commands, marked 1 to 3

  1. Console: every menu item is a command, and the console runs any of them.
  2. simulation.tune changes the source to its lowest input, 360 V, at the end of the run, with every capacitor voltage and inductor current kept.
  3. simulation.continue runs another 2 ms from there.

Click the Scope tab and Open in Separate Window.

The scope after the step: v(out) falls from 47.9 V to 43.0 V, ir falls from 4.35 A to 3.9 A, marked 1 to 2

  1. 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.
  2. 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 min

Click Dock Back on the scope, press ⌘⇧Y and type:

circuit.variables {"set":{"Vin":"360","fr":"83k"}}

The console with the command, marked 1 to 2

  1. Console: the same console.
  2. circuit.variables: sets the circuit variables Vin (the source) and fr (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.

The output at 360 V and 83 kHz: v(out) at 47.9 V, ir peaking at 5 A, marked 1 to 2

  1. 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.
  2. 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 min

Type 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}

The scope after the load drops to a tenth: v(out) jumps and settles at 48.7 V, ir falls from 5 A to 2.3 A, marked 1 to 2

  1. 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.
  2. 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.