ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

A BETTER BATTERY CHARGER


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

A BETTER BATTERY CHARGER

Lessons from the Trenches Part 2: Hardware and Software Implementation
by Thomas Richter

Start ý The Buck Converter ý Voltage Reference and Battery Temperature ý AT90S2333 Battery Charger ý ATtiny15 Battery Charger ý Charge Current ý Software Implementation ý User Settings ý Source Code ý INT Battery Function ý The Stable_ADC Function ý BC.H ý B_DEF.H ý Charge MethodýSLA.C ý Charge MethodýNiCd.C and NiMH.C ý Charge MethodýLilon.C ý Suggested Improvement ý Sources and PDF

THE STABLE_ADC FUNCTION

The stable_ADC function is used when measuring battery voltage or temperature (see Figure 7). It makes sure the ADC values are stable inside a defined area. This is important for an accurate measurement. The function loops until it gets three ADC values where the highest is no more than one step higher than the lowest.

Figure 7ýHere the ADC accuracy is increasing.

 

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