单片机定时器捕获模式解码红外遥控器的方法  被引量:4

Method of MCU timer capture mode decoding for infrared remote controller

在线阅读下载全文

作  者:何乃味[1] 

机构地区:[1]柳州职业技术学院,广西柳州545005

出  处:《现代电子技术》2012年第18期11-13,共3页Modern Electronics Technique

基  金:2010年柳州职业技术学院教学质量与教学改革工程第三批立项项目(2010-A036)

摘  要:以单片机作为核心控制器的电子产品日益广泛使用,它们的操作方式主要还是由外接的键盘来完成。若在此类产品中增加红外遥控功能,将使它们的操作更加人性化。用单片机进行软件解码最普遍的方法有查询法和外部中断法,在此详细介绍一种用AT89S52单片机定时器T2捕获功能实现接收解码的新方法,给出了解码的程序流程图和相应的子程序。实践证明,该解码方法占用单片机资源少,程序代码运行稳定可靠,效率高。该解码方法可为单片机产品开发者提供一个非常实用的参考,也可为学习者提供一个典型的应用范例。Microcontroller which is taken as a core controller in electronic products is widely used. Its operation mode is still performed by external keyboard. If the infrared remote control function is added in the electronic products, their operation will he more humanized. The most common methods for software decoding with MCU are the inquiry method and external interrupting method. A new method of realizing the receiving decoding by the capture function of AT 89S52 MCU Timer2 is introduced in detail. The program flowchart of the decoding and its corresponding subroutine are given in this paper. The practice application proves that the decoding method occupies less resources of MCU, and is stable, reliable and efficient in the code operation. This decoding method can provide a very useful reference for MCU developers, and a typical application example for the learners.

关 键 词:AT89S52 红外遥控 编码 解码 

分 类 号:TN911-34[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象