An oscillator produces a signal. A voltage generating circuit is responsive to
the output signal of the oscillator to generate a second voltage different from
a first voltage. A voltage detecting circuit detects the output voltage of the
voltage generating circuit and outputs an output voltage corresponding to the second
voltage. A comparator makes a comparison between the output voltage of the voltage
detecting circuit and a reference voltage with each cycle of the output signal
of the oscillator and controls the operation of the voltage generating circuit.