您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 多功能电子时钟系统设计
多功能电子时钟系统设计学院名称:专业:班级:姓名:学号:指导教师姓名:刘晓杰俞洋2013年12月JIANGSUUNIVERSITYOFTECHNOLOGY电子系统设计综合训练多功能电子时钟系统设计摘要在快节奏的当今社会,时间是一个很重要的工具,为了更高效率的完成工作,为了社会的进步与发展,把握和控制时间更是尤为重要。人们对数字钟的要求也越来越高,多功能数字钟不管在性能还是在样式上都发生了质的变化。数字钟的设计方法有许多种,例如,可用中小规模集成电路组成电子钟;也可以利用专用的电子钟芯片配以显示电路及其所需要的外围电路组成电子钟;还可以利用单片机来实现电子钟等等。这些方法都各有其特点,其中利用单片机实现的电子钟具有编程灵活,并便于功能的扩展。但这里为了学习数字电路,包括对组合逻辑电路与时序电路的学习,采用中小规模集成电路组成数字钟。因此本系统采用单片机作为数字钟的核心控制器,读取时钟芯片的值,并通过显示器显示出来,而且,可以通过按键电路给单片机执行信号,实现正常显示,时钟校准和秒表的切换。采用AT89S52作为主控单片机,时钟模块选用DS1302作为时钟芯片,显示模块选用LCD1602,设置部分选用按键电路。本设计是以单片机为核心,附加必要的外围电路,通过编写C语言将存储在DS1302芯片中的年、月、日、时、分、秒,经过串行输入到单片机内部,对其进行数制的转换在DS1602上显现出来。关键词:LCD160;DS1302;STC89C52;电子钟MultifunctionelectronicclocksystemdesignAbstractWiththefast-paceddevelopmentofsociety,timebecomesaessentialtoolwhichtobeusedinourdailyroutine,inordertocompletetheworkmoreefficiently,inordertoaccelerateprogressanddevelopmentofsociety,itisparticularlyimportanttograspandcontrolthetime.multi-functionaldigitalclockregardlessofthestyleorperformanceonbothaqualitativechange.DigitalclockdesignTherearemanyways,forexample,canbecomposedofsmallandmedium-scaleintegratedcircuitselectronicbell;alsobeusedwithadedicatedchipelectronicclockdisplaycircuitanditsperipheralcircuitrequiredelectronicbell;chipcanalsobeusedtoimplementelectronicbellandsoon.Thesemethodshavetheirowncharacteristics,includingtheuseofelectronicclockwithMCUprogrammingflexibility,functionalityandeaseofexpansion.Buthereinordertolearndigitalcircuits,includingcombinationallogiccircuitsandsequentialcircuitsofstudy,usingsmallandmediumscaleintegratedcircuitsdigitalclock.Therefore,thesystemusestheMCUasthecorecontrollerdigitalclock,clockchiptoreadthevaluesdisplayedbythedisplay,andcanbeperformedthroughthekeysignaltothemicrocontrollercircuittoachievenormaldisplay,clockandstopwatchcalibrationswitch.UsingAT89S52microcontrollerasthemasterclockmoduleselectionastheDS1302clockchip,displaymoduleselectionLCD1602,settingpartoftheselectionkeycircuit.Thisdesignisamicrocontrollerasthecore,theadditionalnecessaryperipheralcircuits,throughthepreparationoftheClanguagewillbestoredintheDS1302chipyear,month,day,hour,minute,second,throughtheserialinputtotheinternalmicrocontroller,itsnumbersystemconversionapparentontheDS1602.Keywords:LCD1602;DS1302;STC89C52;Clock目录第1章绪论.......................................................................................................71.1课题的意义和目的......................................................................................................71.2课题的研究内容..........................................................................................................71.3课题的任务要求..........................................................................................................7第2章系统方案设计.......................................................................................82.1系统方案设计...............................................................................................................82.2方案的选择与论证......................................................................................................92.2.1方案的比较与论证............................................................................................92.2.2系统结构实现框图设计.....................................................错误!未定义书签。第3章系统各模块的硬件设计.....................................................................103.1单片机控制模块设计...................................................................错误!未定义书签。3.1.1单片机的应用及发展现状................................................................................103.1.2STC89C52单片机模块.....................................................................................113.1.3单片机晶振模块设计.......................................................................................133.1.4单片机复位电路设计..........................................................错误!未定义书签。3.2显示电路模块设计.......................................................................错误!未定义书签。3.2.1LCD1602介绍......................................................................错误!未定义书签。3.2.2LCD1602字符液晶使用方法..............................................错误!未定义书签。3.2.3LCD1602液晶显示电路设计...............................................错误!未定义书签。3.3时钟电路DS1302.......................................................................................................143.3.1DS1302的性能特性.............................................................错误!未定义书签。3.3.2DS1302使用方法..............................................................错误!未定义书签。3.3.3时钟电路设计......................................................................错误!未定义书签。3.4按键模块的设计...........................................................................错误!未定义书签。3.4.1模式选择按键.......................................................................错误!未定义书签。3.4.2按键设置电路....................................................................错误!未定义书签。3.5蜂鸣报警电路模块设计...............................................................错误!未定义书签。第4章系统软件设计.....................................................................................244.1软件设计总体思路.................................................
本文标题:多功能电子时钟系统设计
链接地址:https://www.777doc.com/doc-69619 .html