|
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
BC.H
In the BC.H module, the bit handling
macros, charge status, and termination bit mask constants are defined.
The charge status indicates the battery chargerýs actual statusýfast-charging,
trickle-charging, or if an error has occurred. For Li-Ion and SLA
battery types, an indication of the charge mode, constant voltage,
or constant current is included as well, as if Li-Ion is in the final
stage of its fast-charge mode (called delay). The termination indicates
the reason why the fast-charge mode was terminated or, in case of
a charge error, where the error was detected. It can also be used
for program debugging.
PREVIOUS
NEXT
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. |