AVRmega16TC9012

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:13KB
下载次数:43
上传日期:2009-08-13 17:27:54
上 传 者caijiachao
说明:  红外解码的方法 NEC格式 tc9012 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、红外接收器输出是反相的
(NEC Infrared format decoding method of the high tc9012 1,9 Ms head start, followed by the low 4.5Ms, if there is high when 2.25Ms, is a continuous signal, do not deal with 2, and then to a high-power low for a peaceful 1Bit, high time 0.5625Ms = 562us, high-low ratio of 1:1 when the time is Bit1, when the ratio of 1:3 is Bit0 3, Timer1 interrupt the implementation of 100us sampling period, 9Ms = 90,4.5 Ms = 45, high = 5, low-level up to 15 4, were read into 4Byte were 24bit, the first is the 1,2 Byte code and its anti-CustomCode 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, the infrared receiver is the output of the RP)

文件列表:
1.lk (6, 2009-06-07)
1.lst (10141, 2009-06-07)
1.mak (547, 2009-06-07)
1.mp (2392, 2009-06-07)
1.o (5820, 2009-06-07)
1.prj (1285, 2009-06-07)
1._c (1282, 2009-06-07)
1.SRC (38, 2009-06-07)
1.c (1332, 2009-06-07)
1.cof (2586, 2009-06-07)
1.dbg (1507, 2009-06-07)
1.hex (1806, 2009-06-07)
1.lis (17990, 2009-06-07)

近期下载者

相关文件


收藏者