Application Report. 1 Introduction. MSP430 Products. Harman Grewal... ABSTRACT



Similar documents
Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

Application Report. 1 Description of the Problem. Jeff Falin... PMP Portable Power Applications ABSTRACT

Design Note DN004. Folded Dipole Antenna for CC25xx By Audun Andersen. Keywords. 1 Introduction CC2500 CC2550 CC2510 CC2511

TI and ibiquity Introduce Industry s Lowest Cost Single-Chip AM/FM and HD Radio Baseband John Gardner Digital Radio Marketing Manager

Calculating Gain for Audio Amplifiers

6 Output With 1 kω in Series Between the Output and Analyzer Output With RC Low-Pass Filter (1 kω and 4.7 nf) in Series Between the Output

APPLICATION NOTE BUILDING A QAM MODULATOR USING A GC2011 DIGITAL FILTER CHIP

Data sheet acquired from Harris Semiconductor SCHS067B Revised July 2003

Choosing Inductors and Capacitors for DC/DC Converters

LM5030 LM5030 Application: DC - DC Converter Utilizing the Push-Pull Topology

Data sheet acquired from Harris Semiconductor SCHS087D Revised October 2003

µa7800 SERIES POSITIVE-VOLTAGE REGULATORS

TVP5146 SCART and OSD

SDLS068A DECEMBER 1972 REVISED OCTOBER Copyright 2001, Texas Instruments Incorporated

Using C to Access Data Stored in Program Memory on the TMS320C54x DSP

Data sheet acquired from Harris Semiconductor SCHS020C Revised October 2003

Evaluating the complex configuration options of the Texas Instruments advanced fuel gauges can be

AMC1100: Replacement of Input Main Sensing Transformer in Inverters with Isolated Amplifier


ORDERING INFORMATION. TOP-SIDE MARKING PDIP N Tube SN74LS07N SN74LS07N PACKAGE. SOIC D Tape and reel SN74LS07DR

Application Note AN107

Optical Implementation Using IEEE-1394.b

Using Code Coverage and Multi-event Profiler in Code Composer Studio v2.3 for Robustness and Efficiency Analyses

ZigBee Sensor Monitor SWRU157D 2008 Low-Power RF


White Paper on Decision of Make vs. Buy of ISM RF Module Written by Bruce Ulrich October 2006

LM556 LM556 Dual Timer

Design Note DN002. Practical Sensitivity Testing By Morten Engjom. Keywords. 1 Introduction. Receiver Testing Sensitivity

Providing Continuous Gate Drive Using a Charge Pump

Pressure Transducer to ADC Application

Designing Gain and Offset in Thirty Seconds

Filter Design in Thirty Seconds

Design Note DN304. Cebal CCxxxx Development Tools USB Driver Installation Guide By Åsmund B. Bø. Keywords. 1 Introduction

Controlling TAS5026 Volume After Error Recovery

Application Report. Jim Patterson... Americas Field Applications

August 2001 PMP Low Power SLVU051

How To Close The Loop On A Fully Differential Op Amp

LM709 LM709 Operational Amplifier

AN2389 Application note

SN54165, SN54LS165A, SN74165, SN74LS165A PARALLEL-LOAD 8-BIT SHIFT REGISTERS

Ultra-Low Power Comparison: MSP430 vs. Microchip XLP Tech Brief A Case for Ultra-Low Power Microcontroller Performance

LM388 LM W Audio Power Amplifier

54LS174,54LS175,DM54LS174,DM54LS175, DM74LS174,DM74LS175

Analysis of Power Supply Topologies for IGBT Gate Drivers in Industrial

Using Texas Instruments Spice Models in PSpice

Current-Transformer Phase-Shift Compensation and Calibration

Designing Applications with Lithium-Ion Batteries

User s Guide. 100-W Universal Line Input PFC Boost Converter Using the UCC User s Guide

