- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于单片机的多功能智能定时器—硬件设计
摘 要
本系统为一款可以控制多路外设的定时器,采用通用的AT89C51为主芯片,通过3个74H138产生24路控制信号来控制继电器的通断来控制外设,继电器能达到隔离的作用。采用7位数码管为显示器件,使用单独的显示芯片MAX7219,采用独立按键方式,依次扫描各按键来索引定时外设。设计中还加入了看门狗,软件陷阱,等抗干扰技术,提高系统的稳定性。本定时器以其体积小,重量轻,使用方便非常适用于对精度要求不高,外设数量多的场合。
关键词 :单片机 定时 计时 抗干扰
Abstract
This article designed a particular timer which may control the multi-channel peripherals, using the general AT89C51 primarily chip, and having 24 group control signal control relay make-and-break through the P1 mouth output for 3 74H138 to control the peripheral. The relay can achieve the isolated function. The timer uses 7 nixie tubes to demonstrate the component and two of them for the peripheral index position, and uses independent demonstration chip MAX7219, which may simplify the demonstration procedure, reduces Monolithic integrated circuit to take, and thus increases the precision of fixed time. It also uses two-pressed-keys-way (to add 1 and to reduce 1) to index fixed time peripheral. In the design there has been also joined the watch-dog, the software trap, and the anti-jamming technologies to enhance the stability of the system. This timer is small by its volume, light by its weight and easy by its operation, so it is suitable extremely to be applied some situations those the precision request is not high and the peripheral has a lot.
Keywords :Monolithic integrated circuit,Severance,Fixed time,
Control,anti-jamming
目 录
1 绪论 1
2 系统原理概述 1
2.1硬件总体设计方案 1
2.2 单片机介绍 2
2.3 单片机定时原理 2
2.4 单片机定时方式 3
3 硬件设计 4
3.1 单片机及外围电路 4
3.2 显示电路 5
3.4键盘电路 7
3.5输出控制电路 8
3.6抗干扰部分 9
3.7 操作流程 10
4 软件程序设计 10
4.1 主程序 10
4.2 显示子程序 11
4.3 按键扫描程序 11
4.4 定时时钟程序 11
4.5 控制子程序 12
4.6 软件抗干扰 12
5 总结 12
6 谢辞 13
7 主要参考文献与资料 14
附录图: 15
1 绪论
定时器是机器运转中一个很重要的部分,其精度的高低直接关系到生产中生产线是否能按时完成生产量,其产品的质量的是否能够达到标准。尤其是在单片机广泛应用的今天,定时器的作用更是发挥的淋漓尽致,由于精度得到进一步的提升,所以大到工厂小到日常的闹钟,都有定时器的身影。但是专业的单片机定时器由于其设计精度高,电路复杂,后期维护麻烦,进而使得成本过高,不易推广。所以本文设计一种精度适当,电路简单,好维护,成本低的定时器,其功能足以满足人们日常生活的需要,从而能够更快的普及。
2 系统原理概述
2.1硬件总体设计方案
本系统采用目
文档评论(0)