To grasp the principles behind the buck converter, it helps to experiment with a simulator, especially an animated, interactive type.
This is a tutorial circuit which I constructed, to demonstrate how a buck converter operates. You can control it yourself, or let the automatic clock drive it.
This is done in Falstad's simulator. It can export a link (below) which will:
(1) Open the site
www.falstad.com/circuit
(2) Load my schematic into his simulator, and
(3) Run it on your computer.
To start a cycle, press the switch at left with your mouse.
For the second half of a cycle, let up the switch.
Watch the scope trace for the coil. Current rises during switch-On, and falls during switch-Off.
Watch how this action affects the output voltage. Eventually you will find the right tempo to click the switch on and off, so that you obtain a desired output voltage.
You can change values at will. Right-click on a component, and select Edit.
To save a schematic: Select File>Export, copy the text in the window, then paste it into a word processor, and save it from that program.