A battery charger integrated circuit with temperature control is disclosed
that includes a temperature sensor circuit and a charging current
generator circuit. Upon receiving a temperature reading voltage (VDT),
the temperature sensing circuit is operable to generate a second
reference voltage (V.sub.REF) that is a function of the first reference
voltage (V.sub.REF1). The charging current generator circuit generates
and continuously adjusts a reference current (I.sub.1) and a charging
current (I.sub.OUT) according to the second reference voltage
(V.sub.REF). Whenever the temperature reading voltage (VDT) exceeds the
first reference voltage, the temperature sensor circuit is operable to
adjust the second reference voltage (V.sub.REF).