主权项 |
1. A method for charging a battery through a universal serial bus (USB) connection having a USB voltage and a maximum USB current value, comprising:
coupling the USB connection to a switching voltage regulator; the switching voltage regulator generating a battery charge current; generating a reference signal for the battery charge current; generating a limit signal for the battery charge current based on at least the USB voltage, the maximum USB current value, and a battery voltage; generating a control signal corresponding to a lower of the reference signal for the battery charge current and the limit signal for the battery charge current; and a control circuit controlling the switching voltage regulator and the battery charge current responsive to the control signal. |