Patent ID: 7245465

Claim:
A voltage regulator comprising: an output circuit for producing from an input voltage a predetermined output voltage to be supplied to a load, the output circuit comprising: a transistor including: a terminal at which the transistor receives the input voltage and a terminal at which the transistor outputs the output voltage; and an operational amplifier outputting a voltage produced by amplifying a differential voltage between a first reference voltage commensurate with the output voltage and a fixed voltage generated by a fixed reference voltage source and controlling the transistor based on the thus outputted voltage; a current detection circuit for detecting an output current commensurate with a current flowing through the load, the current detection circuit comprising: a variable reference voltage source; and a comparator comparing a second reference voltage generated to be commensurate with the output current with a variable reference voltage generated by the variable reference voltage source, and controlling a gain of the operational amplifier so that the second reference voltage does not become higher than the variable reference voltage; a nonvolatile memory for storing control information according to the variable reference voltage source; and an adjustment circuit for controlling the variable reference voltage source according to the control information read from the nonvolatile memory, and wherein the output circuit, the current detection circuit, the nonvolatile memory and the adjustment circuit are all sealed in a single package, and the control information is fed to the nonvolatile memory from outside the single package.