MCP1631RD-MCC2 Microchip Technology, MCP1631RD-MCC2 Datasheet

REFERENCE DESIGN MCP1631HV

MCP1631RD-MCC2

Manufacturer Part Number
MCP1631RD-MCC2
Description
REFERENCE DESIGN MCP1631HV
Manufacturer
Microchip Technology

Specifications of MCP1631RD-MCC2

Main Purpose
Power Management, Battery Charger
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP1631HV, PIC16F883
Primary Attributes
1 ~ 2 Cell- Li-Ion, 1 ~ 5 Cell- NiCd/NiMH, 1 ~ 2 1W LEDs
Secondary Attributes
Status LEDs
Silicon Manufacturer
Microchip
Application Sub Type
Battery Charger
Kit Application Type
Power Management - Battery
Silicon Core Number
MCP1631HV, PIC16F883
Kit Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
MCP1631HV
Multi-Chemistry
Battery Charger
Reference Design
© 2009 Microchip Technology Inc.
DS51791A

Related parts for MCP1631RD-MCC2

MCP1631RD-MCC2 Summary of contents

Page 1

... Microchip Technology Inc. MCP1631HV Multi-Chemistry Battery Charger Reference Design DS51791A ...

Page 2

... PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... C.2 Selected Software Constants and Definitions .............................................. 34 C.3 PIC16F883 Port Usage ................................................................................ 37 C.4 mikroElektronika’s mikroC™ Compiler Startup ............................................ 38 ® C.5 MPLAB and PICkit™ 2 Debugging Exercise ............................................. 39 C.6 Lab Exercises .............................................................................................. 40 © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN Table of Contents DS51791A-page iii ...

Page 4

... MCP1631HV Multi-Chemistry Battery Charger Reference Design Appendix D. Design Example D.1 Design Example ........................................................................................... 47 Worldwide Sales and Service .....................................................................................50 DS51791A-page iv © 2009 Microchip Technology Inc. ...

Page 5

... MCP1631HV Multi-Chemistry Battery Charger Reference Design. • Appendix C. “Software” – Provides information about the application firmware and where the source code can be found. • Appendix D. “Design Example” – Shows a design example. © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN ...

Page 6

... A hexadecimal number where 0xFFFF, 0x007A hexadecimal digit Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2009 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 7

... Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (January 2009) • Initial Release of this Document. © 2009 Microchip Technology Inc. Preface DS51791A-page 3 ...

Page 8

... MCP1631HV Multi-Chemistry Battery Charger Reference Design NOTES: DS51791A-page 4 © 2009 Microchip Technology Inc. ...

Page 9

... This chapter covers the following topics. • What is the MCP1631HV Multi-Chemistry Battery Charger Reference Design? • What the MCP1631HV Multi-Chemistry Battery Charger Reference Design Kit includes. FIGURE 1-1: Block Diagram. © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN 5.3V to 18V Power Supply ...

Page 10

... Technology”, (DS41291). - Application Note AN1137, “Using the MCP1631 Family to Develop Low-Cost Battery Chargers”, (DS01137). DS51791A- page 6 MULTI-CHEMISTRY CHARGER CAPABILITY 1 Cell 2 Cell 2A 1A 1.5A 1.5A 300 mA 300 mA 3 Cell 4 Cell 5 Cell 1.5A 1.5A 1. © 2009 Microchip Technology Inc. ...

Page 11

... This board requires the use of an external voltage source to charge the series connected batteries with a range of +5.3V to +16V input. An external load and thermistor is also required to evaluate the charger reference design. © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN ...

Page 12

... FIGURE 2-2: NiMH/NiCd. DS51791A-page 8 1 Cell 3,600 mA-hr Li-Ion Battery Time (Minutes) MCP1631HV Multi-Chemistry Battery Charger Charge Profile, 3 Cell 2,000 mA-hr NiMH Batteries Time (Minutes) MCP1631HV Multi-Chemistry Battery Charger Charge Profile © 2009 Microchip Technology Inc. ...

Page 13

... EPCOS Inc. PN B57500M0103A005 is the recom- mended thermistor thermistor is not available or not desired should be placed between pins 4 and 5 of the battery header (J2) or charger will detect a missing thermistor and no charge cycle will begin. © 2009 Microchip Technology Inc. Installation and Operation Serial PICkit™ 2 Header Setup Configuration Diagram ...

Page 14

... For single cell Li-Ion, a 3600 mA-Hr battery with internal protection circuitry Note: is recommended for evaluation. For NiMH charge cycle, Panasonic HHR-210AA/B2B were used to develop the -dV/dt and +dT/dt termination methods. DS51791A-page 10 + 1,000 µF 2Ω - 10V Al 10W Simulated Battery Load. + Variable Power Supply © 2009 Microchip Technology Inc. ...

