XXXXXXX毕业论文摘要本设计是基于51系列的单片机进行的实时日历和时钟显示设计,可以显示年月日时分秒及周信息,具有可调整日期和时间功能。在设计的同时对单片机的理论基础和外围扩展知识进行了比较全面准备。实时日历和时钟显示的设计过程在硬件与软件方面进行同步设计。硬件部分主要由AT89S52单片机,LED显示电路,以及调时按键电路等组成,系统通过LED显示数据,所以具有人性化的操作和直观的显示效果。软件方面主要包括时钟程序、键盘程序,显示程序等。本系统以单片机的汇编语言进行软件设计,为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,以便更简单地实现调整时间及日期显示功能。所有程序编写完成后,在wave软件中进行调试,确定没有问题后,在Proteus软件中嵌入单片机内进行仿真。关键词:AT89S52;DS1302;LEDXXXXXXX毕业论文2AbstractThisdesignisbasedon51seriesmonolithicintegratedcircuitsofareal-timecalendarandtheclockshowsthedesign,youcanshowhowandwhenaweek,hasmayadjustthedateandtimefunctions.inthedesignformonolithicintegratedcircuits,andperipheraltoexpandthebasictheoriesofknowledgewasfairlycomprehensivepreparation.Real-timecalendarandtheclockshowsthedesigninhardwareandsoftwaredesignofhardwarethatissynchronized.theleddisplayat89s52monolithicintegratedcircuits,andwhenshouldtheelectricalcircuits,thesystemthroughtheleddisplaydatasobehumanizedoperateandintuitivethateffect.includingthesoftwareapplicationprograms,thekeyboard,theprogram,etc.Thissystemtomonolithicintegratedcircuitsoftheassemblylanguageforeasilydevelopingsoftwaredesign,andchanges,softwaredesigntousemodulardesign,theprogramminglogicalrelationshipwithmoreandmoresoastorealizethetimeanddatedisplaythefunctions.allproceduresinwritingafterwaveofdebuggingthesoftwareandmakenoquestionoftheproteussoftwareembeddedmonolithicintegratedcircuits.KeyWords:AT89S52;DS1302;LEDXXXXXXX毕业论文I目录1概述.............................................................................................................................12设计方案论证.............................................................................................................32.1功能要求..........................................................................................................32.2方案确定..........................................................................................................32.2.1单片机芯片的选择方案和论证...........................................................32.2.2显示模块选择方案和论证...................................................................42.2.3时钟芯片的选择方案和论证...............................................................42.2.4电路设计最终方案确定.......................................................................43主控制器和外围器件.................................................................................................53.1AT89S52单片机..............................................................................................53.2DS1302时钟芯片............................................................................................53.2.1DS1302芯片介绍.................................................................................53.2.2DS1302的应用.....................................................................................93.3数码管LED.....................................................................................................93.4译码器74HC138...........................................................................................103.5锁存器74LS244............................................................................................104硬件设计...................................................................................................................114.1电路设计框图................................................................................................114.2系统概述........................................................................................................114.3电源设计........................................................................................................114.4单片机的复位电路........................................................................................124.5单片机系统的晶振电路................................................................................124.6主电路设计....................................................................................................135软件设计...................................................................................................................155.1主程序设计....................................................................................................155.2键盘子程序设计............................................................................................165.3日历时钟子程序设计....................................................................................18XXXXXXX毕业论文II5.4显示子程序设计............................................................................................206系统调试...................................................................................................................216.1软件调试........................................................................................................216.2硬件调试........................................................................................................227结论...........................................................................................................................24致谢..............................................................................................................................25参考文献..................