Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, microID, MPLAB, PIC, PICmicro,
PICSTART, PRO MATE, PowerSmart, rfPIC and SmartShunt
are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, Linear Active Thermistor,
MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM,
PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo,
PowerMate, PowerTool, REAL ICE, rfLAB, rfPICDEM, Select
Mode, Smart Serial, SmartTel, Total Endurance, UNI/O,
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.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona, Gresham, Oregon and Mountain View, California. The
Company’s quality system processes and procedures are for its
PICmicro
EEPROMs, microperipherals, nonvolatile memory and analog
products. In addition, Microchip’s quality system for the design and
manufacture of development systems is ISO 9001:2000 certified.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP1630 NiMH Battery Charger Demo Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP1630 NiMH Battery Charger Demo
Board. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP1630
NiMH Battery Charger Demo Board.
• Chapter 2. “Installation and Operation” – This chapter includes instructions on
how to get started, as well as a description of the MCP1630 NiMH Battery
Charger Demo Board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP1630 NiMH Battery Charger Demo Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP1630 NiMH Battery Charger Demo Board.
• Appendix C. “Evaluation Board Firmware” – Provides information about the
application firmware and where the source code can be found.
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
RECOMMENDED READING
This user's guide describes how to use the MCP1630 NiMH Battery Charger Demo
Board. The following Microchip documents are available and recommended as
supplemental reference resources.
MCP1630 Data Sheet, “High-Speed, Microcontroller-Adaptable, Pulse Width
Modulator” (DS21896)
This data sheet provides detailed information regarding the MCP1630 product family.
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or field application engineer
for support. 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
Preface
DOCUMENT REVISION HISTORY
Revision B (March 2006)
• Updated Bill of Materials (BOM) to show RoHS-compliant part numbers.
The MCP1630 NiMH Battery Charger Demo Board is used to evaluate the Microchip
MCP1630 used in a SEPIC power-converter application. The evaluation board is a
complete stand-alone 4-cell NiMH battery charger that utilizes an 8V to 15V input
capable of charging 4 NiMH batteries in series.
MCP1630 NiMH Battery Charger and Fuel Gauge Application Diagram
1.2WHAT IS THE MCP1630 NIMH BATTERY CHARGER DEMO BOARD?
The MCP1630 NiMH Battery Charger Demo Board is a complete stand-alone constant
current battery charger and simple fuel gauge for four NiMH series batteries. This
board utilizes Microchip’s MCP1630 (high-speed PIC
MCP1700T (LDO Regulator SOT-23), MCP6042T (Op Amp MSOP-8), PIC16LF818
(MCU Flash SSOP-20), TC54 (Voltage Detector SOT-23A) and TC1047A (Temp-Volt
Converter SOT-23B). The input voltage range for the demo board is 8V to 15V. The
output is capable of charging four NiMH batteries with up to 1.6V per cell at a fast
charge rate of 500 mA contant current.
Input terminals are provided to apply an intput voltage to the charger. Output terminals
are also provided as a way to connect the external NiMH batteries or a simulated
battery load.
1.3WHAT THE MCP1630 NIMH BATTERY CHARGER DEMO BOARD KIT
INCLUDES
This MCP1630 NiMH Battery Charger Demo Board Kit includes:
The MCP1630 NiMH Battery Charger Demo Board demonstrates Microchip’s
MCP1630 high-speed Pulse Width Modulator (PWM) used in a smart battery charger
application. The MCP1630 is a high-speed, microcontroller-adaptable PWM that, when
used in conjunction with a microcontroller, will control the power system duty cycle to
provide output voltage or current regulation. The PIC16LF818 microcontroller can be
used to regulate output voltage or current, switching frequency and maximum duty
cycle. The MCP1630 generates pulse-by-pulse duty cycle, provides fast overcurrent
protection and utilizes variable external inputs. External signals include the input
oscillator and the reference voltage. The power train signals include the current sense
and the feedback voltage; the output signal is a square-wave pulse. The power train
used for the MCP1630 NiMH Battery Charger Demo Board is a Single-Ended Primary
Inductive Converter (SEPIC).
2.2FEATURES
MCP1630 NiMH BATTERY CHARGER
DEMO BOARD USER’S GUIDE
The MCP1630 NiMH Battery Charger Demo Board has the following features:
• Programmed charge currents:
- Fast Charge = 500 mA
- Trickle Charge = 50 mA
- Top-Off Charge = 25 mA
• Overvoltage protection (battery removed)
• Overcharge protection to prevent the battery from becoming dangerously
overcharged
• Overdischarge protection to prevent the battery from being damaged
• Overcurrent protection in the event of a shorted battery
• Battery reversal protection
• Input short circuit protection
• Fast charge termination if the battery or ambient temperature is too high
• Soft-start capability by holding the reference voltage low during power-up
• The MCP1630 NiMH Battery Charger Demo Board terminates charge by detecting a predefined change in voltage with respect to time, a specified temperature or
specified elapsed time
• A simple fuel gauge that has a dual MCP6042 amplifier, a 1-channel sense
voltage and a 1-channel sense current
• The MCP1630 NiMH Battery Charger Demo Board has the flexibility to optimize
the charging algorithm for new battery technology and add proprietary features by
coding the microcontroller
• Ability to adapt to environmental effects, such as ambient temperature
The MCP1630 NiMH Battery Charger Demo Board is fully assembled and tested for
charging four 1,000 mA/hour NiMH batteries in series from 3.2V to 6V in accordance
with the recommended charge profile for NiMH batteries. This board requires the use
of an external input voltage source (+8V to +15V) and external load (battery or simulated battery load). It is recommended that four NiMH cells connected in series to act
as a load or the recommended simulated load be used.
2.3.1Power Input and Output Connections
2.3.1.1POWERING THE MCP1630 NiMH BATTERY CHARGER DEMO BOARD.
1. Apply the input voltage to the surface mount test points provided. The input
voltage source should be limited to the 0V to +15V range. For normal operation,
the input voltage should be between +8V and +15V. However, the input voltage
must not exceed +15V maximum. The source current necessary to regulate the
output voltage to 6.4V at 500 mA should be a minimum of approximately 800 mA.
2. Connect the positive side of the input source (+) to test point TP2. Connect the
negative (or return side) (–) of the input source to the GND test point TP3. TP2
is located just above TP3 in the upper-left corner of the board.
2.3.1.2APPLYING THE LOAD TO THE MCP1630 NiMH BATTERY CHARGER
DEMO BOARD.
1. To apply a load to the MCP1630 NiMH Battery Charger Demo Board, the positive
side of the load (+) should be connected to test point TP1. The negative side of
the load (–) should be connected to test point TP4. Care should be taken when
using electronic or ground-referenced loads, and never connect TP4 to ground.
The battery current sense is referenced in the return leg, so connecting TP4 to
ground will short out the current sense. The typical charge current is 50 mA while
the battery is in the Trickle Charge mode or the battery voltage is below 0.8V/cell.
The current is typically 500 mA when the battery is in the Fast Charge mode and
typically 25 mA when the battery is in the Top-off Charge mode. The charge
current is automatically regulated by the MCP1630.
2. The code will prevent the board from entering the 500 mA Fast Charge mode if
the battery terminal voltage is less than 3.2V (0.8V / Cell). During power up, the
board will always trickle charge first, so using a purely resistive load will not work
for trickle and fast charge currents. The best way to evaluate the charger is to
use four series NiMH batteries or the recommended simulated battery load.
The MCP1630 NiMH Battery Charger Demo Board has two LEDs. D
is a red LED that
1
is used to indicate when input power is available. When the +12V input is connected,
D
will be illuminated. The other LED (D9) has two LEDs built into a SOT-23 package.
1
These can be off, red, green or both on (amber). To conserve energy, D
is never
9
illuminated when there is no input power. If both LEDs are off, that is an indication there
is no power supplied to the board input.
Under normal power-up conditions, the charger will begin with a 50 mA trickle charge.
The microcontroller will then check the status of the batteries to ensure that they are
present, their temperature is within range and the series voltage is within specified
charging limits. For visual LED charge status, a dual-color SOT-23 LED is used (D
-D
Status Indication Normal Charge Modes:
9
Normal Charge Mode
Board Status
Initial Trickle Charge (50 mA)ON (Solid)OFF
Fast Charge (500 mA)ON (Solid)ON (Solid)
Final Trickle Charge (50 mA)OFFON (Solid)
Top Off Charge (25 mA)OFFON (Solid)
Charge Complete (0 mA)OFFON (Blinking, 1 sec)
Initial Trickle Charge (50 mA)ON (Solid)OFF
Status Indication for Fault Modes:
-D
9
Fault Mode Board StatusRed LEDGreen LED
Overvoltage Initial
(Restart Initiated)
Overvoltage
(Persistent, Latched-off after 9
attempts)
OvercurrentON BlinkingOFF
Red LEDGreen LED
ON (Blinking)OFF
ON (Blinking Faster)OFF
).
9
With no input connected and 4 NiMH batteries used as a load, the MCP1630 NiMH
Battery Charger Demo Board will consume approximately 29 μA from the battery.
A temperature sensor is provided for charge termination. The sensor (U2) is located on
the back of the printed circuit board. To utilize this feature, batteries should be in
physical contact with the temperature sensor.
Programming:
- J1 can be used as a Flash programming port to modify the code for prototype applications. The pinout of J1 matches the required pinout for the
MPLAB