Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 54
MCP1631HV Multi-Chemistry Battery Charger Reference Design
DS51791A-page 40
© 2009 Microchip Technology Inc.
C.6
LAB EXERCISES
1. Startup the mikroC
TM
 compiler and load the 
“MCP1631HVBuckBoostBatteryChargerReferenceDesign.ppc” if it does not 
load up automatically.
2. Startup MPLAB and load the 
“MCP1631HVBuckBoostBatteryChargerReferenceDesign.mcw” workspace if it 
does not start up automatically.
C.6.1
Li-Ion Only Exercise (single cell, 1200 mAh pack)
1. In the mikroC
 “Project Summary” frame, click on the “H files” branch to expand 
the ‘.H’ file list.
2. Double click on the 
“MULTICHEMISTRY_REF_DESIGN_BOARD_102_00232.H” file to open it.
3. Scroll through the header file and locate “#define LION_SUPPORT”.
Set it to “ENABLED”.
4. Scroll through the header file and locate “#define NIMH_SUPPORT”.
Set it to “DISABLED”.
5. Scroll through the header file and locate “#define LED_DRIVER_SUPPORT”. 
Set it to “DISABLED”.
6. Scroll down to the “#IF (LION_SUPPORT == ENABLED) section of the header 
file. The section contains Lithium Ion specific parameters. Note that there is a 
Nickel Metal Hydride and LED Driver section also.
7. Set the LI_ION_CONDITION_CURRENT to 200 mAh. (Conditioning mode 
current)
8. Set the LI_ION_CONDITION_VOLTAGE to 3000 mV. (Transition point from 
Conditioning to CC mode)
9. Set the LI_ION_CHARGE_CURRENT to 1200 mAh. (CC mode current)
10. Set the LI_ION_CHARGE_TERMINATION_CURRENT to 84 mAh. (0.07C – 
Termination Current for CV mode)
11. Save the file (File | Save).
12. Compile (Project | Build).
13. Open MPLAB and load the workspace if it is not already loaded. (File | Open 
Workspace) 
{Source 
Directory}\MCP1631HVBuckBoostBatteryChargerReferenceDesign.mcw
14. Import the new “MCP1631HVBuckBoostBatteryChargerReferenceDesign.hex” 
file. (File | Import)
15. Download the file (Debugger | Program) and reset the processor (Debugger | 
Reset | Processor Reset).
16. Run the new program (Debugger | Run).
17. Calibrate the Li-Ion Termination Voltage.
18. Disconnect and turn on the power supply and set the variable output voltage to 
4.200V. Turn off the power supply.
19. Connect the fixed 12V supply (+) lead to the input connector (+) pin J1-1.
20. Connect the fixed 12V supply (-) lead to the input connector (-) pin J1-2.
21. Connect the 4.200V variable supply (+) lead to the battery connector (+) pin J2-1.
22. Connect the 4.200V variable supply (-) lead to the battery connector (-) pin J2-5.
23. Turn on the power supply.