The basic function of a switch mode power supply explained with some experiments on a switch mode psu board.