PWMSim

Control

Peak current-mode buck

A buck that turns its switch off when inductor current reaches the set value.

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

Lower the peak-current command from 2 A to 1.5 A. Then press Run again.