Datasheet
MCP1631HV Multi-Chemistry Battery Charger Reference Design
DS51791A-page 34 © 2009 Microchip Technology Inc.
C.2 SELECTED SOFTWARE CONSTANTS AND DEFINITIONS
1. FOSC_KHZ = 8000
Microprocessor Oscillator Frequency in kHz.
2. CHARGER_SYSTEM = BUCK_BOOST_REF_DESIGN_BOARD
Selects charger system option to build. Multiple options can be created which
each use a single header file containing parameters for that specific system.
Options for CHARGER_SYSTEM are:
MULTICHEMISTRY_REF_DESIGN_BOARD_102_00232
3. DVDT_TERMINATION = ENABLED
Used to mask NiMH termination caused by battery voltage DV/Dt. When
DISABLED, allows the user to create complete charge profile by ignoring battery
voltage termination.
4. DTDT_TERMINATION = ENABLED
Used to mask NiMH termination caused by battery temperature DT/Dt. When
DISABLED, allows the user to create complete charge profile by ignoring battery
temperature termination. Termination due to battery overtemperature is always
enabled.
5. LION_SUPPORT = ENABLED
Enables support for Lithium Ion batteries.
6. NIMH_SUPPORT = ENABLED
Enable support for Nickel Metal Hydride batteries.
7. R24 = ((float)(39.6))
Voltage reference resistor divider highside resistor value (divider at PIC port C1).
8. R34 = ((float)(39.6))
Voltage reference resistor divider lowside resistor value (divider at PIC port C1).
9. MCP1631_ISIN_AMPLIFICATION = 10.0
MCP1631HV ISin Current Sense Input amplification.
10. R6 ((float)(0.22)) = Current Sense (ISin) Resistor
11. R7 ((float)(0.22)) = Current Sense (ISin) Resistor
DoOneSecondTasks()
OFF
L
Switch (State)
SHDN = 0
SetIRef(0)
Ret