Welcome![Sign In][Sign Up]
Location:
Search - download mega32 lib.ddb

Search list

[SCMICCAVR-IRcoding

Description: 红外解码的方法 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
Platform: | Size: 821248 | Author: wang | Hits:

CodeBus www.codebus.net