1、 1 电子定时器的设计 Electron timer design 学生: xxxx 班级: xxxxx3 学号: 0xxx 学部: xxx 专业: xx 指导老师: xxx 指导老师职称: xxxx 工作单位: xxxx 毕业设计(论文)完成时间自 2011 年 2 月 至 2011 年 2 月 2 【摘要】【摘要】 随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。但传统的 定时器都是使用发条驱动式、电机传动式或电钟式等机械定时器。电子定时器相 对产痛定时器来说,体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、 调整方便、适于频繁使用。本设计采用 AT89C2051 单片机为
2、核心,阐述了系统工 作原理,给出了软件流程。该电子定时器满足对电器的电源进行控制,同时要方 便用户对电子定时器的操作。最大时间能达到 30h,切最大精度可以到分钟 关键词:定时器;单片机;AT89C2051;动态扫描;继电器 3 【Abstract】 Progress , development of electron industry , the timer application are also more and more broad with the times. But, the tradition timer all is to use spring to drive machin
3、ery timers such as style , electric motor drive style or electric clock style. Come the electron timer to say volume is small , weight is light , cost of construction is low , accuracy is high , life-span is long, and safety is reliable , adjust to be suitable for being frequently put into use conve
4、niently relatively painful timer of product. Have designed that the monolithic machine is core originally adopt AT89C2051 , have set forth system operating principle , have given a software out technological process. The power source go along being the electron timers turn to be satisfied with elect
5、rical equipment is controlled , is wants the convenience of customers operation to electron timer at the same time. Maximal time can reach 30 hs , by all means maximal accuracy can arrive at a minute Keywords: Timer; Monolithic machine; AT89C2051; Development is scanned; Relay 4 目目 录录 1 引言 . 6 1.1 课
6、题的来源和意义 . 6 1.2 电子定时器的应用 7 1.3 电子定时器的发展前景 . 7 2 51 单片机内部结构及计数原理 7 2.1 51 单片机内部机构. 7 2.2 计数原理 . 10 3 电子定时器的设计 18 3.1 总体的设计要求 18 3.2 系统硬件电路设计 18 3.2.1 芯片的选择 18 3.2.2 交流控制接口电路 . 18 3.2.3 显示电路 18 3.2.4 报警电路 . 18 3.3 系统程序的设计 . 19 3.3.1 主程序流程图 19 4 重要元件及重要电路. 20 4.1 AT89C2051 的内部结构及功能和引脚说明 . 20 4.1.1 AT89C2051 主要性能 21 4.1.2 AT89C2051 的内部结构 . 21 4.1.3 AT89C2051 的引脚说明 . 23 4.2 继电器 . 25 4.2.1、电磁继电器的工作原理和特性 25 4.2.2、继电器主要产品技术参数 . 25 4.2.3、继电器的电符号和触点形式