Question: why pwm is used in smps?
Answer: The on and off of the switch is controlled by PWM that generated by PIC microcontroller 16F877A. The on and off of the switch is important because the duty cycles of the PWM is used to regulate the DC output voltage. So the desire output voltage can be produced by generate various duty cycle.