A DC-to-DC voltage converter having an active charge/discharge circuit
enabling the definition of any output voltage within its operating range
has been achieved. A comparator compares the output voltage of a voltage
converter with a defined reference voltage. This reference voltage can be
easily modified within its operating range. In case the output voltage of
the voltage converter is higher than said reference voltage a "reservoir"
capacitor at the output of said voltage is discharged via an active
charge/discharge circuit until the output voltage equals said reference
voltage. Said active charge/discharge circuit is activated via a latch by
said comparator. The invention is applicable for any type of DC-to-DC
converters, such as e.g. charge pumps, buck converters and boost
converters.