Transcoding with TI s DaVinci Technology Drives Video Market Evolution

LM138,LM338. LM138/LM338 5-Amp Adjustable Regulators. Literature Number: SNVS771A

Smart Codec Features in TMS320DM365

Selecting the Right Level-Translation Solution

TRF7960 Evaluation Module ISO Host Commands

Ultrasonic Sensing Basics for Liquid Level Sensing, Flow Sensing, and Fluid

Smart Battery Module with LEDs and Pack Supervisor

AN2680 Application note

Wireless Subwoofer TI Design Tests

AN-1733 Load Transient Testing Simplified

DC/DC LED Lighting Developer s Kit Hardware

Broadband Data, Video, Voice and Mobile Convergence Extending the Triple Play. Yigal Bitran, Chief Technology Officer

Data sheet acquired from Harris Semiconductor SCHS078C -- Revised October 2003

bq2114 NiCd or NiMH Gas Gauge Module with Charge-Control Output Features General Description Pin Descriptions

How To Make A Two Series Cell Battery Pack Supervisor Module

Importing a SPICE NetList Into TINA9-TI

Texas Instruments. FB PS LLC Test Report HVPS SYSTEM AND APPLICATION TEAM REVA

Motor Speed Measurement Considerations When Using TMS320C24x DSPs

Simple 1.5-V Boost Converter for MSP430

TVP5146 VBI Quick Start

LM1851 LM1851 Ground Fault Interrupter

Audio Tone Control Using The TLC074 Operational Amplifier

Understanding the Terms and Definitions of LDO Voltage Regulators

Combining the ADS1202 with an FPGA Digital Filter for Current Measurement in Motor Control Applications

DS8907 DS8907 AM/FM Digital Phase-Locked Loop Frequency Synthesizer

Application Report SLVA051

RECHARGEABLE BATTERY CONSIDERATIONS IN PORTABLE EQUIPMENT

Evaluation Criteria for ADSL AFE1302

Multi-Transformer LED TV Power User Guide. Anderson Hsiao

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

THE RIGHT-HALF-PLANE ZERO --A SIMPLIFIED EXPLANATION

RETRIEVING DATA FROM THE DDC112

Buffer Op Amp to ADC Circuit Collection

Programming the On-Chip Flash Memory in a Stellaris Microcontroller. Application Note. Copyright Texas Instruments

POCKET SCOPE 2. The idea 2. Design criteria 3

Series AMLDL-Z Up to 1000mA LED Driver

description/ordering information

Output Filter Design for EMI Rejection of the AAT5101 Class D Audio Amplifier

200-W Interleaved Forward Converter Design Review Using TI s UCC28221 PWM Controller

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

AN-225 IC Temperature Sensor Provides Thermocouple Cold-Junction

Thumbus2300. User's Guide. 1 Introduction. 1.1 Features. 1.2 Kit Contents

Design Note DN041. Using CC253X or CC254X with Dipole PCB Antennas. Keywords. 1 Introduction. By Espen Wium CC2530 CC2531 CC2533 CC2540 CC2541

Implementing a Real-Time Clock on the MSP430

Using the Texas Instruments Filter Design Database

SN28838 PAL-COLOR SUBCARRIER GENERATOR

LMS8117A LMS8117A 1A Low-Dropout Linear Regulator

AN3265 Application note

CUSTOM GOOGLE SEARCH PRO. User Guide. User Guide Page 1

Application Report. Vincent Chan, Steve Underwood... MSP430

Battery Cell Balancing: What to Balance and How

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

Transcription:

