An0259 PDF
An0259 PDF
An0259 PDF
• Minimal hardware required A slow charge is technically more efficient than a fast
charge. The workaround is, create a low-cost charger
• Constant current charging using the Z8 design that charges batteries with a maximum 4 hrs to
Encore! F0830 pulse-width modulation 4.5 hrs charging cycle.
(PWM)
• Fast charge = 0.25 C (500 mA) for 2000 mAh The circuit is designed to stop the charging cycle
battery when it detects negative dv/dt. The circuit continu-
ously monitors battery voltage and current.
• Ability to charge three serially connected 1.2 V
AAA batteries at up to 500 mA
The advantage of this proposed design is its simplic-
• In-circuit programming simplifies firmware ity—fewer components reduce the cost of the circuit,
upgrades and evaluation and implementation is fast and easy.
• Battery voltage and current monitoring using
Z8 Encore! F0830 10-bit ADC Hardware Architecture
• Three methods for ending the charge cycle are: The hardware circuit is designed using the 20-pin Z8
– Detecting negative dv/dt Encore!® F0830 microcontroller. The design speci-
AN025902-0208 Page 2 of 7
Low-Cost NiMH Battery Charger Using the Z8F0830
You can set over-voltage (MAX_BATT_VOLT), cur- • Z8 Encore!® F0830 Series Product Specifica-
rent set limit (CURRENT_MAMP), maximum count tion (PS0251).
of negative slope (MAX_SLOP_COUNT), and max- • Z8 Encore!® F083x Series Programming Spec-
imum charging time (BATTERY_TIMEOUT) to the ification (PRS0010).
desired values in charger.h file and timer.h
• Z8 Encore!® Based AA type NiMH and NiCD
file.
Battery Charger Reference Design (AN0229).
• Z8 Encore!®-Based SLA Battery Charger
Example: Maximum timeout calculation; if battery
Application Note (AN0223).
rating is 400 mAh and charging current is 200 mA.
• Z8 Encore!®-Based NiMH Battery Charger
Maximum Time (Hour) = Rated battery current/ Application Note (AN0222).
charging current = 400/200 = 2 hrs • Z8 Encore!®-Based NiCD Battery Charger
Application Note (AN0221).
Set the macro in timer.h file for 2 hrs: • Z8 Encore! XP®-Based Lithium Ion Battery
Charger (AN0218).
# BATTERY_TIMEOUT 2 /* maximum • Z8 Encore!®-Based Battery Charger (AN0137)
battery charging time */ • eZ8 CPU Core User Manual (UM0128).
Results
The batteries are charged in CONSTANT-CUR-
RENT mode up to 500 mA. Charging is terminated
when negative dv/dt is detected, maximum battery
voltage is detected, or the maximum charge time
elapses.
Summary
This application note describes a low-cost NiMH bat-
tery charger implementation using the Z8 Encore!®
F0830 MCU. The MCU’s internal 10-bit ADC makes
accurate recharging possible, and the overall design
ensure that the NiMH batteries are never over-
charged.
AN025902-0208 Page 3 of 7
Low-Cost NiMH Battery Charger Using the Z8F0830
Appendix A—Schematics
Appendix A displays the schematics of Low-Cost NiMH Battery Charger (Figure 1).
Appendix B—Flowchart
This Appendix displays the flowchart for the Low-Cost NiMH Battery Charger (Figure 2).
Start
Initialize peripheral:
• ADC,
• Timer in continuous mode
• Timer in PWM mode
Terminate battery No
charging?
Stop charging
End
AN025902-0208 Page 5 of 7
Low-Cost NiMH Battery Charger Using the Z8F0830
AN025902-0208 Page 6 of 7
Low-Cost NiMH Battery Charger Using the Z8F0830
As used herein
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b)
support or sustain life and whose failure to perform when properly used in accordance with instructions for
use provided in the labeling can be reasonably expected to result in a significant injury to the user. A
critical component is any component in a life support device or system whose failure to perform can be
reasonably expected to cause the failure of the life support device or system or to affect its safety or
effectiveness.
Document Disclaimer
©2008 by Zilog, Inc. All rights reserved. Information in this publication concerning the devices,
applications, or technology described is intended to suggest possible uses and may be superseded. ZILOG,
INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY
OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT.
Z I L O G A L S O D O E S N O T A S S U M E L I A B I L I T Y F O R I N T E L L E C T U A L P R O P E RT Y
INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR
TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this
document has been verified according to the general principles of electrical and mechanical engineering.
Z8, Z8 Encore!, and Z8 Encore! XP are registered trademarks of Zilog, Inc. All other product or service
names are the property of their respective owners.
AN025902-0208 Page 7 of 7
7