| CPC H02M 1/0003 (2021.05) [H02J 7/007 (2013.01); H02M 3/156 (2013.01)] | 21 Claims |

|
1. A controller for controlling a voltage converter, said voltage converter receiving an input voltage and generating a real-time charging current and a real-time charging voltage to charge a battery, wherein said the controller comprises:
a compensation circuit operable for generating a compensation voltage, wherein said compensation circuit comprises:
a first operational amplifier operable for comparing said real-time charging current with a preset charging current to generate a first comparison result;
a second operational amplifier operable for comparing said real-time charging voltage with a preset battery voltage to generate a second comparison result; and
a current source operable for charging a capacitor, wherein a voltage across said capacitor comprises said compensation voltage, and wherein said compensation voltage is adjusted by said first comparison result and said second comparison result;
a driving circuit, coupled to said compensation circuit, operable for generating a pulse width modulation signal based on said compensation voltage; and
a control circuit, coupled to said driving circuit, operable for generating a control signal based on said pulse width modulation signal and a current indication signal indicating said real-time charging current,
wherein said driving circuit is further operable for generating a first switching signal based on said pulse width modulation signal to control an upper switch of said voltage converter, and generating a second switching signal based on said control signal to control a lower switch of said voltage converter.
|