An electronic circuit includes an inductive element, a capacitive element, and switch elements. A first end of the inductive element is connected to an input voltage. A first end of a first switch element is connected to the first end of the inductive element. The capacitive element is connected between a second end of the first switch element and a second end of the inductive element. A second switch element is connected between the second end of the first switch element and a reference voltage. A third switch element is connected between the second end of the inductive element and the reference voltage. A fourth switch element is connected between the second end of the inductive element and a first output voltage. A fifth switch element is connected between the second end of the inductive element and a second output voltage.