电子定时器的设计.rar

RAR格式版权申诉手机打开展开

电子定时器的设计,【摘要】 随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。但传统的定时器都是使用发条驱动式、电机传动式或电钟式等机械定时器。电子定时器相对产痛定时器来说,体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用。本设计采用at89c2051单片机为核心,阐述了系统工作原理,...
编号:30-324402大小:478.64K
分类: 论文>通信/电子论文

该文档为压缩文件,包含的文件列表如下:

内容介绍

原文档由会员 道客巴巴 发布

电子定时器的设计


【摘要】
    随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。但传统的定时器都是使用发条驱动式、电机传动式或电钟式等机械定时器。电子定时器相对产痛定时器来说,体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用。本设计采用AT89C2051单片机为核心,阐述了系统工作原理,给出了软件流程。该电子定时器满足对电器的电源进行控制,同时要方便用户对电子定时器的操作。最大时间能达到30h,切最大精度可以到分钟


关键词:定时器;单片机;AT89C2051;动态扫描;继电器




【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 machinery 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 conveniently 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 timer's turn to be satisfied with electrical 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




目       录
1 引言 7
1.1课题的来源和意义 7
1.2电子定时器的应用 8
1.3电子定时器的发展前景 8
2  51单片机内部结构及计数原理 8
2.1 51单片机内部机构 8
2.2计数原理 11
3 电子定时器的设计 19
3.1总体的设计要求 19
3.2 系统硬件电路设计 19
3.2.1 芯片的选择 19
3.2.2 交流控制接口电路 19
3.2.3显示电路 19
3.2.4 报警电路 19
3.3 系统程序的设计 20
3.3.1 主程序流程图 20
4 重要元件及重要电路 21
4.1 AT89C2051的内部结构及功能和引脚说明 21
4.1.1 AT89C2051主要性能 22
4.1.2 AT89C2051的内部结构 22
4.1.3 AT89C2051的引脚说明 24
4.2 继电器 26
4.2.1、电磁继电器的工作原理和特性 26
4.2.2、继电器主要产品技术参数 26
4.2.3、继电器的电符号和触点形式 27
4.3数码管 28
4.3.1、数码管的分类 28
4.3.2、数码管的驱动方式 28
5 软件设计 29
5.1 伪定义 29
5.2 中断入口 30
5.3 主程序 31
5.4倒计时程序 34
5.5  BCD子程序(加1或减1) 35
5.6加1程序 36
5.7调时快进程序 37
5.8功能菜单程序 37
5.9到点工作程序 40
5.10响铃程序 42
5.11显示程序 43
5.12无显示(灭灯)程序 45
5.13延时程序 45
5.14 ERR(出错处理)程序 47
结论 48
参考文献 49
致谢 50