Run this example
The browser version is coming soon. Until then, open this example in the desktop app. Download Voltecx
The llcHalfBridge example drives a resonant tank and a transformer from a half bridge at 400 V, with a diode bridge to 48 V. It ships with a tank for about 480 W. This page sizes a new tank for 250 W and an input of 360 to 420 V: a turns ratio of 4.04, a 97.2 µH resonant inductor, a 26.1 nF resonant capacitor and 486 µH of magnetising inductance. At 100 kHz the run gives 47.96 V out with a resonant current of 2.27 A peak, which matches the hand value. A frequency sweep finds zero-voltage switching from 60 kHz up, next to the 54.9 kHz the tank design predicts.
Open it
In the app: File › Open Example › Isolated › LLC resonant half bridge. Then choose Design › Design Steps › LLC Tank and enter the spec below. From the command line:
powercraft-cli run --cmd file.openExample --params '{"name": "llcHalfBridge"}' \
--cmd design.llc --params '{"vin": 400, "vinMin": 360, "vinMax": 420, "vout": 48, "pout": 250, "fr": "100k", "apply": true}' \
--cmd simulation.run \
--cmd scope.measure --params '{"signals": ["v(out)", "ir"], "t0": "1.4m", "t1": "1.8m"}'
| Spec | Value |
|---|---|
| Nominal input | 400 V |
| Input range | 360 to 420 V |
| Output | 48 V, 250 W (9.216 Ω) |
| Resonant frequency | 100 kHz |
| Dead time | 200 ns |
The hand calculation
A half bridge puts a square wave of half the input on the tank. At the resonant frequency the tank's gain is one, so the turns ratio sets the output. With the rectifier's 1.5 V drop at this current:
The rectifier and load look like a resistor to the tank, seen through the transformer:
The design step picks the quality factor = 0.4855 and = 5. These give a peak gain 10 % above the 1.11 that the 360 V input needs. Then:
| Result of LLC Tank | Value |
|---|---|
| Peak gain at full load | 1.222, at 54.88 kHz |
| (gain 1.11, 360 V in) | 76.99 kHz |
| (gain 0.95 at 10 % load, 420 V in) | 115.4 kHz |
| Magnetising current at turn-off, at | 0.892 A |
| Switch-node swing time | 188 ns |
The gain curve depends only on and , so it is the same shape as the example's 480 W tank, only with new component values.
Zero-voltage switching needs the magnetising current to move the switch node before the other switch turns on. The node has to move = 2 · 200 pF · 420 V = 168 nC. At 0.892 A that takes 188 ns, which is inside the 200 ns dead time but with little to spare. The design step reports 515.7 µH as the largest that still swings in time.
The run
Run with the new tank at 400 V and 100 kHz, then measure from 1.4 ms to 1.8 ms.
At resonance the resonant current is the sum of two parts a quarter period apart:
- the load's part, with a peak of = 2.03 A;
- the magnetising current, with a peak of = 1.03 A.
Together they give = 2.27 A.
| Quantity | Hand | Run |
|---|---|---|
| Mean output | 48 V | 47.96 V |
| Output ripple (peak to peak) | — | 0.25 V |
| Resonant current, peak | 2.27 A | 2.27 A |
| Resonant current, rms | — | 1.60 A |
Where zero-voltage switching starts
Below the peak-gain frequency the tank turns capacitive, and the switches turn on hard. Sweep the PWM frequency fr with Analysis › Soft Switching:
powercraft-cli run --cmd analysis.softSwitching \
--params '{"sweep": {"variable": "fr", "values": [40000, 50000, 55000, 60000, 70000, 80000, 100000, 115000]}}'
| fr | 40 kHz | 50 kHz | 55 kHz | 60 kHz | 70 to 115 kHz |
|---|---|---|---|---|---|
| Zero-voltage turn-on | no | no | no | yes | yes |
Both switches gain zero-voltage switching between 55 and 60 kHz. The tank design put the peak at 54.88 kHz, so the first-harmonic model and the simulation agree to within the sweep's 5 kHz steps. The whole working range, 77 to 115 kHz, switches at zero voltage.
Try next
- Step the input to 360 V with
simulation.tuneand find the frequency that brings the output back to 48 V, as in the LLC tutorial. - Raise
T1's magnetising inductance above 515.7 µH and rerun the sweep: the swing no longer fits in the dead time. - See the boost PFC worked example for the stage that usually feeds an LLC its 400 V.
Every number on this page comes from a run that a test repeats (auto::tests_worked_examples), so the page changes when the simulator does.