A voltage generating circuit for providing a voltage signal to a memory in a computer is provided. The voltage generating circuit includes a voltage selecting circuit and a control circuit. The control circuit, responsive to a first and a second voltage control signal, controls the voltage selecting circuit to gate a first voltage input or a second voltage input into a terminal of a regulating transistor. Another terminal of the regulating transistor outputs the voltage signal to the memory.