Datasheet
Table Of Contents

Demo Board Firmware
© 2009 Microchip Technology Inc. DS51798A-page 26
C.2 SUMMARY DEVICE FIRMWARE FLOWCHART - LI-ION CHARGER
For the latest version of the MCP1631HV Digitally Controlled Programmable Current
Source Reference Design Li-Ion Charger firmware, visit our web site at
www.microchip.com.
FIGURE C-2: Summary Li-Ion Charger Profile Flowchart.
Initialize: Processor,
END
V
BATT
>4.4V/Cell?
Yes
No
MAX = 1.0A 1 Cell
MAX = 0.5A 2 Cell
I
BATT
<= 70 mA?
Yes
No
Fault
V
BATT
> 3.0V/Cell?
Parameters, Timers;
SampleADC()
Calibrate LiIon()
Yes
No
> 2s ?
V
BATT
<4.2V?
Yes
Constant
Current Mode
Constant Voltage
Shutdown
(charge complete)
Shutdown
OVP
time retries
> 5
Yes
Yes
No
Precondition
Current Mode
I=200 mA
No
No
START
Mode
S1 pressed
OVP Test
S1 pressed?
Yes
No
V
BATT
>4.2V?
Decrement I
BATT
Shutdown
Charge Timer
=0?
Yes
No
Yes
No