A voltage regulator has an output circuit for producing from an input
voltage a predetermined output voltage to be supplied to a load, an
overcurrent protection circuit for preventing overcurrent in the output
circuit, a memory for storing control information fed from outside, and
an adjustment circuit for adjusting the level at which the overcurrent
protection circuit detects overcurrent according to the control
information read from the memory. With this configuration, it is possible
to accurately detect overcurrent by canceling factors such as individual
variations in the characteristics of the circuit components, the
influence of stress occurring when the regulator IC is packaged, and
fabrication-associated variations in the load.