好文档 - 专业文书写作范文服务资料分享网站

基于单片机的红外线遥控器设计 - 图文

天下 分享 时间: 加入收藏 我要投稿 点赞

基于单片机的红外线遥控器设计

院 系:机电与自动化学院 专 业 班:自动化1003班 姓 名: 李 斌 学 号: 20101184120 指导老师: 吴 蕾

2014年5月

基于单片机的红外线遥控器设计 Design of Infrared Remote Control Based on the Single Chip Microcomputer

摘 要

单片机被广泛应用于促进设备和产品的微型化,数字化,自控化和智能化。计算机在自动化控制技术方面的深化得益于单片机的应用,因此一场基于传统控制技术的变革在自动控制领域里引发了,即传统的设计方法和控制思想的本质正在被单片机逐渐地改变。现在我们可以通过软件的方法去完成控制功能,而这是过去必须要通过数字或模拟电路来实现的。尤其是家用电器给我们带来了方便快捷的生活之后,红外遥控这种计算机技术就被广泛使用了。许多中断技术都在红外遥控中得到了运用。在计算机系统中,各种硬件设备可以产生中断,将它用来请求服务或报告故障报警等。另外,处理器本身也可以产生中断。电平方式和脉冲方式是外部中断请求的两种信号不同方式。电平方式在进行中断请求时低电平有效,脉冲方式则是在脉冲下降沿的时候才有效。在图书馆查阅相关资料之后,我设计了一些方案,最后选定了一个最佳方案:即运用单片机技术实现遥控和采用模块化设计。它包括红外发射和红外接收两个模块。开关控制红外发射模块中的单片机,使红外发射管对另一个单片机发射信号;而红外接收管接收的信号控制红外接收模块中的单片机。此外,设计的电路图也完成了红外遥控的任务。最后通过仿真器输入程序,手动中断,中断结束后程序从断点处继续执行,实现了红外遥控过程的硬件组成及其工作原理和软件设计。

关键词:单片机 遥控器 红外发射 红外接收

I

Abstract

Single-chip microcomputer is widely applied to promote the miniaturization of equipment and products, digital, automatic and intelligent. Deepening of computer in automatic control technology thanks to MCU application, so a change based on traditional control technology in the field of automatic control led, namely the traditional design method and thought is the essence of SCM gradually changed. Now we can approach to achieving the control function by the software, which is the past must be implemented through digital or analog circuit. Especially in household appliances brings us a convenient life, infrared remote control the computer technology is widely used. Many interrupt technology are used in the infrared remote control. In a computer system, a variety of hardware equipment can generate interrupts, it is used to request services or report fault alarm, etc. In addition, the processor itself can also generate interrupts. Level mode and pulse mode is two kinds of signals of different way of external interrupt request.To interrupt request level way in low level effectively, pulse method is effective only when falling edge in pulse. After the library access to relevant data, I designed a few solutions, finally settled on a best solution: namely using single-chip microcomputer technology to realize remote control and adopts the modular design. It consists of infrared emission and receiving two modules. Switch control infrared emission module of the single chip microcomputer, infrared transmitting tube to another MCU emission signal; And infrared receiving tube receiving signal control infrared receiving module of the single chip microcomputer. In addition, the design of the circuit diagram is also completed the infrared remote control tasks. Finally through the simulator input program, manual interruption, from the breakpoint continue after the interrupt program, realized the infrared remote control process and its working principle of the hardware and the software design.

Key words: MCU Remote-control unit Infrared emission Infrared receiver

II

目 录

摘要????????????????????????????????2 Abstract??????????????????????????????错误

绪论????????????????????????????????1 1 红外遥控?????????????????????????????2 1.1 红外通信原理?????????????????????????2 1.2 红外发射???????????????????????????3 1.3 红外接收???????????????????????????3 2 总体方案设计??????????????????????????4 2.1 简易红外遥控电路???????????????????????4 2.2 红外遥控开关电路???????????????????????4 3 单片机?????????????????????????????6 3.1 单片机系统??????????????????????????6 3.2 AT89S52单片机????????????????????????7 3.3 系统复位???????????????????????????10 3.4 晶振电路???????????????????????????11 3.5 按键电路???????????????????????????12 3.6 中断系统???????????????????????????13 3.6.1 中断的概念?????????????????????????13 3.6.2 中断控制??????????????????????????13 4 电路框图设计??????????????????????????15 4.1 遥控发射单元的电路图设计???????????????????15 4.2 遥控接收单元的电路图设计???????????????????15 5 系统设计????????????????????????????16 5.1 硬件设计???????????????????????????16 5.1.1 红外遥控发射单元原理图???????????????????16

III

基于单片机的红外线遥控器设计 - 图文

基于单片机的红外线遥控器设计院系:机电与自动化学院专业班:自动化1003班姓名:李斌学号:20101184120指导老师:吴蕾<
推荐度:
点击下载文档文档为doc格式
5iba751hhw6x2111f56k
领取福利

微信扫码领取福利

微信扫码分享