Application Report SLAA287 December 2005 Li-Ion Battery Charger solution using the MSP430 Harman Grewal... MSP430 Products ABSTRACT Rechargeable batteries are now widely used as the power supply source in many portable electronic equipments such as Laptops, cell phones and digital cameras. Charging circuits depend on the batterys chemistry and the most popular rechargeable batteries are Nickel-Cadmium (NiCd), Nickel-Metal-Hydride (NiMH), and Lithium-Ion (Li-Ion). This application report discusses the method to charge a Li-Ion battery using the MSP430 microcontroller. 1 Introduction Li-Ion is rapidly becoming the chemistry of choice for portable applications because of its high capacity-to-size ratio and a low self discharge characteristic. There are a variety of battery charging solutions such as power management ICs, MCU controlled or even logic devices. The MCU controlled charging method offers its advantage as a safe charging, time efficient and low cost solution. Battery capacity, C, expressed in ma hours, is a measure of battery life between charges. Battery current has the units of C-Rate. For example, a 500 ma-h battery has a C-Rate of 500mA. The current corresponding to 1C is 500 ma and for 0.1C is 50 ma. A Li-Ion battery charging process consists of three stages: Slow Charge: Pre-charging stage using current of 0.1C Fast Charge: Constant current charging stage using current of 1C Constant voltage charging stage During the slow charge stage, the battery is charged with a constant low charge current of 0.1C, if the battery voltage is below 2.5V. If some batteries like NiCd are recharged without fully discharging, they suffer from a phenomenon called memory effect, which causes a reduction in the battery capacity. Li-Ion batteries however do not suffer from memory effect and hence do not need to be fully discharged before recharging. The slow charge stage is rarely used during the charging process of a Li-Ion battery. The fast charge (constant current) and constant voltage charging are the most important stages during a recharge process. Most Li-Ion batteries have a fully charged voltage of 4.1 or 4.2V. The battery is first charged with a constant current of 1C until a battery voltage reaches 4.1 or 4.2V. The firmware continuously checks the charging current by sensing the voltage at the current sense resistor (R sense ) and adjusts the duty cycle of PWM output from the MCU. The battery's voltage is checked frequently. Whenever found the battery's voltage reaches 4.1 or 4.2V, the charger will switch to constant voltage charging mode. The battery is then charged with a constant voltage source at a fixed battery voltage of 4.1 or 4.2 V. The battery voltage is checked and maintained at 4.1V by controlling the duty cycle of the PWM output. During this process the charging current will start to fall due to internal cell resistance. When the charging current falls below 0.1C, the charging process must stop. SLAA287 December 2005 Li-Ion Battery Charger solution using the MSP430 1

Introduction Vreg (4.2 V) Pre-Charging Constant Current Charging Constant Voltage Charging Ireg(500 ma) Vmin (3 V) Vstart Ibat Ipre (50 ma) Imin 0 1 2.5 Time Hours Figure 1. Current vs Voltage Curve for Li-Ion Battery Charging When the battery is fully charged, most of the electrical energy is converted to thermal energy. Overcharging batteries can cause overheating, explosion due to outgassing of the electrolyte and severely reduce battery life. Li-Ion batteries are extremely sensitive to overcharging and hence it is critical that the final voltage be controlled to within ±50 mv of 4.1 or 4.2V. A battery charger design needs to be able to determine a fully charged battery to avoid overcharging. A few methods to determine a fully charged condition are: During the constant voltage charging stage, when the current drops to 0.1C, a fully charged condition is reached. Determine the battery temperature to avoid overheating Use a safe timing method: As long as the charging time is longer than a predetermined time, the battery can be considered as fully charged. 2 Li-Ion Battery Charger solution using the MSP430 SLAA287 December 2005