Page 15

... State Code LSBit 0 Startup Qualification 1 NiMH CC 0 NiMH Topoff 1 Li-Ion CC 0 Li-Ion CV 1 LED CC 0 Overvoltage 1 Off 0 © 2009 Microchip Technology Inc. Installation and Operation Li-Ion NiMH LSBit 0 CHEM CHEM #CELLS CHEM CHEM #CELLS OFF OFF ON CHEM CHEM #CELLS #CELLS CHEM ...

Page 16

... The data logging feature allows the user to create and save a complete charging profile for a specific battery pack. The interface software provided with the PICkit Serial Analyzer allows the user to save the logged data to a file. DS51791A-page 12 < 3.0V CELL < 0.9V. CELL ™ Serial Analyzer. The © 2009 Microchip Technology Inc. ...

Page 17

... Board – Bottom Silk Layer • Board – Top Metal Layer • Board – Mid1 Metal Layer • Board – Mid2 Metal Layer • Board – Bottom Metal Layer © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN DS51791A-page 13 ...

Page 18

... MCP1631HV Multi-Chemistry Battery Charger Reference Design A.2 BOARD – SCHEMATIC DS51791A-page 14 © 2009 Microchip Technology Inc. ...

Page 19

... A.3 BOARD – TOP SILK LAYER © 2009 Microchip Technology Inc. Schematic and Layout DS51791A-page 15 ...

Page 20

... MCP1631HV Multi-Chemistry Battery Charger Reference Design A.4 BOARD – BOTTOM SILK LAYER DS51791A-page 16 © 2009 Microchip Technology Inc. ...

Page 21

... A.5 BOARD – TOP METAL LAYER © 2009 Microchip Technology Inc. Schematic and Layout DS51791A-page 17 ...

Page 22

... MCP1631HV Multi-Chemistry Battery Charger Reference Design A.6 BOARD – MID1 METAL LAYER DS51791A-page 18 © 2009 Microchip Technology Inc. ...

Page 23

... A.7 BOARD – MID2 METAL LAYER © 2009 Microchip Technology Inc. Schematic and Layout DS51791A-page 19 ...

Page 24

... MCP1631HV Multi-Chemistry Battery Charger Reference Design A.8 BOARD – BOTTOM METAL LAYER DS51791A-page 20 © 2009 Microchip Technology Inc. ...

Page 25

... RoHS Compliant Bare PCB, MCP1631 Multi-Chemistry Charger with Buck-Boost The components listed in this Bill of Materials are representative of the PCB assembly. The released BOM Note 1: used in manufacturing uses all RoHS-compliant components. © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN Description Manufacturer 3M ® ...

Page 26

... Panasonic - ECG Panasonic - ECG E-Switch Keystone Electronics Microchip Technology Inc. MCP1631HV-500E/ST Microchip Technology Inc. PIC16F883-I/SS Part Number IRF7807VTRPBF ® NDS7002A ERJ-6ENF1001V ERJ-6ENF3013V ERJ-6ENF10R0V ERJ-6ENF1003V ERJ-6ENF3921V ERJ-6ENF1002V ERJ-6ENF2002V ERJ-6ENF4990V ERJ-6ENF4992V ERJ-6ENF5601V ERJ-6ENF4022V ERJ-8RQFR22V ERJ-6ENF3922V ERJ-6ENF3483V TL3301NF260QG ® 5016 © 2009 Microchip Technology Inc. ...

Page 27

... For the latest copy of the MCP1631HV Multi-Chemistry Battery Charger Reference Design firmware, visit our web site at www.microchip.com. C.1.1 Software Functions C.1.1.1 INTERRUPT() Update LED's Update One Second flag Clear Timer 0 Interrupt Flag © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN Appendix C. Software Interrupt () Timer 1? Y Timer 0? ...

Page 28

... MCP1631HV Multi-Chemistry Battery Charger Reference Design C.1.1.2 MAIN() C.1.1.3 SAMPLEADC() DS51791A-page 24 Main () Initialize Processor Initialize Parameters Y Read SampleADC() A/ CheckModeChange() OFF? Y DoOneSecondTasks() Second ? Update LED's SampleADC() Running_Sum += ReadADCChannel Average Samples and Store Samples? Select Next A/D Channel Ret © 2009 Microchip Technology Inc. ...

Page 29

... C.1.1.4 READADCCHANNEL() C.1.1.5 CHECKMODECHANGE() CheckModeChange() © 2009 Microchip Technology Inc. ReadADCChannel() Select Channel MUX Delay 5 µs Start Conversion N Complete? Return Result Y On/Off Hold for 5 seconds to enter Config Mode Pressed? Y Config? Y State = Startup ON? Initialize parameters Ret Software Setup() SetParameters() DS51791A-page 25 ...

