An integrated circuit includes a voltage generator with a first
controllable resistor and a second controllable resistor, through which a
first input terminal that applies a first voltage potential and a second
input terminal that applies a second voltage potential can be connected
to an output terminal that generates an output voltage. In a manner
dependent on the output voltage, a first comparator circuit generates a
first control signal to control the first controllable resistor, and a
second comparator circuit generates a second control signal to control
the second controllable resistor. A control unit evaluates the control
signals generated by the comparator circuits and drives the first and
second controllable resistors of the voltage generator in such a way that
in each case only one of the two controllable resistors has a
low-resistance state.