1摘要在我们的日常生活中,手机已经变得越来越重要了。我们经常需要使用手机,打电话、发短信、上网、看电影、听歌、玩游戏等等。随着大屏幕和高主频的手机出现,锂离子电池就变得更加重要了,其锂离子电池充电器也受到广大消费者的重视。该课题主要是设计一种基于单片机的锂离子电池充电器,在设计上,通过AT89S52和MAX1898可以控制实现预充,快速充电,及恒压充电。该设计可以通过LCD1602监控充电过程中的各个状态,实现电路简单,成本较低,而且充电效果很好,包括安全性高,耗时短,对电池损坏小,满足一般用户的要求。本文还对充电器的核心器件MAX1898充电芯片、AT89S52单片机以及LCD1602进行了较详细的介绍。该智能充电器具有检测锂离子电池的状态;自动切换充电模式以满足电池的充电需要;充电电压显示的功能。实现定时切断MAX1898的电源,减少能耗,同时也延长了它的使用寿命。关键词:锂电池,充电器,单片机,AT89S52,MAX1898,LCD16022AbstractInourdailylives,mobilephoneshavebecomeincreasinglyimportant.Weoftenneedtousethephone,makingphonecalls,textmessaging,Internet,watchingmovies,listeningtomusic,playgamesandsoon.Withtheadventoflargescreenandhigh-frequencymobilephone,theLi-onbatteriesbecomemoreimportant,itsLi-onbatterychargerbytheconsumersattention.ThemaintopicistodesignamicrocontrolunitbasedonLi-onbatterychargerwhichisdesignedbyAT89S52andMAX1898thatcanbecontrolledtoachievethepre-charging,fastchargingandconstantvoltagecharging.Thedesigncanmonitorthechargingprocessineachstateandthecircuitisverysimple,lowcost,andagoodchargingeffect,includingthecharacterofsafe,shorttimeconsuming,smallbatterydamageandhavemettherequirementsofgeneralusing.ThearticlealsohasamoredetailedintroductiontothecoredeviceMAX1898,AT89S52andLCD1602.ThesmartchargerhasthefuntionofthestatedetectionofLi-onbattery,switchingtochargemodeautomaticallytomeettherequirementofthebattery,chargingvoltagedisplaying.ThisdesignhasachievedshutingdownthepowerofMAX1898,reducingenergyconsumption,andprolongingservicelife.Keywords:Li-onbattery,Charger,SCM,AT89S52,MAX1898,LCD16023目录引言.....................................................................................................................................................11绪论.................................................................................................................................................21.1智能充电器概念以及智能化体现............................................................................................21.2充电器智能化需求....................................................................................................................21.3智能充电过程............................................................................................................................32锂离子电池的介绍.......................................................................................................................32.1锂金属电池与锂离子电池........................................................................................................42.2锂离子电池工作原理................................................................................................................52.3锂离子电池使用注意事项........................................................................................................63硬件电路设计................................................................................................................................63.1设计思路概述..........................................................................................................................63.2充电管理芯片MAX1898简介..................................................................................................73.3MAX1898应用电路设计.........................................................................................................113.4AT89S52单片机简介...............................................................................................................123.5LCD1602简介...........................................................................................................................173.6ADC0832模数转换芯片简介..................................................................................................224系统软件设计..............................................................................................................................244.1充电流程设计..........................................................................................................................244.2单片机控制设计......................................................................................................................255结语...............................................................................................................................................28参考文献..........................................................................................................................................29致谢...................................................................................................................................................30附录1:完整电路原理图.............................................................................................................31附录2:电路PCB板设计图........................................................................................................32附录3:实物照片..........................................................................................................................33附录4:源程序..............................................................................................................................341引言随着半导体元件、大规模集成电路的飞速发展及人们生活水平的不断提高,各种便携式收录机、电动剃须刀、笔记本