Quasi-Resonant Flyback Guide: Switch at the Valley and Save 2.2 W — a 65 W USB-C Adapter Worked Out

Author: Abloom Spark Date: December 06, 2026

A hard-switched flyback turns its MOSFET on at the worst possible moment — at the top of the drain voltage, with the full 445 V across it. Every switch-on dumps the energy stored in the MOSFET's output capacitance, ½·Coss·V², straight into heat. At 130 kHz that is watts, not milliwatts. A quasi-resonant flyback does one clever thing differently: after the secondary current falls to zero, it waits. The drain voltage rings down with the primary inductance and the capacitance, and the controller switches the MOSFET on at the bottom of that ring — in a valley. The turn-on loss falls with the square of the voltage, so switching at 205 V instead of 445 V cuts it by nearly five times. This guide designs a real 65 W USB-C adapter (90–265 V AC in, 20 V / 3.25 A out) around onsemi's NCP1342 quasi-resonant controller, works out every number, and shows what frequency foldback does at light load.

Left: quasi-resonant flyback schematic — bridge and bulk capacitor feeding the primary of a transformer with turns ratio 5.85 to 1, an N-channel MOSFET to primary ground with Coss plus stray capacitance of 220 picofarads across it, an NCP1342 quasi-resonant controller driving the gate, and a Schottky diode and output capacitor on the secondary giving 20 volts at 3.25 amps. Below: drain voltage waveform at 230 volts AC — flat at 445 volts while the secondary conducts, then ringing down around 325 volts, with four valleys marked, the fourth at 205 volts where the MOSFET turns on. Right: efficiency chart at 230 volts AC — quasi-resonant 85.5 percent at 6.5 watts, 91.7 at 32.5 watts, 92.9 at 65 watts, against hard-switched 61.0, 86.2 and 90.0 percent.

