Abstract: An apparatus includes a constant voltage generator for generating a voltage based on a difference between threshold voltages of two MOS transistors, and a voltage sampling device for sampling the output voltage of the constant voltage generator circuit, wherein the voltage sampling device samples the output voltage of the constant voltage generator before an electric source switch for the constant voltage generator is turned off.