A DC-DC converter for generating a stable output voltage and being
applicable to a transient load fluctuation. The DC-DC converter detects
an input current, and compares the input current with a rated current of
an external power supply. The DC-DC converter controls a positive
charging current that is supplied to a secondary battery in accordance
with a consumption current of a load so that the input current does not
exceed the rated current. The DC-DC converter further controls a negative
charging current that is supplied from the secondary battery to the load
when the load requires an input current exceeding the rated current.