- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘要
随着科技发展,人们对定时器进行很多的改进来达到准确控制时间的目的。人们甚至将定时器用在了军事方面,制成了定时炸弹,定时雷管。现在的不少家用电器都安装了定时器来控制开关或工作时间
本设计是经典的单片机定时功能应用设计。采用PIC单片机为核心,阐述了系统工作原理,给出了软件流程。并利用PICC编译器进行程序设计。通过控制单片机内部中断和溢出,在溢出的状态下在IO口设置一个一个电瓶让灯闪烁,灯每闪烁一次数码管数字增加一,这样来达到该定时器对LED灯和数码管的控制,这种控制电路结构简单,可靠性高。
关键词:PIC16f877单片机,中断,溢出,定时器,LED显示器
Abstract
With the development of science and technology, people in the timer for many improvements to achieve the purpose of accurate control time. People can even use the timer on the military, made into a ticking time bomb, timing detonator. Now a number of household electrical appliances have installed the timer to control the switch or working hours
This design is the classic microcontroller timer function application design. Using PIC microcontroller as the core, this paper expounds the working principle of the system, the software flow is given. The program design and use of PICC compiler. By controlling the single chip microcomputer internal interrupt and overflow, under the conditions of the overflow mouth in the IO set up a a battery to light flashing, lights will shine every digital tube digital increase at a time, so that to achieve the timer control of the LED lights and digital tube, the control circuit has simple structure, high reliability.
Key Words: PIC16f877 single chip microcomputer, interrupt, overflow, timer, LED display
目 录
1 绪论 ……………………………………………………………………………(1)
1.1 定时器的发展 ……………………………………………………………(1)
1.2 PIC单片机简介 …………………………………………………………(2)
1.2.1 16F877A单片机…………………………………………………………(2)
1.3 设计过程…………………………………………………………………(3)
1.4 设计要求…………………………………………………………………(4)
1.5主要技术参数………………………………………………………………(4)
2 硬件系统设计 …………………………………………………………………(5)
2.1 单片机 ……………………………………………………………………(5)
2.2 PIC1F877A单片机控制模块………………………………………………(6)
2.2.1定时器模块设计 ………………………………………………………(8)
2.2.2中断模块设计 …………………………………………………………(11)
2.3 PIC1F877A单片机显示模块……………………………………………(12)
2.3.1 数码管模块设计 ……………………………………………………(12)
3 软件系统设计…………………………………………………………………(15)
3.1 设计软件………………………………………………………………(15)
3.2 MPLAB软件设计…………………
文档评论(0)