A circuit includes a first power converter circuit and a second power converter circuit. The input of the second power converter circuit is coupled to the output of the first power converter circuit and is configured to receive an input signal. A rechargeable battery is coupled to the output of the first power converter circuit. A charge control circuit is configured to control charging the rechargeable battery by controlling the second power converter circuit.