Patent ID: 8546975

Claim:
A power supply device for an electronic device, comprising: a power supply module for providing electric power to the electronic device, including a plurality of power supply units for generating alternating currents; a sampling module connected to the power supply module; a pulse width modulation (PWM) controller connected to the power supply module and the sampling module; a processor connected to the PWM controller; and a plurality of display units connected to the processor and corresponding to the power supply units; wherein the PWM controller controls the power supply module to be switched on, the sampling module samples current generated by the power supply units and generates sampling signals correspondingly, the PWM controller receives the sampling signals and transmits the sampling signals to the processor, and the processor calculates values of the currents generated by each of the power supply units and a value of a total current provided by the power supply units according to the sampling signals, each of the display units displays the value of current generated by its corresponding power supply unit and displays the value of the total current.