gevv | | Tarih: 13.12.2006, 11:43 Mesaj konusu: Atmel liion charger roboty | |
| BC.c Don Carveth July 2002
Multi chemistry, multi cell battery charger based on Atmels app note AVR450.
Added a Smart Battery interface and made numerous modifications to the
Atmel program.
The program was originally written for an AT90S4433. After adding the Smart
Battery routines I switched to an ATMEGA8 (same pin-out but 8K memory
instead of 4K) as I was well beyond 4K flash usage.
You need to use the new GCC 3.2 compiler to be able to use the direct
I/O assigments and for the ATMEGA8.
Note that the overall program is made up of code, and styles, from
three separate sources: Atmels code, the smart battery code (modified
by me from a generic I2C interface for the 68HC11/Imagecraft C) and my
own code. The resulting program is a littel disjointed.
Main() is located in BC.c. User configuration is primarily in LiIon.h.
Most of the action takes place in LiIon.c. SBComm.c contains the
Smart Battery routines.
|
|