A switched-mode power supply is an electronic power supply that incorporates a switching regulator to convert electrical power efficiently.
All three fundamental topologies include a MOSFET switch, a diode, an output capacitor, and an inductor. The MOSFET, which is the actively controlled component in the circuit, is interfaced to a controller (not shown). This controller applies a pulse-width-modulated (PWM) square-wave signal to the MOSFET's gate, thereby switching the device on and off. To maintain a constant output voltage, the controller senses the SMPS output voltage and varies the duty cycle (D) of the square-wave signal, dictating how long the MOSFET is on during each switching period (TS). The value of D, which is the ratio of the square wave's on time to its switching period (TON/TS), directly affects the voltage observed at the SMPS output. This relationship is illustrated in equations 4 and 5.
I’m recommending you to visit
transistor because boths are switching device and perhaps you could check out of this.