A quasi-resonant isolated flyback is employed to charge two lead-acid battery elements: starting from high-line mains. The converter accepts two external signals (referred to secondary side) to provide the reference voltages: which set output voltage and current. The converter shows good wide-range efficiency thanks to valley-switching modulation.