Figure 1: (a) The quasi-resonant flyback — the NCP1342 watches the drain voltage through its ZCD pin and turns the MOSFET on at a valley of the ring, not at the top. The Coss + stray capacitance of 220 pF is the energy that gets wasted on every hard switch-on. The waveform strip shows the 230 V AC case — the MOSFET turns on at the 4th valley, 205 V, giving 140 kHz. (b) Efficiency at 230 V AC: valley switching is worth 2.9 points at full load and 24.5 points at 10% load, because the hard-switched version keeps paying the full turn-on loss 130,000 times a second. (The NCP1342 demo-board figures are onsemi's.)

The design — a 65 W adapter at the worst case

Design a flyback at the lowest line voltage, because that is where the peak current is highest. At 90 V AC the bulk capacitor sags to about Vdc = 100 V. Pick a reflected output voltage VOR = 120 V, so the turns ratio is Np:Ns = 120 / (20 + 0.5) = 5.85:1 (the 0.5 V is the Schottky diode drop), and the DCM-boundary duty is Dmax = VOR / (VOR + Vdc) = 120 / 220 = 0.545. Assume 91% efficiency, so the input power is Pin = 65 / 0.91 = 71.4 W. At f = 130 kHz the period is T = 7.69 µs, the on-time is ton = D / f = 4.20 µs, and the primary inductance is Lp = (Vdc·D)² / (2·Pin·f) = (100 × 0.545)² / (2 × 71.4 × 130,000) = 160 µH. The peak primary current is Ipk = Vdc·ton / Lp = 100 × 4.20 µs / 160 µH = 2.62 A, the energy per cycle is E = ½·Lp·Ipk² = ½ × 160 µH × 2.62² = 550 µJ, and E × f = 71.4 W — the design closes. On the secondary, Ls = Lp / (Np:Ns)² = 160 / 5.85² = 4.68 µH, Is_pk = 2.62 × 5.85 = 15.3 A, and the secondary conduction time is tsec = Ls·Is_pk / (Vout + Vf) = 4.68 µH × 15.3 A / 20.5 V = 3.50 µs. Then ton + tsec = 4.20 + 3.50 = 7.69 µs = T — the converter sits exactly on the DCM boundary at low line, which is where it was designed. One warning: D = VOR / (VOR + Vdc) is the DCM-boundary duty, valid only at low line. At higher line voltages the on-time follows from the peak current and the energy, not from that formula — using it at 230 V AC would give a wrong ton.

The valley — where the watts are saved

When the secondary current reaches zero, the drain is left floating, and the primary inductance Lp rings against the total capacitance at the drain, Ctot — the MOSFET's Coss plus transformer stray capacitance plus layout, taken here as 220 pF. The ring period is Tr = 2Ï€·√(Lp·Ctot) = 2Ï€·√(160 µH × 220 pF) = 1.18 µs, so the valleys are 0.59 µs apart, and the drain voltage swings around Vdc by ±VOR. The valley voltage is Vdc − VOR and the peak is Vdc + VOR. The turn-on loss is P = ½·Ctot·V²·f, so it scales with the square of the voltage at which the MOSFET turns on:

  • 90 V AC: Vdc = 100 V. Peak 220 V, valley 100 − 120 = −20 V — the valley goes below zero, so the MOSFET's body diode clamps it to about 0 V. That is nearly zero-voltage switching: hard-switched turn-on loss 0.69 W, valley-switched about 0 W. First-valley frequency 121 kHz.
  • 230 V AC: Vdc = 325 V. The on-time shrinks to ton = Lp·Ipk / Vdc = 160 µH × 2.62 A / 325 V = 1.29 µs, leaving a dead time of 7.69 − 1.29 − 3.50 = 2.90 µs — that is 4.9 valley periods. Peak 445 V, valley 325 − 120 = 205 V. Hard-switched turn-on loss = ½ × 220 pF × 445² × 130 kHz = 2.83 W; valley-switched = ½ × 220 pF × 205² × 130 kHz = 0.60 W — a saving of 2.23 W. Turning on at the 4th valley gives a period of 1.29 + 3.50 + 4 × 0.59 = 7.15 µs, or 140 kHz.
  • 265 V AC: Vdc = 375 V. Valley 375 − 120 = 255 V. Hard-switched 3.50 W against valley-switched 0.93 W — a saving of 2.57 W. The 5th valley gives 132 kHz.

The pattern is the point: as the line rises, the controller picks a deeper valley — 1st at 90 V AC, 4th at 230 V, 5th at 265 V — and the frequency stays near 130 kHz. That is valley lockout, and the NCP1342 works down to the 6th valley. The waveform strip in Figure 1 shows the 230 V AC case: flat at 445 V while the secondary conducts, then ringing around 325 V, with the MOSFET turning on at the 4th valley, 205 V.

Frequency foldback — the light-load trick

Valley switching helps at full load, but it is at light load that it changes the game. At 10% load (6.5 W) with the frequency held at 130 kHz, the peak current falls to Ipk = 0.86 A, ton = 1.37 µs and tsec = 1.14 µs, so the dead time stretches to 7.69 − 1.37 − 1.14 = 5.18 µs — 8.8 valley periods. That is past the 6th-valley limit, so the controller cannot find a valley it is allowed to use. The NCP1342 then folds the frequency back, down to a 25 kHz minimum clamp (with a quiet-skip mode below that, and no-load power under 30 mW). At 25 kHz the energy per cycle rises — Ipk climbs to 1.95 A — but the Coss loss, which is paid once per cycle, falls from 0.60 W (valley-switched at 130 kHz) to 0.115 W (valley-switched at 25 kHz), while the hard-switched version keeps paying 2.83 W at 130 kHz. That is the whole point: at light load the per-cycle loss dominates, so fewer cycles wins even though each cycle carries more current.

The efficiency budget — and a reality check

Here is the loss budget at 230 V AC (MOSFET Rds(on) 0.4 Ω assumed, leakage inductance 1.5% of Lp, core and miscellaneous losses as stated):

  • 65 W: quasi-resonant 92.9% (4.93 W lost: Coss 0.60, MOSFET conduction 0.15, diode 1.62, core 0.5, snubber 1.05, misc 1.01) against hard-switched 90.0% (7.20 W).
  • 32.5 W: quasi-resonant 91.7% (2.94 W) against hard-switched 86.2% (5.21 W).
  • 6.5 W: quasi-resonant with foldback to 25 kHz 85.5% (1.10 W) against hard-switched at fixed 130 kHz 61.0% (4.16 W).

The diode is the biggest single loss at full load — 0.5 V × 3.25 A = 1.62 W — and a synchronous rectifier would buy most of it back. Two numbers deserve a note. The design assumed 91% efficiency (Pin 71.4 W) while the budget at 230 V AC comes to 92.9% (Pin 69.9 W): that is design margin, not an error — the design is done at the worst case, low line, and the budget is checked at 230 V AC. And the budget's peak current, 2.59 A, agrees with the design value of 2.62 A within 1%. As a reality check, onsemi's 90 W NCP1342 demo board measures 91.3% at 115 V AC and 92.2% at 230 V AC (20 V / 4.5 A) — the same range this budget predicts.

Key points to remember

  • Worked example: 65 W USB-C adapter, 90–265 V AC in, 20 V / 3.25 A out, NCP1342, DCM boundary at low line. VOR 120 V, Np:Ns 5.85:1, Dmax 0.545, Lp 160 µH, ton 4.20 µs, Ipk 2.62 A, 550 µJ per cycle, Is_pk 15.3 A, tsec 3.50 µs. D = VOR / (VOR + Vdc) is the DCM-boundary duty only — at higher line, ton follows from Ipk and the energy.
  • The valley: Ctot 220 pF rings with Lp 160 µH in 1.18 µs (valleys 0.59 µs apart). At 230 V AC the 4th valley is 205 V, so turn-on loss falls from 2.83 W to 0.60 W — a saving of 2.23 W. At 90 V AC the valley goes below zero and the body diode clamps it to about 0 V: nearly zero-voltage switching.
  • Valley lockout: the controller picks a deeper valley as the line rises (1st at 90 V AC, 4th at 230 V, 5th at 265 V) to hold the frequency near 130 kHz, and works down to the 6th valley.
  • Light load: at 6.5 W the dead time stretches to 8.8 valleys, past the 6th-valley limit, so the NCP1342 folds back to a 25 kHz minimum clamp. Efficiency at 10% load: 85.5% quasi-resonant against 61.0% hard-switched at fixed 130 kHz.
  • Efficiency at 230 V AC: 92.9% / 91.7% / 85.5% quasi-resonant at 65 / 32.5 / 6.5 W, against 90.0% / 86.2% / 61.0% hard-switched. The diode is the biggest loss (1.62 W at full load). Onsemi's 90 W NCP1342 demo measures 91.3% at 115 V AC and 92.2% at 230 V AC.