A voltage generating circuit for outputting a voltage from an output
terminal, has a first voltage dividing circuit which is connected between
the output terminal and ground; a switch circuit connected between the
output terminal and the first voltage dividing circuit; a first voltage
detecting circuit which outputs a first pumping signal corresponding to a
comparison result; a second voltage dividing circuit which is connected
between the output terminal and the ground; a second voltage detecting
circuit which outputs a second pumping signal corresponding to a
comparison result; a pump circuit that outputs a voltage boosted from a
power supply voltage; and a boost circuit which has a capacitive element
having one end connected to the voltage dividing resistor of the first
voltage dividing circuit.