第1页共45页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第1页共45页电子定时器的设计学生姓名:xxxx学部:xxxx班级:xxxxxx3专业:电xxxxx程指导教师:xxxx北京城市学院2008年12月日第2页共45页第1页共45页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第2页共45页电子定时器的设计Electrontimerdesign学生:xxxx班级:xxxxx3学号:0xxx学部:xxx专业:xx指导老师:xxx指导老师职称:xxxx工作单位:xxxx毕业设计(论文)完成时间自2008年12月至2009年05月第3页共45页第2页共45页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第3页共45页【摘要】随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。但传统的定时器都是使用发条驱动式、电机传动式或电钟式等机械定时器。电子定时器相对产痛定时器来说,体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用。本设计采用AT89C2051单片机为核心,阐述了系统工作原理,给出了软件流程。该电子定时器满足对电器的电源进行控制,同时要方便用户对电子定时器的操作。最大时间能达到30h,切最大精度可以到分钟关键词:定时器;单片机;AT89C2051;动态扫描;继电器第4页共45页第3页共45页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第4页共45页【Abstract】Progress,developmentofelectronindustry,thetimerapplicationarealsomoreandmorebroadwiththetimes.But,thetraditiontimerallistousespringtodrivemachinerytimerssuchasstyle,electricmotordrivestyleorelectricclockstyle.Cometheelectrontimertosayvolumeissmall,weightislight,costofconstructionislow,accuracyishigh,life-spanislong,andsafetyisreliable,adjusttobesuitableforbeingfrequentlyputintouseconvenientlyrelativelypainfultimerofproduct.HavedesignedthatthemonolithicmachineiscoreoriginallyadoptAT89C2051,havesetforthsystemoperatingprinciple,havegivenasoftwareouttechnologicalprocess.Thepowersourcegoalongbeingtheelectrontimer'sturntobesatisfiedwithelectricalequipmentiscontrolled,iswantstheconvenienceofcustomersoperationtoelectrontimeratthesametime.Maximaltimecanreach30hs,byallmeansmaximalaccuracycanarriveataminuteKeywords:Timer;Monolithicmachine;AT89C2051;Developmentisscanned;Relay第5页共45页第4页共45页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第5页共45页目录1引言..............................................................................................................................................71.1课题的来源和意义....................................................................................................................71.2电子定时器的应用............................................................................................................81.3电子定时器的发展前景....................................................................................................8251单片机内部结构及计数原理..................................................................................................82.151单片机内部机构..........................................................................................................82.2计数原理..........................................................................................................................113电子定时器的设计....................................................................................................................193.1总体的设计要求..............................................................................................................193.2系统硬件电路设计..................................