PWMSim

LTspicePowerSim

Active-clamp flyback — PI regulation

LTspicePowerSim's 24 V to 5 V active-clamp flyback, its clock, latch and dead-time blocks replaced by a PI switch and its complement.

Open and simulate
Press Run: the example simulates in your browser. Open and simulate takes it to the full app, where you can change it.

Try this

Halve the load resistance: the output stays at 5 V while the input current doubles. Then press Run again.