A
switching power supply with
overvoltage protection includes a soft start circuit, a rectifying circuit, a
filter capacitor, a main supply, an auxiliary supply and a monitoring circuit. When the input
voltage is higher than the predetermined protection
voltage, a first
electric control switch is turned off, and the main power circuit of the
switching power supply is shut off. At the moment, the actuation and release of the second
electric control switch is controlled so as to control the input power supply to intermittently charge the power supply module such that the output
voltage downstream of the rectifying circuit inside the power supply is controlled in a safe range. For instance, the second
electric control is turned on when the output voltage is lower than a certain value, and is turned off when the output voltage is higher than a certain value. Thus, it is ensured that the
bus line voltage inside the power supply is controlled within a safe range, to ensure the safety of the devices inside the power supply; and at the same time to ensure the safety of the inner devices of the
switching power supply, such that the auxiliary power supply and the
control circuit can work normally.