Patent ID: 8286020

Claim:
A power supply comprising: a plurality of switch units; a plurality of output connectors to be respectively connected to a plurality of electronic devices; a plurality of current detection unit, each current detection unit connected between one of the switch units and one of the output connectors; a power supply module to convert an alternating current (AC) voltage into a direct current (DC) voltage to power the electronic devices via the switch units, the current detection unit, and the output connectors, wherein the current detection units are respectively used to detect currents passing through the output connectors respectively connected to the electronic devices and output the currents; a microcontroller connected to the switch units and the current detection units to receive the currents and calculate a total power of the power supply module according the currents and the DC voltage, wherein when the total power of the power supply module is greater than a first predetermined power, the microcontroller is used to turn off all the switch units; and a setting unit to set a protection mode, wherein when the total power of the power supply module is less than the first predetermined power and greater than a second predetermined power, the microcontroller alternatively powers the electronic devices which are in a low-load state or turns off the switch unit corresponding to the output connector which is not connected to an electronic device.