Page 30

... C.1.1.7 SETIREF() DS51791A-page 26 SetParameters() NiMH/NiCd Li-Ion Chemistry? LED Driver Setup LED Parameters Ret SetIRef(IRef) N Limit IRef to Min/Max Boundaries IRef = 0? Pause PWM Timer 1 Shutdown Timer 1 Ref Current = 0 Setup Timer 1 Reload Variables Re-enable PW Timer 1 Ret Setup Li-Ion Parameters © 2009 Microchip Technology Inc. ...

Page 31

... C.1.1.8 SETUP() Setup() ON/OFF_SW? A C.1.1.9 INCREMENTIREF() © 2009 Microchip Technology Inc CHEM_SW? Next Chemistry Y CELLS_SW? Calibrate? Increment Number of Cells B IncrementIRef(int inc) N inc = 0? SetIRef Ret Software Li-Ion Calibration Apply 4.2V Reference To Battery Connector Y Turn On 4 DISPLAY and 2 CHEM LED's Average 16 A/D Battery ...

Page 32

... MCP1631HV Multi-Chemistry Battery Charger Reference Design C.1.1.10 DOONESECONDTASKS() DS51791A-page 28 DoOneSecondTasks() Decrement Charge Timer Update Chemistry LED's Over- Y State = OV Voltage? A DoOneSecondTasks State = OFF OT Count OT? Cause = OTP = 0? Decrement OT Count B C © 2009 Microchip Technology Inc. ...

Page 33

... Switch (State) © 2009 Microchip Technology Inc. DoOneSecondTasks OPEN OT Count THERMISTOR Reload OT Count Decrement OT Count (NiMH or MiCD compilations only) C DoOneSecondTasks STARTUP Charge State = ON Timer Charge Timer = Charge Timeout = 0? SHDN = 0 OTCount = OTP Retries SetIRef() D Software State = OFF Cause = OPEN_T DS51791A-page 29 ...

Page 34

... Reference Current MAX = Condition Current Reference Current MIN = 2 Switch (State) SetIRef(ConditionCurrent) State = QUALIFICATION STATUS LED = ON E DoOneSecondTasks() QUALIFICATION V Y BAT >= Initialize Condition Variables Voltage? SetIRef(Initial) State = LI_CC N Li-Ion? Y IRefMax Y < Condition Current? SetIRef(ChargeCurrent) N NiMH? Y State = LED_CC State = NM_CC © 2009 Microchip Technology Inc. ...

Page 35

... Switch (State) © 2009 Microchip Technology Inc. DoOneSecondTasks() F NM_CC IncrementIRef() Update Peak Voltage Check for V/ t Check for T/ t Check Termination Flags Last Bat = Bat Last Temp = Temp Check For Charge Timer Timeout G G NM_TOPOFF Charge Timer = 0? Switch (State) H Software Cause = V/ t ...

Page 36

... Battery LI_CC < Charge Voltage ? Switch (State) State = LI_CV IRefMin = ChargeTermination Charge Timer = 0? I DoOneSecondTasks Battery LI_CV >= Charge Voltage ? Switch (State) IRef < Termination ? Y Charge Timer = IncrementIREF() Y State = OFF Y IncrementIRef(-Value) Y State = OFF Status LED = OFF State = OFF © 2009 Microchip Technology Inc. ...

Page 37

