PWMSim

Control

Peak current-mode buck — command and load

A peak-current buck for testing current command, load, and slope compensation.

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 current command from 2 A to 1.5 A, then set slope compensation to 50 kA/s and compare the peaks. Then press Run again.