资源预览内容
第1页 / 共45页
第2页 / 共45页
第3页 / 共45页
第4页 / 共45页
第5页 / 共45页
第6页 / 共45页
第7页 / 共45页
第8页 / 共45页
第9页 / 共45页
第10页 / 共45页
亲,该文档总共45页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
基于单片机的多路专用定时器的设计基于单片机的多路专用定时器的设计中中 文文 摘摘 要要随着社会的发展,定时器在日常生活、工业控制、交通灯管理、检测、报警等方面 的应用越来越广泛,同时人们对定时器的要求也越来越高。本课题设计一个基于 STC89S52 构成的实用定时器,这在某些应用中具有一定的实用价值。本课题设计了一个基于 STC89S52 的定时器,首先介绍了设计内容及要求,介绍了定 时器的设计思路以及功能模块的划分,并对各模块实现的具体功能进行了说明。然后结 合框图,介绍了定时器的工作原理,之后详细介绍了定时器具体单元电路的设计与分析。该定时器除具有基本的定时功能外,还具有定时时间连续可调、倒计时显示和定时 开关功能。它造价低,功能全,整体功能性价比高,配以小键盘和 LED 显示器,它适应 各种场合的定时预警之用。而且设计巧妙,体积小,功能强,计时范围大,用途广泛, 操作携带方便,是一种较理想的定时工具。关键词:定时器;关键词:定时器;STC89S52;连续可调;倒计时显示;连续可调;倒计时显示Multi-specific timer based on MCUABSTRACTWith the development of society, the timer in our daily lives, industrial control, traffic lights management, detection, alarm and so on, while people on the timer there are increasingly high requirements. The design of a subject with a practical STC89S52 timer, which in some applications has some practical values.This paper first introduced the design of the content and requirements on the design of the timer and the delineation of functional modules, each module and the specific functions of the note. Then with diagram, on the principle of the timer, after details of the specific unit timer circuit design and analysis. The timer in addition to a basic function of the timing, but also with adjustable timing consecutive time, the countdown display and regularly switching function. it is low cost, full- featured, cost-effective overall function, together with a small keyboard and LED display, it is adapt to a variety of occasions for use in varieties of warning. And cleverly designed, small, strong function, wide time range, wide range of uses, easy to carry and operate, is an ideal timing tool.Keywords: Timer; STC89S52; continuously adjustable; the countdown show目目 录录第一章 前言.1 1.1 设计背景.1 1.2 论文研究内容.2 1.3 论文结构安排.3 第二章 整体方案设计.4 2.1 设计任务及要求.4 2.2 系统设计整体方案.4 第三章 硬件电路设计.63.1 STC 单片机.6 3.2 STC 单片机的最小系统.8 3.2.1 复位电路.8 3.2.2 晶振电路.93.3 LED 与单片机接口电路.9 3.4 74HC573 芯片.10 3.5 器件选择.11 3.6 接口连接设计.12 3.7 功能简介.12 第四章 软件设计.13 4.1 主程序.13 4.2 发光二极管指示程序.13 4.3 键扫描程序.14 4.4 定时器中断程序.16 第五章 设计调试.18 5.1 软件调试.185.1.1 Proteus 的简介.18 5.1.2 Keil 软件及其调试功能简介.19 5.1.3 Keil 软件调试.20 5.1.4 Proteus 仿真.23 5.2 硬件调试.
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号