多功能智能时钟系统设计作者姓名:XXX专业名称:XXXX指导教师:XX讲师基于LCD的多功能智能时钟系统设计-I-摘要随着对时间的要求越来越精确,人们创造了时钟。现在,电子时钟更是人类最基本,最必不可少的一个工具。在上个世纪,电子时钟大多数采用的是分离元件。而这样制造出来的电子时钟体积庞大,使用起来也很麻烦。随着科技和电子行业的飞速发展,现在的电路都是高度集成的。不仅节约空间资源,成本也很低。然电子产品给我们的生活带来了更多的便利。本设计的主控系统采用的是单片机,利用它自带的定时器来进行设计。单片机具有成本低廉、体积小、操作简便等优点。它能够形成各式各样的自动控制系统。设计中将采用单片机中最为典型也是我们在课堂上学习过的51系列的单片机,本次设计以STC89C51单片机为核心,以时钟芯片DS1302为依托,借助外围少量的按键电路实时校准,通过LCD1602液晶显示器来显示日期和时间。在程序的部分,我采用的是C语言来进行编写。使用C语言更有利于我的理解,编写以及修改。本论文主要从系统设计方案的选择,硬件、软件部分的介绍说明以及实物的演示上来详细的描述了整个设计的大致内容。设计主要研究的是智能时钟以及日历显示功能。我们利用了单片机的控制能力和时钟芯片的及时通信的特点,按键来控制时间和日历在液晶显示屏上的显示。最后,在整点的时候通过蜂鸣器进行报时。关键词:单片机电子时钟C语言基于LCD的多功能智能时钟系统设计-II-AbstractWiththedemandformoreprecise,peoplecreateaclock.Now,theelectronicclockishumanthemostbasic,mostessentialasatool.Inthelastcentury,mostelectronicclockuseisseparationofcomponents.Andthisproducedelectronicclockbulky,useisalsoverytroublesome.Alongwiththerapiddevelopmentofscienceandtechnologyandelectronicindustry,nowcircuitareheightintegrated.Notonlysavespaceresource,costisalsoverylow.Althoughelectronicproductstoourlifebroughtmoreconvenience.Procedureswillbeusedinthedesignofthemaincontrolsystemisasinglechip,usingitsowntimerdesign.SCMhaslowcost,thevolumeissmall,easytooperate,etc..Itcanformavarietyofautomaticcontrolsystem.ThedesignusesamicrocontrolleristhemosttypicalandIwereintheclassroomstudyof51seriesmicrocontroller,thedesignSTC89C51microcontrollerasthecoretotheclockchipDS1302asthebasis,bymeansofaperipheralsmallamountsofkeycircuitreal-timecalibrationthroughLCD1602LCDdisplaytodisplaythedateandtime.Inpart,IuseClanguagetowrite.TheuseofClanguageismoreconducivetomyunderstanding,writingandrevision.Thispapermainlyfromtheselectionofthedesignschemeofthesystem,hardware,softwarepartofthedescriptionandphysicaldemonstrationupdetaileddescribesthegeneralcontentofthewholedesign.Designisthemainresearchisintelligentclockandcalendardisplayfunction.WeusetheMCUcontrolcantimelycommunicationofpowerandclockchipkeystocontrolthetimeandcalendarontheLCDscreendisplay.Finally,whenthewholepointofthebuzzertimekeeping.Keywords:singlechipmicrocomputer,electronicclock,Clanguage基于LCD的多功能智能时钟系统设计-III-目录摘要............................................................................................................IAbstract..................................................................................................II目录.........................................................................................................III前言...........................................................................................................11论文设计概述.......................................................................................21.1设计任务.....................................................................................21.2设计要求.....................................................................................21.3系统整体框图.............................................................................22系统方案选择.......................................................................................42.1总体方案设计.............................................................................42.2主要模块的方案设计.................................................................42.2.1主控芯片方案.......................................................................42.2.2显示模块方案.......................................................................53系统模块电路介绍及设计...................................................................63.1单片机模块.................................................................................63.1.1单片机基础知识介绍...........................................................63.1.2STC89C51介绍.....................................................................73.1.3单片机最小系统电路...........................................................93.2时钟模块...................................................................................113.2.1DS1302介绍........................................................................113.2.2DS1302电路原理................................................................133.3液晶显示模块...........................................................................133.3.1LCD1602引脚及说明.........................................................133.3.2LCD1602电路原理.............................................................153.4蜂鸣器报警模块.......................................................................153.5矩形按键电路模块...................................................................16基于LCD的多功能智能时钟系统设计-IV-4系统软件设计.....................................................................................184.1软件设计流程...........................................................................184.2系统设计程序...........................................................................214.2.1主程序.................................................................................224.2.2LCD1602驱动程序.............................................................224.2.3DS1302驱动程序................................................................225系统仿真结果及说明..............................................