電池設(shè)計(jì)的充電器
Device : AT90S2333
File name : BC.c
Ver nr. : 1.0
Description : Standalone Battery Charger with AT90S2333 (main program)
Compiler : IAR icca90
Author : Asmund Saetre / Terje Frostad / Dietmar Koenig
Change log : 02.02.2000 Changed to fit Battery Charger refrence
design board AS
18.02.2000 Final test and review AS
http://www.bc-cn.net/Article/kfyy/cyy/jc/200409/5_4.html
float aver(float a[5])
{
int i
float av,s=a[0]
for(i=1 i<5 i++)
s=s+a[i]
av=s/5
return av
}
void main()
{
float sco[5],av
int i