... Switch (State) © 2009 Microchip Technology Inc. DoOneSecondTasks() J LED_CC Y CHEM CELLS SW ? Reset Over Voltage Retry K DoOneSecondTasks() K SHDN = 0 OV SetIRef(0) ChargeTimer = 2 seconds Switch (State Count = 0? Decrement OV Count State = STARTUP L L Software IncrementIRef(+Value) IncrementIRef(-Value) State = OFF Cause = OVP DS51791A-page 33 ...

Page 38

... 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 DS51791A-page 34 DoOneSecondTasks() L SHDN = 0 OFF SetIRef(0) Switch (State) Ret © 2009 Microchip Technology Inc. ...

Page 39

... Noise level at VSOUT input to the A/D converter in mV. Approximately noise. Used to offset readings. 29. DVDT_MV_PER_CELL = ((float) 6.0 ) Termination due to change in voltage per cell in millivolts over a 60 second interval. Termination Deadband for battery voltage dropoff after peak detect. © 2009 Microchip Technology Inc. Software DS51791A-page 35 ...

Page 40

... Optional LED overtemperature limit may be used to limit LED temperature. Set LED_DRIVER_OVTEMP_SETPOINT to one of the Thermistor Ohms definitions for the desired shutdown temperature. 43. MAX_LED_CELLS = 2 Maximum number of 1W LED cells in series that will be driven by the driver output. DS51791A-page 36 TM Serial Analyzer. © 2009 Microchip Technology Inc. ...

Page 41

... Port C */ PORTC.1 PORTC.2 PORTC.5 PORTC.6 PORTC.7 © 2009 Microchip Technology Inc. ADC_THERMISTOR_TEMPERATURE: Thermistor A/D input ADC_BATTTERY_VOLTAGE: Battery Voltage A/D input SHDN: System Shutdown and Thermistor Supply Output ONOFF_SWITCH: On/Off’ switch input NUMCELLS_SWITCH: Number of Cells’ switch input CHEMISTRY_SWITCH: Chemistry’ switch input LIION_LED: Li-Ion’ ...

Page 42

... In the Project Setup Frame, click on the Project Summary tab. This shows the files for the project. 10. From the toolbar, select: “Project | Build”. This will build the currently load project. 11. The compiler results will be displayed in the Message frame. Verify success. DS51791A-page 38 ™ compiler (compiler not supplied, available at: © 2009 Microchip Technology Inc. ...

Page 43

... The MCP1631HV will then attempt to supply the current for the given V , which will be high (about 2.5V / 1.1 = 2.27A). The current is limited by the V REF signal which is in turn limited by the V © 2009 Microchip Technology Inc. Software or create a new one. ™ listing file for the project. Variable and ...

Page 44

... 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. DS51791A-page 40 TM compiler and load the ™ “Project Summary” frame, click on the “H files” branch to expand {Source © 2009 Microchip Technology Inc. ...

Page 45

... V = TP3 REF - PWM = TP4 - Oscillator = TP5 - VS = TP6 OUT - Slope Compensation = TP7 - Temperature = TP8 (if used TP9 - Drain Voltage = TP10 - Output Voltage = TP11 38. Press the “ON/OFF” button. The charger will stop charging the battery. © 2009 Microchip Technology Inc. Software DS51791A-page 41 ...

Page 46

... Press and hold the “ON/OFF” button on the charger board until the LED’s flash (about 5 seconds). The board is now in Configuration Mode. 26. Press and release the “CHEM” button until the “NiMH” LED is on. DS51791A-page 42 ™ “Project Summary” frame, click on the “H files” branch to expand © 2009 Microchip Technology Inc. ...

Page 47

... A.3 “Board – Top Silk Layer” and probe the following components TP3 REF - PWM = TP4 - Oscillator = TP5 - VS = TP6 OUT - Slope Compensation = TP7 - Temperature = TP8 - FB = TP9 - Drain Voltage = TP10 - Output Voltage = TP11 33. Press the “ON/OFF” button. The charger will stop charging the battery. © 2009 Microchip Technology Inc. Software DS51791A-page 43 ...

Page 48

... Press the “CHEM” button to display the current charger state in HEX. “0” “Display” LED is LS Bit. 28. Press the “# CELLS” button to display the termination cause. No LED means no premature termination. DS51791A-page 44 ™ “Project Summary” frame, click on the “H files” branch to expand © 2009 Microchip Technology Inc. ...

Page 49

... V = TP3 REF - PWM = TP4 - Oscillator = TP5 - VS = TP6 OUT - Slope Compensation = TP7 - Temperature = TP8 (if used TP9 - Drain Voltage = TP10 - Output Voltage = TP11 30. Press the “ON/OFF” button. The charger will stop charging the battery. © 2009 Microchip Technology Inc. Software DS51791A-page 45 ...

Page 50

... MCP1631HV Multi-Chemistry Battery Charger Reference Design NOTES: DS51791A-page 46 © 2009 Microchip Technology Inc. ...

Page 51

... Artificial Ramp = -t /(Ln(1-(V OFF = -1.5 µs/(Ln(1 – (0.4719V/5.0V))) = -1.5 µs/Ln (0.90562) = 15.13 µs © 2009 Microchip Technology Inc. MCP1631HV MULTI-CHEMISTRY BATTERY CHARGER REFERENCE DESIGN = 6V for worst case (WC 20 /(V * ç ...

Page 52

... SQRT (I RMS = SQRT (0.750 = 1.94A • Worst-Case Capacitor Current is 1.94A. Choose a capacitor that is rated for at least the worst-case current. © 2009 Microchip Technology Inc. = τ 15.13 µs/1500 pF Artificial Ramp Artificial Ramp = 10 kΩ (max), use around 5.6 kΩ to 9.1 kΩ for tolerances An R value of 5.6 kΩ ...

Page 53

... NOTES: © 2009 Microchip Technology Inc. Design Example DS51791A-page 49 ...

Page 54

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords