鉴于大家对电子数电单片机十分关注,我们编辑小组在此为大家搜集整理了“手机电池性能检测”一文,供大家参考学习
论文编号:JD547 附原理图,论文字数:16899,页数:55
摘 要
由于手机电池市场的混乱,急需要设计一种新型的手机电池性能检测仪,本设计主要针对镍氢手机电池进行检测。根据镍氢手机电池的充放电特性,给出了一种利用单片机构成的经济实用型手机电池性能检测仪的设计方案。通过低成本高可靠性的硬件设备及软件,实现了对手机电池的充电性能,放电性能,循环寿命三个指标的检测。以单片机为核心,主要设计了恒流源电路,给出了系统总体结构框图及软件流程图。系统通过对检测到的手机电池充放电电流值与给定电流值的比较,通过相应算法来控制恒流源电路,以实现恒流控制。3位数码管动态显示手机的实时充放电电流值和给定值,按键输入设定电流值。各性能指标可独立检测,且能够显示测试结果。
关键词 手机电池 单片机 恒流源
Title The cellular phone battery function examine
Abstract
Because of the confusion of cellular phone battery market, a kind of new function examination instrument of the cellular phone battery is needed urgently , this design is mainly to the Ni hydrogen cellular phone battery .according the refresh and discharge of the Ni hydrogen cellular phone battery characteristic,using single slice machine ,the text introduces a kind of design project of economic practical type cellular phone battery instrument .With hardware equipments and software of low cost and high credibility,the opponent machine refresh of battery function, turn on electricity function, circulate life span three examinations of index signs are carried out.And with single slice machine for core, the systerm mainly designs stabilized electric circuit source,and introduces the system total structure frame diagram and software flow chart. The system can carry out a control of a stabilized electric current value,through comparison between the gived electric current value and current electric circuit value with the correspond calculate way. 3 dynamic state figures tube show the solid hour refresh and discharge electric current value with give settle value of cellular phone, keystroke enactments electric current value.Each function index sign can independently examine, and can show a test result.
Key Words cellular phone battery single slice machine stabilized electric circuit source
目 录
1 引言 ………………………………………………………………………………… 1
1.1 课题背景 …………………………………………………………………… 1
1.2 课题研究方向和途径 ……………………………………………………………… 2
2 硬件部分及外围电路设计 …………………………………………………………… 4
2.1 单片机最小系统简介………………………………………………………… 4
2.2 时钟芯片DS1302简介 …………………………………………………………… 8
2.3 恒流充放电电路 ……………………………………………………………… 11
2.4 A/D和D/A转换电路………………………………………………………… 16
2.5 8255可编程接口芯片 …………………………………………………………… 20
2.6 按键及接口设计 ……………………………………………………………… 21
2.7 显示及接口设计 …………………………………………………………………… 22
2.8 电源电路 …………………………………………………………………………… 25
2.9 发光二极管 ………………………………………………………………………… 26
3 软件设计部分 ………………………………………………………………………… 27
3.1 主程序流程图 ……………………………………………………………… 27
3.2 D/A转换子程序流程图 …………………………………………………………… 29
3.3 采样子程序流程图 ……………………………………………………………… 29
3.4 显示子程序流程图 ………………………………………………………… 30
3.5 PID算法子程序流程图 ………………………………………………………… 31
3.6 键盘子程序流程图 ……………………………………………………………… 32
3.7 输出控制子程序流程图 …………………………………………………………… 38
结论 …………………………………………………………………………………… 39
致谢 …………………………………………………………………………………… 40
参考文献 ………………………………………………………………………………… 41
附录A 程序清单 ……………………………………………………………………… 42
附录B 硬件原理图 …………………………………………………………………… 55