文件名称:ICCAVR-IRcoding
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 802kb
- 下载次数:
- 0次
- 提 供 者:
- w***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
红外解码的方法 NEC格式 upd6121
1、9Ms的高电平启动头,然后是4.5Ms的低电平,如果2.25Ms时就有高电平,是持续信号,不处理
2、然后以一个高电平和一个低电平为1Bit,高电平时间是0.5625Ms=562us,
高低电平时间比为1:1时是Bit1,比为1:3时是Bit0
3、Timer1中断执行100us采样周期,9Ms=90,4.5Ms=45,高电平=5,低电平最多15
4、共读入4Byte共24bit,第1、2Byte是CustomCode码和其反码,第3、4Byte是DataCode和其反码
5、CustomCode正确和DataCode效验正确的话,执行
6、红外接收器输出是反相的-Infrared NEC format decoding method upd61211, 9Ms start of the high head, and then the low 4.5ms, if 2.25Ms when there is high, is a continuous signal, do not deal with 2, and then to a high and a low level for 1Bit, high time is 0.5625Ms = 562us, high-low ratio of 1:1 when the time is Bit1, ratio of 1:3 is Bit03, Timer1 interrupt the implementation of 100us sampling period, 9Ms = 90, 4.5Ms = 45, high = 5, low-level maximum of 154, were read into 4Byte were 24bit, No. 1,2 Byte is CustomCode code and its anti-code, the first is the 3,4 Byte Code DataCode and its anti-5, CustomCode correct and well-tested DataCode correct, the implementation of 6, infrared receiver output is RP s
1、9Ms的高电平启动头,然后是4.5Ms的低电平,如果2.25Ms时就有高电平,是持续信号,不处理
2、然后以一个高电平和一个低电平为1Bit,高电平时间是0.5625Ms=562us,
高低电平时间比为1:1时是Bit1,比为1:3时是Bit0
3、Timer1中断执行100us采样周期,9Ms=90,4.5Ms=45,高电平=5,低电平最多15
4、共读入4Byte共24bit,第1、2Byte是CustomCode码和其反码,第3、4Byte是DataCode和其反码
5、CustomCode正确和DataCode效验正确的话,执行
6、红外接收器输出是反相的-Infrared NEC format decoding method upd61211, 9Ms start of the high head, and then the low 4.5ms, if 2.25Ms when there is high, is a continuous signal, do not deal with 2, and then to a high and a low level for 1Bit, high time is 0.5625Ms = 562us, high-low ratio of 1:1 when the time is Bit1, ratio of 1:3 is Bit03, Timer1 interrupt the implementation of 100us sampling period, 9Ms = 90, 4.5Ms = 45, high = 5, low-level maximum of 154, were read into 4Byte were 24bit, No. 1,2 Byte is CustomCode code and its anti-code, the first is the 3,4 Byte Code DataCode and its anti-5, CustomCode correct and well-tested DataCode correct, the implementation of 6, infrared receiver output is RP s
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ICCAVR下的红外解码程序,全部源码,原理图和PCB,芯片资料
.......................................................\LYJ
.......................................................\...\config.h
.......................................................\...\config._h
.......................................................\...\LYJ-v1.0.c
.......................................................\...\lyj.bcf
.......................................................\...\LYJ.c
.......................................................\...\LYJ.cof
.......................................................\...\LYJ.dbg
.......................................................\...\LYJ.dp2
.......................................................\...\LYJ.hex
.......................................................\...\LYJ.lis
.......................................................\...\LYJ.lk
.......................................................\...\LYJ.lst
.......................................................\...\LYJ.mak
.......................................................\...\LYJ.mp
.......................................................\...\LYJ.o
.......................................................\...\LYJ.prj
.......................................................\...\LYJ.s
.......................................................\...\LYJ.SRC
.......................................................\...\LYJ._c
.......................................................\...\LYJ_cof.aps
.......................................................\...\LYJ_ddb
.......................................................\...\.......\LYJ.ddb
.......................................................\...\LYJ_ddb.rar
.......................................................\...\S0101.zip
.......................................................\...\upd6121.pdf
.......................................................\LYJ
.......................................................\...\config.h
.......................................................\...\config._h
.......................................................\...\LYJ-v1.0.c
.......................................................\...\lyj.bcf
.......................................................\...\LYJ.c
.......................................................\...\LYJ.cof
.......................................................\...\LYJ.dbg
.......................................................\...\LYJ.dp2
.......................................................\...\LYJ.hex
.......................................................\...\LYJ.lis
.......................................................\...\LYJ.lk
.......................................................\...\LYJ.lst
.......................................................\...\LYJ.mak
.......................................................\...\LYJ.mp
.......................................................\...\LYJ.o
.......................................................\...\LYJ.prj
.......................................................\...\LYJ.s
.......................................................\...\LYJ.SRC
.......................................................\...\LYJ._c
.......................................................\...\LYJ_cof.aps
.......................................................\...\LYJ_ddb
.......................................................\...\.......\LYJ.ddb
.......................................................\...\LYJ_ddb.rar
.......................................................\...\S0101.zip
.......................................................\...\upd6121.pdf