XXXXXX毕业设计基于AT89S52的智能数字钟设计系部xxxxxxxxxxxxxxxx专业名称xxxxxxxxxxxxxxxxx班级姓名学号指导教师201x年0x月0x日基于AT89S52的智能数字钟设计摘要设计了一款基于AT89S52的智能数字钟,该钟表由主控模块、定时模块、温度检测模块和显示模块构成。主控模块由主控芯片AT89S52、晶振电路和复位电路构成;定时模块采用时钟芯片DS1302实现精确定时;用温度传感器DS18B20作为温度采集源,检测当前温度;用液晶显示器12864显示年、月、日、时间及温度。该钟表具有智能显示温度和节假日提示功能。可手动设置和修改年、月、日、时、分、秒等,结构简单,操作方便,准确度高。关键词:单片机;时钟芯片;温度传感器;液晶显示器;智能数字钟AT89S52basedDigitalClockDesignofIntelligentAbstracthasdesignedonesectionbasedonat89S52intelligentdigitclock,thisclockandwatchbythemastercontrolmodule,fixedtimethemodule,thetemperatureexaminesthemoduleandthedisplaymoduleconstitution.MastercontrolmodulebymastercontrolchipAT89S52,crystaloscillatorelectriccircuitandresetcircuitconstitution;FixedtimethemoduleusesclockchipDS1302torealizepreciselyfixedtime;GathersthesourcewithtemperaturesensorDS18B20asthetemperature,theexaminationcurrenttemperature;12864demonstratetheyear,themonth,Japan,thetimeandthetemperaturewiththeliquid-crystaldisplay.Thisclockandwatchhastheintelligentdemonstrationtemperatureandtheholidaypromptfacility.Butmanualestablishmentandrevisionyear,month,Japan,time,divides,thesecondandsoon,thestructureissimple,theeaseofoperation,theaccuracyishigh.Keyword:SCM;clockchip;liquidcrystaldisplay;temperature;Intelligentdigitalclock目录1引言........................................................................................................................12选题背景及意义.....................................................................................................23方案论证与选择.....................................................................................................33.1方案论证.............................................................................................................33.1.1主控模块的论证与选择...............................................................................33.1.2显示模块的论证与选择...............................................................................33.1.3控制按键模块的论证与选择.......................................................................43.2方案选择.............................................................................................................44硬件电路的设计.....................................................................................................54.1单元电路的设计.................................................................................................54.1.1直流稳压电源...............................................................................................54.1.2按键模块电路...............................................................................................64.1.3定时模块电路...............................................................................................74.1.4温度采集模块...............................................................................................84.1.5显示模块电路.............................................................................................104.1.6主控模块.....................................................................................................125软件设计...............................................................................................................185.1总体系统软件设计...........................................................................................185.2系统工作原理...................................................................................................185.3系统主程序流程图...........................................................................................186安装与调试...........................................................................................................206.1元器件的检测与安装.......................................................................................206.1.1元器件的检测..............................................................................................206.1.2元器件的安装..............................................................................................206.2系统硬件的安装与调试...................................................................................216.3系统软件的安装与调试...................................................................................22总结..........................................................................................................................23致谢..........................................................................................................................24参考文献.....................................................................................................................25附录附录1电路原理图附录2原件清单附录3基于AT89S52的智能数字钟程序附录4产品实物图宜宾职业技术学院电子信息工程系基于AT89S52的智能数字钟设计1基于AT89S52的智能数字钟设计1引言在高速发展的现今社会,时间和空间的不足是人类面临的众多问题之一。然作为新一代技术人才的我们势必会面临这一严峻的民生问题。围绕这个问题,我将我的设计定为智能数字钟设计。钟表作为显示时间的工具其本身并不能给人们带来想要抓住时间的急迫感,若是将时钟时间显示精确到分、秒,那么这种时间飞逝的重压就会迫使人们去有效地利用它。当然若在钟表中融入了其他人们日常工作出行必须的功能,并以智能而简单的形式被运用。可以大大为我们节省出是空间来。随着我国科技的飞速发展,电子行业也在同一时间里不断地推层出新,电子产品全方面的进行了改善和提升。不管是外观,还是内部功能都在不断地进行改进,提高了其性价比。这一过程都在大力的推动现代化的发展。而基于AT89S52的智能数字钟体现了现代化电子产业的高性价比。成本低,电路简单,功能齐全(能同时显示温度、时间、日期以及节假日)。对于现在的家庭生活中,具有了相当普遍性和实用性,成为了人们生活的必需品。此电路采用了单片机AT89S52、温度传感器DS18B20、时钟芯片DS1302、12864液晶显示器,电路设计合理,使得电路简单,操作方便,美观大方。宜宾职业技术学院电子信息工程系基于AT