Quasi-Resonant Flyback Controller (Valley Lockout) (qrFlybackController)
Runs an off-line flyback in peak current mode and turns the switch on in a drain valley read from the auxiliary winding; FB picks the valley, and at light load the controller folds the frequency back and skips.
Group: ICs · Kind: {"definition":"qrFlybackController","kind":"subsystem"}
When to use it
Use it for an off-line flyback adapter or auxiliary supply with an NCP1342-class controller, when you want valley switching, valley lockout, frequency foldback, skip mode and over-power protection from the auxiliary winding. circuit.applicationCircuit with topology qrFlyback builds a 65 W, 19 V flyback around the data sheet's ZCD/OPP design example. For a fixed-frequency flyback use the PWM Controller.
Pins
| Pin | Domain | Meaning |
|---|---|---|
FB |
electrical | Feedback, internal 20 kΩ pull-up to 5 V; an optocoupler to GND sets the peak current |
ZCD |
electrical | Auxiliary winding divider: valleys in the off-time, the negative OPP voltage in the on-time |
CS |
electrical | Current sense resistor voltage |
VCC |
electrical | Supply, the controller starts above 17 V and stops below 9 V |
GND |
electrical | Ground reference, at the lower end of the sense resistor |
DRV |
electrical | Gate drive of the flyback switch, clamped at 12 V |
Common parameters
kFb: VFB to internal current set point division ratio (Default: 4)vIlim1: Current limit threshold on CS (Default: 0.8)vCsMin: Minimum peak current on CS (Default: 0.2)vZcdTrig: ZCD threshold, falling (valley detection) (Default: 0.06)tZcdBlank: ZCD blanking delay after turn-off (Default: 0.0000007)
Parameters
| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
vccOn |
V | 17 | 1 – 30 V | VCC start-up threshold | Table 6 VCC(on) typ 17.0 V (16.0 to 18.0 V), p.7 |
vccOff |
V | 9 | 500m – 30 V | VCC minimum operating voltage (UVLO) | Table 6 VCC(off) typ 9.0 V (8.5 to 9.5 V), p.7 |
vFbOpen |
V | 5 | 500m – 20 V | FB open-pin voltage (the pull-up's source) | Table 6 VFB(open) typ 5.0 V, p.8 |
kFb |
— | 4 | 500m – 20 | VFB to internal current set point division ratio | Table 6 KFB typ 4.0 (3.7 to 4.3), p.8 |
rFb |
Ω | 20000 | 100 – 1meg Ω | FB internal pull-up resistor | Table 6 RFB typ 20 kΩ (17 to 23 kΩ), p.8 |
v1to2 |
V | 1.4 | 0 – 5 V | FB falling: 1st to 2nd valley | Table 6 V1to2 typ 1.400 V, p.8; Table 7, p.18 |
v2to3 |
V | 1.2 | 0 – 5 V | FB falling: 2nd to 3rd valley | Table 6 V2to3 typ 1.200 V, p.8; Table 7, p.18 |
v3to4 |
V | 1.1 | 0 – 5 V | FB falling: 3rd to 4th valley | Table 6 V3to4 typ 1.100 V, p.8; Table 7, p.18 |
v4to5 |
V | 1 | 0 – 5 V | FB falling: 4th to 5th valley | Table 6 V4to5 typ 1.000 V, p.8; Table 7, p.18 |
v5to6 |
V | 0.9 | 0 – 5 V | FB falling: 5th to 6th valley | Table 6 V5to6 typ 0.900 V, p.8; Table 7, p.18 |
v2to1 |
V | 2 | 0 – 5 V | FB rising: 2nd to 1st valley | Table 6 V2to1 typ 2.000 V, p.8; Table 7, p.18 |
v3to2 |
V | 1.8 | 0 – 5 V | FB rising: 3rd to 2nd valley | Table 6 V3to2 typ 1.800 V, p.8; Table 7, p.18 |
v4to3 |
V | 1.7 | 0 – 5 V | FB rising: 4th to 3rd valley | Table 6 V4to3 typ 1.700 V, p.8; Table 7, p.18 |
v5to4 |
V | 1.6 | 0 – 5 V | FB rising: 5th to 4th valley | Table 6 V5to4 typ 1.600 V, p.8; Table 7, p.18 |
v6to5 |
V | 1.5 | 0 – 5 V | FB rising: 6th to 5th valley | Table 6 V6to5 typ 1.500 V, p.8; Table 7, p.18 |
tOnMax |
s | 0.000032 | 100n – 1m s | Maximum on-time | Table 6 ton(MAX) typ 32 µs (28 to 40 µs), p.8 |
vZcdTrig |
V | 0.06 | -500m – 5 V | ZCD threshold, falling (valley detection) | Table 6 VZCD(trig) typ 60 mV, p.8 |
vZcdHys |
V | 0.025 | 0 – 1 V | ZCD hysteresis | Table 6 VZCD(HYS) typ 25 mV, p.8 |
tDemag |
s | 0.00000008 | 0 – 10u s | Demagnetization propagation delay (valley to DRV high) | Table 6 tdemag typ 80 ns, p.8 |
vZcdMin |
V | -0.7 | -5 – 0 V | ZCD negative clamp: the most negative VOPP | Table 6 VZCD(MIN) typ -0.7 V, p.8 |
tZcdBlank |
s | 0.0000007 | 0 – 100u s | ZCD blanking delay after turn-off | Table 6 tZCD(blank) typ 700 ns, p.8 |
tTout1 |
s | 0.0001 | 100n – 10m s | Valley timeout during soft-start | Table 6 t(tout1) typ 100 µs, p.8 |
tTout2 |
s | 0.000006 | 100n – 10m s | Valley timeout after soft-start | Table 6 t(tout2) typ 6.0 µs, p.8 |
vIlim1 |
V | 0.8 | 10m – 5 V | Current limit threshold on CS | Table 6 VILIM1 typ 0.800 V, p.8 |
tLeb1 |
s | 0.000000265 | 0 – 10u s | Leading-edge blanking of the CS comparators | Table 6 tLEB1 typ 265 ns, p.8 |
vCsMin |
V | 0.2 | 0 – 5 V | Minimum peak current on CS | Table 6 VCS(MIN) typ 200 mV (versions xxxAx), p.9; page 14: 0.2 V typical |
vMpcmDelta |
V | 0.4 | 0 – 5 V | Minimum peak current shift in frequency foldback | Table 6 VMPCM(delta) typ 400 mV (versions xxxxA), p.10; page 19: 400 mV typical |
vMpcmEntry |
V | 0.8 | 0 – 5 V | FB below which frequency foldback (MPCM) starts | Table 6 VMPCM(entry) typ 800 mV, p.10 |
tDtMax |
s | 0.000036 | 0 – 1m s | Dead time added at the skip threshold in frequency foldback | Page 19: tDT(MAX) 36 µs typical as FB falls to 0.4 V (Table 6 gives 32 µs minimum, p.10) |
vSkip |
V | 0.4 | 0 – 5 V | Skip threshold, FB falling | Table 6 Vskip typ 400 mV, p.10 |
vSkipHys |
V | 0.05 | 0 – 1 V | Skip hysteresis, FB rising | Table 6 Vskip(HYS) typ 50 mV, p.10 |
fMin |
Hz | 25000 | 100 – 1meg Hz | Minimum frequency clamp | Table 6 fMIN typ 25 kHz, p.9 |
tSsStart |
s | 0.004 | 1u – 1 s | Soft-start period (the current limit ramps from 0 to VILIM1) | Table 6 tSSTART typ 4.0 ms, p.9; page 14: the clamp ramps from 0 to 0.8 V within 4 ms |
vDrvHigh |
V | 12 | 1 – 30 V | DRV high-level clamp | Table 6 VDRV(high2) typ 12 V at VCC = 30 V, p.8 |
vDrvDrop |
V | 1.2 | 0 – 10 V | DRV high level below VCC when not clamped | Table 6 VDRV(high1) min 8.0 V at VCC = VCC(off) + 0.2 V = 9.2 V, p.8 |
rDrvH |
Ω | 24 | 100m – 10k Ω | DRV pull-up resistance | derived: 12 V clamp over the 500 mA IDRV(SRC) of Table 6, p.8 |
rDrvL |
Ω | 15 | 100m – 10k Ω | DRV pull-down resistance | derived: 12 V clamp over the 800 mA IDRV(SNK) of Table 6, p.8 |
rOff |
Ω | 100000000 | 1k – 1t Ω | Off-state resistance of the internal switches | assumption: large against the pin networks |
Parameter descriptions are in English in both languages.
Model
The CS set point is V(FB) / kFb, at least vCsMin (plus vMpcmDelta in foldback, falling to vCsMin at vSkip) and at most the soft-start ramp and vIlim1 + VOPP, where VOPP is the negative ZCD voltage in the on-time down to vZcdMin. The on-time ends when CS passes it after tLeb1, or after tOnMax. After tZcdBlank each fall of ZCD below vZcdTrig is a valley; FB selects the 1st to 6th valley through the valley lockout thresholds (v1to2 ... v5to6 falling, v2to1 ... v6to5 rising), and the switch turns on tDemag after it. Below vMpcmEntry the controller waits for the 6th valley and adds a dead time up to tDtMax at vSkip. Without a valley within tTout1 (soft-start) or tTout2 a cycle starts anyway, and a cycle longer than 1/fMin is ended. Switching stops below vSkip on FB and below the VCC UVLO.
Common mistakes
- The drain rings with the drain capacitance near a few hundred kilohertz after demagnetization; valley detection needs a step of a few tens of nanoseconds. The application circuit uses 20 ns.
- VCC must start above vccOn (17 V): the model has no HV start-up pin, so supply VCC from a source or a bias winding that is already up.
Problems rules: step.too_large, param.out_of_range, pin.unconnected
Datasheet and sources
The ZCD/OPP divider, the sense resistor, the transformer and the feedback network are your own parts. vccOn, vccOff, vFbOpen, kFb, rFb, the valley thresholds, tOnMax, vZcdTrig, vZcdHys, tDemag, vZcdMin, tZcdBlank, the timeouts, vIlim1, tLeb1, vCsMin, vMpcmDelta, vMpcmEntry, vSkip, vSkipHys, fMin, tSsStart and the DRV levels come from the electrical characteristics (Table 6) and Table 7; tDtMax from the frequency foldback text (page 19). rDrvH and rDrvL are derived from the DRV clamp and its source and sink currents.
Example
Open the example with the command file.openExample and the name demo:qrFlybackController.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.