基于51单片机和lcd1602的万年历设计常熟理工学院毕业设计(论文)基于单片机的万年历设计摘要古人依靠日冕、漏刻记录时间,而随着科技的发展,电子万年历已经成为日渐流行的日常计时工具。本文研究的万年历系统拟用STC89C52单片机控制,以DS1302时钟芯片计时、DS18B20采集温度、1602液晶屏显示。系统主要由温度传感器电路,单片机控制电路,显示电路以及校正电路四个模块组成。本文阐述了系统的硬件工作原理,所应用的各个接口模块的功能以及其工作过程,论证了设计方案理论的可行性。系统程序采用C语言编写,经Keil软件进行调试后在Proteus软件中进行仿真,可以显示年、月、日、星期、时、分、秒和温度并具有校准功能和与即时时间同步的功能。实验结果表明此万年历实现后具有读取方便、显示直观、功能多样、电路简洁等诸多优点,符合电子仪器仪表的发展趋势,具有广阔的市场前景。关键词:万年历单片机仿真TheCalendarofDesignbasedonSingleChipAbstractI常熟理工学院毕业设计(论文)Ancientrelyoncorona,Loukerecordingtime.Theelectroniccalendarhasbecomethepopulartoolforthedailytiming.asthedevelopmentoftechnology.Inthecalendarsystem,theSTC89C52isusedtocontrol,withtheDS1302clockchiptiming,DS18B20collectingtemperature,1602LCDDisplaying.Thesystemiscomposedoffourmodules:thetemperaturesensorcircuit,theMCUcontrolcircuit,thedisplaycircuitandthecorrectioncircuit.Thispaperdescribesthehardwareworks,thefunctionsofeachinterfacemoduleanditsworkingprocess,demonstratesdesigntheoryisFeasibility..Clanguageisusedtoprogram,afterdebuggingintheKeilsoftware,thensimulatingintheProteus.Theelectroniccalendarcandisplayyear,month,day,week,hours,minutes,seconds,temperature,andhascalibrationfeaturesandfunctionalitywithrealtimesynchronization.Theresultsshowthatthiscalendariseasytoread,intuitivedisplay,versatile,simplecircuits,andmanyotheradvantages,Thedesignmeetsthedevelopmenttrendofelectronicinstrumentsandmeters,andhasbroadmarketprospects.Keywords:Calendar;MCU;simulation目录第一章绪论................................................................................................................................1II常熟理工学院毕业设计(论文)1.1课题研究的意义....................................................................................................................11.2本课题主要的研究工作........................................................................................................11.2.1研究内容.........................................................................................................................11.2.2论文章节安排.................................................................................................................21.3本章小结................................................................................................................................2第二章单片机的概述.............................................................................................................32.1单片机的定义和特点............................................................................................................32.1.1单片机的定义.................................................................................................................32.1.2单片机的特点.................................................................................................................32.2单片机的发展现状和趋势....................................................................................................42.2.1单片机的发展现状...........................