-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
实现MODBUS RTU的完整代码,做MODBUS RTU网关的很实用。
实现MODBUS RTU的完整代码,做MODBUS RTU网关的很实用。-MODBUS RTU SOUCE CODE
- 2023-03-22 22:35:04下载
- 积分:1
-
我同事做的一个CS5522的51单片机的驱动,用的是89S52,开发环境是KEIL C...
我同事做的一个CS5522的51单片机的驱动,用的是89S52,开发环境是KEIL C-my colleagues do a CS5522 51 MCU-driven, with the 89S52. Development environment is KEIL C
- 2022-08-09 01:05:00下载
- 积分:1
-
RS485服务器程序,实现集节点,以及传输…
RS485服务器程序,实现设置Nodes,检测Nodes以及传输数据-RS485 server program, the realization of set Nodes, as well as the transmission of data detection Nodes
- 2022-06-28 20:48:36下载
- 积分:1
-
the wireless remote control code is used in the main control module pt2272 micro...
本代码是无线遥控中常用的pt2272模块的主控单片机代码,实现了编址发送功能。-the wireless remote control code is used in the main control module pt2272 microcontroller code, Implementation of the address this function.
- 2022-03-20 23:10:25下载
- 积分:1
-
SCM control of electric vehicles with the start
用单片机控制电动车的起停,用C语言编程,编译环境是KAIL C ,选用的芯片是PIC芯片。编译很好。-SCM control of electric vehicles with the start-stop, using C language programming, compiler environment is KAIL C, use the chips are PIC chips. Compile good.
- 2022-08-23 02:49:56下载
- 积分:1
-
介绍了液晶显示模块基本原理及其技术特性,与单片机的进行接口的具体电路,同时给出了其编程方法和程序代码....
介绍了液晶显示模块基本原理及其技术特性,与单片机的进行接口的具体电路,同时给出了其编程方法和程序代码.-Introduced the basic principles of liquid crystal display module and its technical characteristics, and MCU interface to the specific circuit, at the same time gives the methods and procedures of its programming code.
- 2022-01-25 16:29:00下载
- 积分:1
-
这是一个通信程序,用的51单片机系统,用它可以实现弹片机相互连接相互通信的作用...
这是一个通信程序,用的51单片机系统,用它可以实现弹片机相互连接相互通信的作用-This is a communication program, the 51 SCM system, it can be achieved with shrapnel machine connected to the role of mutual communication
- 2022-11-04 00:25:03下载
- 积分:1
-
一个基本的平安钟控制程序,帮别人写的,学习的人可以看看,不错的。...
一个基本的平安钟控制程序,帮别人写的,学习的人可以看看,不错的。-Ping
- 2022-03-24 17:26:07下载
- 积分:1
-
仪器仪表使用GPIB接口程序! 国内仪器基本很少用到的,我的绝对能用已经用于多台测试仪器。...
仪器仪表使用GPIB接口程序! 国内仪器基本很少用到的,我的绝对能用已经用于多台测试仪器。-Instruments GPIB interface program to use! The basic domestic equipment rarely used, and I definitely can use has been used for multiple test instruments.
- 2022-02-01 22:17:22下载
- 积分:1