2 Measurement Circuit A block level schematic of the charger is shown in Figure 2. Measurement Circuit AC-DC Adapter 6 V D3 Q D1 L V O LDO C2 3.3 V VCC MSP430F12x2 MCU TA1 R4 R3 R5 Q2 D2 C1 R1 V ref R2 B1 A0 A1 A2 P1.x R6 LED R7 NOTE: The thermistor may be external or integrated in the battery RT1 R sense Figure 2. Block Level Schematic A buck converter is used during the constant current and voltage charge stages. A buck converter is a step down voltage converter which uses the inductor as a current source to the output load impedance, which is the battery in this case. The PNP and NPN transistors form a switch that is controlled by a PWM signal. The Timer_A3 on the MSP430 can be used to control the current for charging the battery using the PWM feature. When this switch is on, current flows through the inductor and the capacitor is charged, as shown in Figure 3. When the switch is opened the inductor will try to maintain its current flow by inducing a voltage, because an inductor cannot have an instantaneous change in current. The current now flows through the diode and the inductor charges the capacitor, as shown in Figure 4. The LC network acts as a low-pass filter and if the PWM frequency is much higher than the cut-off frequency of the LC network, the capacitor voltage is constant and equal to the mean value of the input voltage to the buck converter. L1 V IN Battery D2 C1 Figure 3. Buck Converter Switch On SLAA287 December 2005 Li-Ion Battery Charger solution using the MSP430 3

Measurement Circuit L1 V IN D2 C1 Battery Figure 4. Buck Converter Switch Off The value of the inductor can be calculated as follows: L = Duty Cycle T (V I V sat V O ) / 2I O Duty Cycle = the duty cycle of the PWM T = the period of the PWM V O = voltage output V sat = voltage loss on the switch V I = voltage input to the switch I O = current for constant current stage Assuming V I is 6V, V sat is 0.5V, Io is 500mA, V O is 4.575V, 1/T is 15 khz, Duty cycle is 50%. V O = V bat + I bat R sense = 4.2 + 500mA 0.75 = 4.575V The inductor should be at least 62 µh. For this implementation a value of 75 µh is used. When the timer is clocked from the DCO whose frequency is set to 3.84 MHz, the TACCR0 value needs to be 255 to achieve a PWM frequency of 15 khz (3.84 MHz/256). The timer runs in up mode and the timer output switches in toggle/set mode. The duty cycle of the timer output (TA1) can be controlled by adjusting the value of TACCR1. A PWM resolution of 8-bits is enough to control the constant current flow in the battery during the constant current charging stage and maintain a constant voltage on the battery during the constant voltage charging stage. If the capacitor is 220 µf and the inductor is 75 µh, the cutoff frequency of the LC network is 1.2 khz (1 (2 π ( (L C)))), which is much lower than the PWM frequency. This helps the capacitor to effectively reduce the output voltage ripple and maintain a DC voltage level. Three channels (A0, A1, A2) on the 10-bit A/D converter on the MSP430 can be used to monitor the battery voltage, battery temperature and battery current. 1 LSB is equal to V ref /(N - 1), where V ref is the reference voltage and N is the resolution in bits of the A/D converter. With a 1.5V on chip reference, 1 LSB is 1.5/1023 =1.47 mv The range of voltages that the ADC10 needs to detect can be calculated as follows: The highest voltage, V O, during the constant current charging stage is 4.575V. The voltage seen by the ADC10 input due to the voltage divider (R1 = 2.1 R2) is 4.575/3.1 = 1.5V. This is within V ref and hence can be resolved by the ADC10. The smallest voltage that the ADC10 needs to detect is during the constant voltage stage to monitor the battery current and stop the charging process. ADC10 needs to detect the voltage drop created by a 0.1C current through the battery. In this case it is 50mA 0.75 = 37.5 mv. This is about 25 LSB of resolution and can be resolved with the ADC10. For this application, a thermistor (RT1) was connected to the negative pole of the battery. The thermistor resistance decreases with temperature and so does the thermistor voltage. The thermistor chosen is a 10 k part. The thermistor characteristics can be found at: http://rocky.digikey.com/weblib/bc%20components/web%20data/2322%20640%205%20ntc%20ther mistors.pdf 4 Li-Ion Battery Charger solution using the MSP430 SLAA287 December 2005

