Microchip Technology MCP1630RD-DDBK3 用户手册

下载
页码 30
MCP1630V BIDIRECTIONAL 4 CELL
LI-ION CHARGER REFERENCE
DESIGN USER’S GUIDE
© 2006 Microchip Technology Inc.
DS51641A-page 23
Appendix C. Firmware
C.1
DEVICE FIRMWARE - FLOWCHART
For the latest copy of the MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference 
Design User’s Guide firmware, visit our web site at www.microchip.com.
FIGURE C-1:
Firmware Flowchart, page 1.
START
Initialize Ports, ADC, PWM, etc.
Read ADC Inputs
V
BATT
 and V
BULK
Is Charge 
State @ Idle?
Yes
No
No
V
BATT
>12.8V
Yes
Set State to
P.C.
B
No
Is Charge 
State @ C.C.
V
BATT
 > 12.8V
Set State to
C.C
No
Yes
B
Inc. I
BATT
V
BATT
>16.8V
Yes
Set State to
C.V.
B
No
A
Is Charge 
State @ C.V.
V
BATT
 > 16.8V
B
No
Dec. I
BATT
C
V
BATT
<16.3V
Yes
Yes
Yes
Yes
No
No
to I
MAX
Charge States
Idle = 0 mA
P.C. = Pre-Charge
C.C. = Constant Current
C.V. = Constant Voltage
Is Charge 
State @ P.C.?