-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续32位的表面数据,存入内存的连续空间。位信号解码的原则是:以判断各个位的波宽信号来决定高低信号。位解码原理如下:
解码为0:低电平的宽度0.56ms+高电平的宽度0.56ms。
解码为1:低电平的宽度1.68ms+高电平的宽度0.56ms。
程序中必须设计一精确的0.1ms延时时间作为基础时间,以计数实际的波形宽度,若读值为5表示波形宽度为0.5ms,若读值为16表示波形宽度为1.6ms,以此类推。高电平的宽度1.12ms为固定,因此可以直接判断低电平的宽度的计数值5或时16,来确定编码为0或是1。程序中可以减法指令SUBB来完成判断,指令“SUBB A,R2”中若R2为计数值,A寄存器设为8,就可如下:
当“8-R2”有产生借位,借位标志C=1,表示编码为1。
当“8-R2”无产生借位,借位标志C=0,表示编码为0。
将借位标志C经过右移指令“RRC A”转入A寄存器中,再经由R0寄存器间接寻址存入内存中。
-err
- 2022-08-22 12:44:29下载
- 积分:1
-
18B20 procedure, using C language, code structure clear, concise language for th...
18B20程序,用C语言编写,代码结构清晰,语言简练,供新手学习。-18B20 procedure, using C language, code structure clear, concise language for the novice to learn.
- 2022-07-11 06:35:11下载
- 积分:1
-
是关于sd卡的接口电路图以及pcb封装原理图
是sd卡驱动者重要的资料...
是关于sd卡的接口电路图以及pcb封装原理图
是sd卡驱动者重要的资料-Is on the sd card interface circuit and the pcb schematic package sd card driver is important information
- 2022-11-23 08:00:03下载
- 积分:1
-
此代码可用来控制数码管及LED的显示,对初学单片机的人很有帮助...
此代码可用来控制数码管及LED的显示,对初学单片机的人很有帮助-This code can be used to control and LED digital tube display, and the people very helpful beginner Singlechip
- 2022-07-05 11:50:32下载
- 积分:1
-
传感器应用实例电路设计150例,资源共享,敬请使用!
传感器应用实例电路设计150例,资源共享,敬请使用!-Sensor circuit design application 150 cases, resource sharing, please use!
- 2022-01-25 20:13:08下载
- 积分:1
-
This is a compilation of 51 of 8279 was applied to electronic locks simple examp...
这是用51汇编写的8279应用于电子密码锁的简单例子,共学习者研究使用,内带详细注释-This is a compilation of 51 of 8279 was applied to electronic locks simple example, to examine the use of a total of learners, Notes brought detailed
- 2022-01-30 13:38:16下载
- 积分:1
-
用单片机的SPI串口实现数据发送和接收的C语言代码
用单片机的SPI串口实现数据发送和接收的C语言代码-MCU SPI serial data send and receive C language code
- 2023-03-11 09:55:03下载
- 积分:1
-
收集到的一些常用功能模块,有温度传感、星期计算、一按键都能等...
收集到的一些常用功能模块,有温度传感、星期计算、一按键都能等-Collected some frequently used function modules have temperature sensing, weeks, and so one button can
- 2023-05-04 22:30:04下载
- 积分:1
-
程序描述:红外遥控RC5码解码程序,经串口发送
目标cpu:lpc932
晶振:11.0592M
硬件描述:一体化接收头接P20.指示LED接P26...
程序描述:红外遥控RC5码解码程序,经串口发送
目标cpu:lpc932
晶振:11.0592M
硬件描述:一体化接收头接P20.指示LED接P26
编译器:KEIL 7.05
作者:刘玉宏(liu1234)-Description: RC5 infrared remote control code decoding process, by the serial port to send the target cpu: lpc932 crystal: 11.0592M Hardware Description: integrated access to receive the first P20. Instructions LED then P26 compiler: KEIL 7.05 Author:刘玉宏(liu1234)
- 2022-12-15 07:50:03下载
- 积分:1
-
G.72音频压缩传输协议
G.72音频压缩传输协议-G.72 audio compression and transmission agreement
- 2022-04-13 11:22:01下载
- 积分:1