文件名称:KeilC-IR
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 高*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
红外线遥控器按键检测程序.
通过检测两次下降沿之间的时间差判断接受到的数据位.
已经通过了测试,能够正确区分出32bit数据的遥控器按键键值.
具有数据重发功能,但是数据的重发有点频繁.
使用晶震频率为11.0592MHz,所有定时值都是基于这个频率计算.
占用很少量的CPU时间,使用了外部中断0接受数据,定时器0进行计数,
定时器1作为串口的波特率发生器(Band = 9600).-Infra-red remote control button detection program. By detecting falling edge twice to determine the time difference between the received data bit. Has passed the test, could correctly distinguish 32bit data button remote control key. With data re-issued, but data a bit of re-issued frequent. Zhenyuan frequency of use of crystal 11.0592MHz, all timing values are calculated based on this frequency. occupied by small quantities of CPU time, use the external interrupt 0 to accept data, timer 0 to count, timer 1 as a string port baud rate generator (Band = 9600).
通过检测两次下降沿之间的时间差判断接受到的数据位.
已经通过了测试,能够正确区分出32bit数据的遥控器按键键值.
具有数据重发功能,但是数据的重发有点频繁.
使用晶震频率为11.0592MHz,所有定时值都是基于这个频率计算.
占用很少量的CPU时间,使用了外部中断0接受数据,定时器0进行计数,
定时器1作为串口的波特率发生器(Band = 9600).-Infra-red remote control button detection program. By detecting falling edge twice to determine the time difference between the received data bit. Has passed the test, could correctly distinguish 32bit data button remote control key. With data re-issued, but data a bit of re-issued frequent. Zhenyuan frequency of use of crystal 11.0592MHz, all timing values are calculated based on this frequency. occupied by small quantities of CPU time, use the external interrupt 0 to accept data, timer 0 to count, timer 1 as a string port baud rate generator (Band = 9600).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
HT6222红外遥控芯片接收Keil C程序.c