-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
atmage8中的I2C口读写程序,希望对大家有用!
atmage8中的I2C口读写程序,希望对大家有用!-I atmage8 of I2C reading and writing process, I hope useful for all of us!
- 2022-06-30 04:09:07下载
- 积分:1
-
介绍了集成温度传感器AD590,给出了AD590测量热力学温度、摄氏温度、两点温度差、多点最低温度、多点平均温度的具体电路,并以节能型温、湿度控制系统为例介绍了...
介绍了集成温度传感器AD590,给出了AD590测量热力学温度、摄氏温度、两点温度差、多点最低温度、多点平均温度的具体电路,并以节能型温、湿度控制系统为例介绍了利用AD590测两点温差电路的应用。-Introduced an integrated temperature sensor AD590, given AD590 measuring thermodynamic temperature, Celsius temperature, two temperature difference, multi-point minimum temperature, average temperature of the specific multi-point circuits, and to energy-efficient temperature and humidity control system as an example, introduced the use of two AD590 temperature measurement circuit applications.
- 2022-11-20 17:05:04下载
- 积分:1
-
AVR_Meag8_L298控制电机的程序源码,电路原理图,M8程序使用(ICC_AVR)编译,内有说明....
AVR_Meag8_L298控制电机的程序源码,电路原理图,M8程序使用(ICC_AVR)编译,内有说明.-AVR_Meag8_L298 control procedures for the electrical source, circuit schematics, M8 uses (ICC_AVR) compiler, which has notes.
- 2023-05-21 22:50:03下载
- 积分:1
-
8279键盘单片机c语言编码,很实用哦。
8279键盘单片机c语言编码,很实用哦。-8279 keyboard Singlechip c language coding, it is practical Oh.
- 2022-02-07 20:57:07下载
- 积分:1
-
早些做了一件事。24高
前段时间做的一个东西,用的24位高精度AD转换芯片CS5532和12DA转换器max531的AVR驱动.芯片用的是ATMEGA8515,开发环境ICCAVR.CS5532的内部寄存器太多,设置有些复杂-earlier done a thing. The 24 high-precision AD converter and the CS5532 chip converters max531 12DA AVR Drivers . The chip is ATMEGA8515. Development Environment ICCAVR.CS5532 too many internal registers, set up some complex
- 2022-03-21 01:53:30下载
- 积分:1
-
RS232通信程序,是PC机与单片机之间的通信
RS232通信程序,是PC机与单片机之间的通信-RS232 communication program is the PC machine with single-chip communication between
- 2022-04-07 07:32:03下载
- 积分:1
-
ucos
uCOS-II在C51下的一个完整的小游戏源码-uCOS-II C51 in the integrity of a small game FOSS
- 2022-01-24 15:02:18下载
- 积分:1
-
传感器应用实例电路设计150例,资源共享,敬请使用!
传感器应用实例电路设计150例,资源共享,敬请使用!-Sensor circuit design application 150 cases, resource sharing, please use!
- 2022-01-25 20:13:08下载
- 积分:1
-
proteus仿真的单片机控制交通灯的例子。
proteus仿真的单片机控制交通灯的例子。-Proteus simulation of single-chip microcomputer to control traffic lights example.
- 2022-02-01 21:00:11下载
- 积分:1