Patent attributes
A PWM controller with output current limitation makes the over-current limitations almost the same even though the input voltages are different. The designer does not need to use high specification components or add an output current limiting circuit against the over-current condition. Costs are reduced and the layout is simplified. The switch power supply includes a transformer, a power switch, a first detecting circuit for generating a first detecting signal, a second detecting circuit for generating a second detecting signal, and a controller. The transformer converts the power and outputs the power to the secondary side. The power switch has a first terminal, a second terminal, and a controlled terminal. The controller has a control terminal, a first detecting terminal for receiving the first detecting signal, and a second detecting terminal for receiving the second detecting signal. The controller performs a protecting operation according to the received signals.