Software An abnormally low voltage indicates overheating and the charging process must stop. This voltage can be detected by the ADC10 input. 3 Software 3.1 Main The software provided with this firmware is supported in both C and assembly languages (IAR and CCE). The software is divided into a main routine and two ISRs, which are explained as follows: This routine sets up DCO to run SMCLK at 3.84 MHz. The Timer_A3 registers are setup to output a PWM on TA1. The timer is also setup to trigger ADC10 conversions. The ADC10 is setup in repeat sequence of channels mode along with the DTC, which is setup to continuously transfer data from channels A2, A1 and A0 to a RAM array. Channel A2 samples the thermistor voltage (Battery temperature), A1 monitors the voltage on R sense (Battery current) and A0 monitors the voltage on R2 (Battery voltage). The 1.5V reference is also output on V ref + pin on the chip to be used as a reference for thermistor voltage measurements. 3.2 ADC10 ISR The ADC10 ISR is triggered when the DTC completes the transfer of one block (3 words of data) to the ADC10SA which is a RAM array that stores conversion results from channel A2, A1 and A0. If the Battery temperature exceeds 40 C, the charging process is stopped. The timer, ADC10 and the Watchdog timer (interval timer mode) are halted. In the beginning of the charge cycle, if the battery voltage is less than 1V or greater than 4.3V, a LED is set to indicate a short circuit or battery not detected status. During the constant current and constant voltage charging stages, TACCR1 controls the duty cycle of PWM output on TA1 to maintain constant current/voltage respectively. 3.3 Watchdog Timer ISR When the charge current drops to 0.1C during the constant voltage charging stage, the watchdog timer is setup as an interval timer clocked from ACLK/8. The watchdog timer ISR is entered every 8 seconds to create a 15 minute delay before ending the charging process. The MSP430 microcontroller sits in LPM0 during the entire charging process and is only woken up by the interrupt service routines. SLAA287 December 2005 Li-Ion Battery Charger solution using the MSP430 5

Software 3.4 Software Flowchart A software flowchart is shown below to illustrate the charging algorithm: Setup ADC10 TA2: ADC10 Trigger TA1: Variable PWM Output Start Conversion, enter LPM0 Set P1.1 for Alarm Status V(R2) > 0.3 V V(R2) < 1.5 V Battery not detected. Set P1.1 for Alarm Precharge I(Rsense) = 0.1C V(R2) > 0.85 V Constant current charge, I(Rsense) = 1C V(R2) > 1.42 V I(Rsense) < 0.1C Constant voltage charging, V(R2) = 1.45 V Exit LPM0, Setup WDT as Interval Timer V(R2) = 1.45V, Charge for 30 minutes using WDT Interval Timer mode, enter LPM0, Blink P1.0 LED End Charging, P1.0 LED Stops Blinking Figure 5. Software Flowchart 6 Li-Ion Battery Charger solution using the MSP430 SLAA287 December 2005

Conclusion 4 Conclusion MSP430 microcontroller is a good fit for Li-Ion battery charger solution because of integrated peripherals like the high resolution ADC10 and a watchdog timer. The example application for this report has been implemented and tested to be functional for the operations described. 5 References 1. MSP430x1xx Family User's Guide, SLAU049 2. MSP430F11x2, MSP430F12x2 Mixed Signal Microcontroller datasheet, SLAS361 SLAA287 December 2005 Li-Ion Battery Charger solution using the MSP430 7

IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Amplifiers amplifier.ti.com Audio www.ti.com/audio Data Converters dataconverter.ti.com Automotive www.ti.com/automotive DSP dsp.ti.com Broadband www.ti.com/broadband Interface interface.ti.com Digital Control www.ti.com/digitalcontrol Logic logic.ti.com Military www.ti.com/military Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork Microcontrollers microcontroller.ti.com Security www.ti.com/security Low Power Wireless www.ti.com/lpw Telephony www.ti.com/telephony Video & Imaging www.ti.com/video Wireless www.ti.com/wireless Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2006, Texas Instruments Incorporated