- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘 要
本设计主要应用了AT89C52单片机作为核心,综合应用了单片机中断系统、定时器、计数器等知识,应用红外光的优点。文章首先介绍了红外遥控的基本原理和应用范围,再对AT89C52单片机的结构和性能给出简单的说明,接着给出了遥控器的编码格式,及遥控发射器,遥控接受器的电路设计。对于遥控操作的不同,遥控发射器通过对红外光发射频率的控制来区别不同的操作;遥控接收器通过对红外光接收频率的识别,判断出控制操作,来完成整个红外遥控发射、接收过程。最后分别详细介绍遥控系统的发射部分和接收部分的电路原理图和程序流程图。
关键词:单片机 红外线 发射 接收
ABSTRACT
The design has used AT89C52 microprocessor as core, intergrately apply the interruptive system, timer, counter, etc. mainly to design originally and also take the advantage of the infrared light. Firstly,the fundamental pciple and application ranges of infrared remote control are introduced.Secondly,the struct and performance of AT89C52 single chip are simply given out.Next,the code form of remote controller is given here.The remote control launcher distinguishes different operation through the control on frequency of infrared emission of light. The remote control receiver judges control operation by adopting the discerned frequency of the received infrared light to finish the whole launching and receiving course. Its advantage is that the hardware circuit is simple, the software is with perfect function, have certain use and reference value. Lastly, both the transmitting and receiving parts are explained, including particular circuit and program flow chart respectively.
Keywords: Single-Chip Microcomputer Infrared ray Launch Receive
目 录
第一章 绪论 1
1.1 红外概述 6
1.2 外遥控的功能与特点 6
1.3 选择红外遥控的原因 7
1.4 红外的简单发射接收原理 8
第二章 设计方案论述 9
2.1 设计目的与原理 9
2.2 单片机红外遥控发射器设计原理 9
2.3 单片机红外遥控接收器设计原理 10
2.4 发光二极管 11
2.5 按键 12
第三章 硬件电路设计 15
3.1 单片机的发展 15
3.2 单片机AT89C52介绍 16
3.3 最小系统设计 19
3.3.1 时钟电路 19
3.3.2 复位电路 20
3.4 红外遥控器电路设计 21
3.4.1 脉冲宽度编码信号发射电路 21
3.4.2 曼彻斯特编码信号发射电路 23
第四章 系统软件设计 29
4.1 Protel199SE的简介 29
4.2 Keil C51的简介 30
4.3 C语言的介绍 31
4.3.1 C语言简介 31
4.3.2 C语言特点 31
4.3.3 C语言结构 33
4.4 遥控接收器程序设计 35
4.5 遥控接收器程序脉冲宽度解码代码 36
4.6 遥控接收器程序曼彻斯特解码代码 42
第五章 软硬件调试 47
5.1 硬件调试 47
5.2 软件调试 47
第六章 总结与展望 49
6.1 本文总结 49
6.2 进一步的工作 50
第七章 结束语 51
致谢 53
参考文献 54
附录
文档评论(0)