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, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active
Thermistor, Mindi, MiWi, MPASM, MPLIB, MPLINK, 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 PIC
8-bit MCUs, KEELOQ
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
MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design. 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 MCP1630V Bidirectional 4 Cell Li-Ion Charger
Reference Design as a development tool to emulate and debug firmware on a target
board. The manual layout is as follows:
• Chapter 1. “Product Overview”– Important information about the MCP1630V
This user's guide describes how to use MCP1630V Bidirectional 4 Cell Li-Ion Charger
Reference Design. The following Microchip documents are available and
recommended as supplemental reference resources.
MCP1630/MCP1630V Data Sheet, "High-Speed, Microcontroller-Adaptable, Pulse
Width Modulator" (DS21896)
This data sheet provides detailed information regarding the MCP1630/MCP1630V,
product family.
PIC16F88 Data Sheet, "20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with
Nano Watt Technology” (DS30487)
This data sheet provides detailed information regarding the PIC16F88 product family.
APEC Conference Paper, "Bi-Directional Power System for Laptop Computers",
2005
This paper provides detailed information about powering laptop computers using 4
series cell Li-Ion batteries with a bidirectional laptop computer.
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
Customers should contact their distributor, representative or field application engineer
(FAE) 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
As high power portable applications continue to gain in popularity, more innovative
techniques are needed to charge the batteries while also providing a low regulated
voltage to the system’s high end digital electronics. For example, laptop computers,
portable test equipment, portable printers, etc., all require more power than a single or
two cell Li-Ion battery pack can efficiently store. As a result, three or four series Li-Ion
cell packs are used to store the necessary that power these high end applications. The
result is a high dc voltage used to store the energy requiring a difficult high voltage to
low voltage dc-dc conversion. The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design can be used to evaluate a design that boosts a low source voltage to
charge four Li-Ion series cells while providing energy to the system simultaneously.
When the source is removed, the same power train used to charge the battery pack
provides a low regulated voltage to operate the system.
This chapter covers the following topics.
• What is the MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design?
• What the MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design Kit
includes.
MCP1630V BIDIRECTIONAL 4 CELL
LI-ION CHARGER REFERENCE
DESIGN USER’S GUIDE
Wide Range
ac Input
(85 Vrms to 240 Vrms)
Low Voltage
dc Output (+7.0V)
AC/DC
Converter
FIGURE 1-1:MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design
shown in Laptop Computer system level block diagram.
1.2WHAT IS THE MCP1630V BIDIRECTIONAL 4 CELL LI-ION CHARGER
REFERENCE DESIGN?
The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design demonstrates
the use of a bidirectional buck-boost converter used to charge multiple series cell Li-Ion
batteries with the presence of an input source (boost) and provide a regulated output
voltage when the input source is removed (buck). The board also serves as a platform
to evaluate the MCP1630V device.
The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design inputs were
developed to be easily attached to the I/O of a PIC
the oscillator (OSC_IN) and reference voltage (V
flexible and adaptable power system. The power system switching frequency and
maximum duty cycle are set using the hardware PWM of the MCU. The reference input
to the high speed analog PWM can be external, a D/A Converter (DAC) output or as
simple as an I/O output from the MCU. This enables the power system to adapt to
external signals and variables in order to optimize performance and facilitate
calibration.
This board utilizes Microchip's MCP1630V (high-speed PIC MCU PWM MSOP8) with
the PIC16F88 (Flash MCU) in a four cell Li-Ion charger combined with a synchronous
buck regulator. Under normal operation, the input supply can range between 6.5V and
7.0V. The converter is capable of charging four Li-Ion cells connected in series when
the 6.5V input is present and regulating the bulk input voltage to 6.0V when the input
source voltage is removed by stepping, (bucking), down the battery pack voltage.
®
Microcontroller. The MCU supplies
) to the MCP1630V creating a
REF
1.3WHAT THE MCP1630V BIDIRECTIONAL 4 CELL LI-ION CHARGER
REFERENCE DESIGN KIT INCLUDES
The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design demonstrates
Microchip's high speed pulse width modulator (PWM) used in a four cell Li-Ion battery
charger combined power supply application. When used in conjunction with a microcontroller, the MCP1630V will control the power system duty cycle to provide regulated
output voltage or current. The PIC16F88 microcontroller oscillator output is used to provide pulses at switching frequency of 500 kHz. The MCP1630V generates duty cycle
based on various external inputs. External signals include the input oscillator pulses
from PIC16F88, the reference voltage and the feed back voltage. The output signal is
a square wave pulse provided to the synchronous gate drive input. They synchronous
gate driver is used to turn on and off the upper buck MOSFET and lower synchronous
MOSFET.
The PIC16F88 microcontroller is programmable, allowing the user to modify or develop
their own firmware routines to further evaluate the MCP1630V in this application.
MCP1630V BIDIRECTIONAL 4 CELL
LI-ION CHARGER REFERENCE
DESIGN USER’S GUIDE
2.5FEATURES
The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design has the following
features:
• Four Cell Li-Ion Battery Charger, operates stand alone. (Additional firmware
• Charges four cell Li-Ion battery pack from 6.5V to 7.0V Input (complete
• Regulates input dc bus voltage, (steps battery pack voltage down), to 6.0V when
• ON/OFF button used to enable and disable system, low I
• Output over-voltage protection in the event of open battery connections
• High efficiency over entire operating input voltage range (94% typical)
• PIC16F88 is used to generate ref Voltage and Oscillator signal at 500 kHz
• Proprietary features can be added by modifying the firmware contained in the
• Factory programmed source code is available
added allows the charger to communicate with smart battery packs)
precondition, constant current and constant voltage charge algorithm in firmware)
input source is removed (providing uninterrupted power source for system)
The MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design is fully
assembled and tested for charging a four series cell Li-Ion battery pack (Battery Pack
should have internal overvoltage, overcurrent and overtemperature protection). The
board requires the use of an external input voltage source (+7.0V) for charging.
2.6.1Power Input and Output Connection
2.6.1.1POWERING THE MCP1630V BIDIRECTIONAL 4 CELL LI-ION
CHARGER REFERENCE DESIGN
1. Connect the positive side of the +6.5V to +7.0V input to J2 Pin 2, connect the
negative side (or ground) to Pin 1 of J2. This source voltage should not exceed
7.0 and be rated for 8A minimum supply current.
2. Connect the positive side of the Four cell Li-Ion battery pack voltage to J1 Pin 1,
connect the battery pack return to the negative side of J1 Pin 2.
Note:Both supplies should have a separate isolated return (ground), there is a
current sense resistor between the +7.0V (V
returns. If the returns are connected, the charge current can not be
controlled.
) and +14V(V
BULK
BATT
) supply
3. Once the SW1 push button is pressed, the MCP1630V Bidirectional 4 Cell Li-Ion
Charger Reference Design is powered. When powered, a charge cycle will start
automatically if the 7.0V is connected and all preconditions are meet, (see
Appendix C. “Firmware”).
4. LED D3 will be illuminated when the board is running, (charging or bucking).
5. LED D5 will flash only when a charge cycle is in progress.
6. Again, a subsequent pressing of the SW1 push button during normal operation
of the MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference Design will
power-off the converter.
A four cell battery pack (with internal protection) is connected to the J1 connector
before applying input power and pressing SW1 to start the charge cycle. Once the
battery pack is connected, SW1 can be pressed to start the synchronous buck
converter (assuming there is no 7.0V input applied to J2). With the battery pack
connected, the source for J2 can be “hot” plugged in and out, a voltage will always be
present on J2 until SW1 is pressed shutting off the converter.
2.6.1.3ALTERNATIVE BATTERY PACK SIMULATOR
As an alternative to the four cell Li-Ion battery pack, a battery pack simulation circuit
can be used, (Figure 2-3). This simulation circuit consists of an adjustable metal wound
power load resistor (10Ω, 100W), Aluminum Electrolytic Capacitor (3,300 µF 25V) and
Schottky Diode (10V, 30V). For evaluating the bidirectional converter design, the battery simulator circuit is recommended. When using the battery pack simulator, the
operating point for charging and discharging can be easily be adjusted using the V
power supply and load resistor value.
2.6.1.4LED STATUS INDICATION
Two LED’s are connected to the I/O of the PIC16F88 to provide status of the charger.
LED D3 provides indication that the converter is running while LED D5 flashing
provides indication that the converter is charging. With a 6.5V to 7.0V source applied
to J2 while the converter is running, a charge cycle is initiated. Once the charge cycle
is complete, the charger will continue to operate providing 0 mA of current to the
battery. If the source is removed from J2, the converter will regulate the V
BULK
to 6.0V with a load up to 6A.
BATT
voltage
Evaluating the Application
The best way to evaluate the MCP1630V Bidirectional 4 Cell Li-Ion Charger Reference
Design is to operate the bidirectional power system over a wide range using the battery
pack simulator. The simulator consists of a 10
voltage source. When configured as shown in Figure 2-3, the circuit will simulate a
battery. The load
resistor is used to sink current from the charger while a large capacitor
is used to simulate the battery voltage (V
operating points in the charge cycle can be evaluated.
Once evaluated using the battery pack simulator, the bi-directional reference design
can be used to run charge and discharge cycles using a four cell Li-ion battery pack. If
using an actual Li-ion battery pack, it must have the proper protection features
including, (overvoltage, overcurrent, overtemperature, etc.).
The PIC16F88 comes pre programmed with firmware to operate the system as
described above. The file listing and firmware flow diagram are shown in Appendix
C. “Firmware”.
Programming
Header J4 is provided for In-Circuit Serial Programming™ (ICSP™). This is an optional
feature since the demo board comes preprogrammed with firmware to operate the
system. The PIC16F88 can be reprogrammed with the Baseline Flash Microcontroller
Programmer (BFMP).
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.
DESIGN USER’S GUIDE
Charge States
Idle = 0 mA
P.C. = Pre-Charge
C.C. = Constant Current
C.V. = Constant Voltage