A DC--DC converter is disclosed that includes a constant voltage circuit
outputting a first voltage, a charge pump circuit outputting a second
voltage, a current detection circuit converting the output current of the
constant voltage circuit into a third voltage and outputting the third
voltage, a first detection circuit detecting the first voltage and
outputting a first detection voltage proportional thereto, a first
overcurrent protection circuit comparing the third voltage and the first
detection voltage and reducing the output first voltage and current of
the constant voltage circuit when the third voltage exceeds the first
detection voltage, a second detection circuit detecting the second
voltage and outputting a second detection voltage proportonal thereto,
and a second overcurrent protection circuit comparing the third voltage
and the second detection voltage and reducing the output first voltage
and current of the constant voltage circuit when the third voltage
exceeds the second detection voltage.