毕业论文(设计)题目:基于单片机的电子时钟的设计作者姓名:学号:专业:电子信息工程技术指导教师:2012年6月(设计)选题表2012年6月1日摘要传统的数字电子时钟采用了较多的分立元器件,不仅占用了很大的空间而且利用率也比很低,随着系统设计复杂度的不断提高,用传统时钟系统设计方法很难满足设计需求。基于单片机的电子时钟的设计单片机是集CPU、RAM、ROM、定时器/计数器和多种接口于一体的微控制器。它体积小、成本低、功能强,广泛应用于智能产品和工业自动化上。而51系列的单片机是各单片机中最为典型和最有代表性的一种。本文设计的电子时钟是基于51单片机,同时使用c语言为程序设计语言,从而克服传统电子时钟的弊端。本设计拟实现的基本功能为单片机计时显示功能。能够体现单片机电子时钟的可扩展优越性,加入时间调整程序,使用按钮,调整年月日及时间;加入阴历显示功能。关键词:单片机,电子时钟,c语言ABSTRACTTraditionaldigitalelectronicclockwithagreateramountofdiscretecomponents,notonlytakesupalotofspaceandutilizationthanlow,asthesystemdesigncomplexitycontinuestoimprove,theclocksystemdesignusingtraditionalmethodsaredifficulttomeetthedesignrequirements.1基于单片机的电子时钟的设计MicrocontrollerisaCPU,RAM,ROM,timer/counterandavarietyofinterfacesinoneofthemicro-controller.Itssmallsize,lowcost,powerful,widelyusedinsmartproductsandindustrialautomation.And51ofthemicrocontrollerMCUisthemosttypicalandmostrepresentativeone.Thisdesignisbasedon51single-chipelectronicclock,usingbothassemblylanguagefortheprogramminglanguage,toovercomethedrawbacksofconventionalelectronicclock.Thedesignofthebasicfunctionstobeachievedforthemicrocontrollertimerdisplay.SCMcanreflectthescalabilityadvantagesofelectronicclock,addtimetoadjust,theuseofbuttons,adjustthedateandtimeofyear,month;tojointhelunarcalendardisplay.Keywords:microcontroller,electronicclock,assemblylanguage目录2基于单片机的电子时钟的设计摘要..............................................................7ABSTRACT............................................................8第一章绪论..................................................101.1单片机的定义...................................................101.2单片机分类.....................................................111.3单片机的特点...................................................111.4单片机的应用领域...............................................111.5电子时钟的特点及应用领域.......................................12第二章MCS-51单片机简介..........................................132.1单片机的结构...................................................132.2单片机的存储器.................................................16第三章数码管的简介...............................................193.1数码管的分类...................................................193.2数码管的应用...................................................20第四章电子时钟的设计.............................................214.1可实现的功能...................................................214.2软件设计流程...................................................224.3电子时钟设计的部分主要流程.....................................25第五章电子时钟的仿真.............................................255.1单片机调试仿真软件.............................................255.2电子时钟的仿真.................................................275.3整机的仿真及调试...............................................29结束语.............................................................32致谢.........................