摘要
根据红外遥控芯片BA5104的编码格式,探讨使用AVR单片机ATmega16进行软件解码的两种方法:外部中断解码法和输入捕获功能解码法。详细阐述这两种解码方法的思路,并给出相应的解码中断服务子程序。分析这2种解码方法的优缺点,得出输入捕获功能解码法比外部中断解码法效率更高、解出的遥控码更稳定、可靠的结论。
According to the encoding format for infrared remote control chip BA5104, Discussion the ATmegal6 on AVR MCU software decodes it using two methods: the methods of the external interrupt decoding and the input capture function decoding. Elaborated on the ideas of the two decoding methods in detail, and give the corresponding decoding interrupt service routines. Analysis of the advantages and disadvantages of the two decoding methods, draw a conclusion: the input capture decoding method is more efficient than the external interrupt method, work out of remote control code more stable and reliable.
出处
《电子设计工程》
2012年第22期16-18,22,共4页
Electronic Design Engineering
基金
2010年柳州职业技术学院数学质量与教学改革工程第三批立项项目(2010-A036)