- 29
- 1
- 约1.22万字
- 约 19页
- 2017-11-29 发布于湖北
- 举报
单片机控制的定时器设计
单片机控制的定时器设计
摘要:随着时代的进步,电子行业的发展,定时器的应用也越来越广泛。但传统的定时器都是使用发条驱动式、电机传动式或电钟式等机械定时器。电子定时器相对产痛定时器来说,体积小、重量轻、造价低、精度高、寿命长、而且安全可靠、调整方便、适于频繁使用。本设计采用STC89C51RC单片机为核心,阐述了系统工作原理,给出了软件流程。该电子定时器满足对电器的电源进行控制,同时要方便用户对电子定时器的操作。最大时间能达到30h,切最大精度可以到分钟
关键词:单片机;定时器;STC89C51RC;按键
Single chip microcomputer control electronic clock design
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 timers 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
keyword:singlechip ;Timer ;STC89C51RC;key
目 录
第一章 绪论 1
1.1引言 1
1.2定时器的发展 1
1.3 定时的发展前景 1
1.4课题的目的 2
1.5 设计要求 2
第二章 方案论证 2
2.1功能要求 2
2.2 显示方案的选择 2
2.3 按键功能方案设计 3
第三章 系统组成 3
第四章 硬件设计 3
4.1 STC89C52RC单片机介绍 3
4.2 单片机最小系统设计 4
4.2.1 时钟电路 4
4.2.2 复位电路 4
4.3 显示电路设计 5
4.4 按键电路设计 5
4.5继电器电路设计 6
第五章 软件设计 6
5.1主程序流程图 7
5.2中断程序流程图 8
5.2.1 T0中断程序流程图 8
5.2.2 T1中断程序流程图 8
总 结 9
参考文献 11
致 谢 12
附录 13
模拟系统电路 13
程序代码 14
第一章 绪论
1.1引言
近年来随着科技的飞速发展,单片机的应用正不断地走向深入,同时带动传统控制检测的日新月异地更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,根据具体硬件结构以及具体应用对象的特点,与软件相结合,加以完善。单片机之所以在工业控制中有大量的应用,就在于它有独特的定时、计数功能。在工业检测、控制中,许多场合都要用到计数或定时的功能。例如,对外部脉冲进行计数、产生精确的定时时间等。
“定时器”总的来说有两种类型。一种是基于模拟技术的传统产品,这种定时器的功能简单,尽管曾经被广泛应用过,但已列入淘汰之列。另一种是基于数字技术的新一代产品
原创力文档

文档评论(0)