-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
SST IAP download software can be used to achieve SST 89C5X series of IAP (DOS us...
SST IAP 程序下载软件 可用于实现SST 89C5X系列的IAP(DOS下使用)-SST IAP download software can be used to achieve SST 89C5X series of IAP (DOS use)
- 2022-01-28 14:04:37下载
- 积分:1
-
Temperature detection: LAB200 system, temperature sensor simulation
温度检测:LAB200系统下,温度传感器仿真-Temperature detection: LAB200 system, temperature sensor simulation
- 2022-05-25 06:02:23下载
- 积分:1
-
ds1302, to do my own successful, can be downloaded directly using!
ds1302,我自己做成功了,可以下载就直接用!-ds1302, to do my own successful, can be downloaded directly using!
- 2022-07-24 07:31:17下载
- 积分:1
-
用C8051F310的定时器来实现定时中断,进而实现在扬声器实现不同声音的输出...
用C8051F310的定时器来实现定时中断,进而实现在扬声器实现不同声音的输出-C8051F310 timer used to achieve regularly interrupted, and then realize the sound at different speaker output
- 2022-01-21 21:23:24下载
- 积分:1
-
12bitAD转换芯片AD1674的应用,转换数据由1602液晶显示
12bitAD转换芯片AD1674的应用,转换数据由1602液晶显示-AD1674 chip 12bitAD conversion applications, conversion of data from the 1602 LCD
- 2022-07-04 01:42:07下载
- 积分:1
-
PIC1687X microcontroller, a LCD12232 Han, All data stored in chip FLAISH, mainta...
PIC1687X单片机,LCD12232汉显,所有数据存于片内FLAISH中,断电保持,硬件调试通过-PIC1687X microcontroller, a LCD12232 Han, All data stored in chip FLAISH, maintain power outages, hardware debugging through
- 2022-02-24 18:39:16下载
- 积分:1
-
AVRmega16 MCU 数摸转换运用,已在CV上调试,可以用于实生产中
AVRmega16 MCU 数摸转换运用,已在CV上调试,可以用于实生产中-DAC
- 2022-05-20 17:54:14下载
- 积分:1
-
C8051F单片机是完全集成的混合信号系统级芯片(SoC),具有与8051兼容的高速CIP...
C8051F单片机是完全集成的混合信号系统级芯片(SoC),具有与8051兼容的高速CIP-51内核,与MCS-51指令集完全兼容,片内集成了数据采集和控制系统中常用的模拟、数字外设及其他功能部件;内置FLASH程序存储器、内部RAM,大部分器件内部还有位于外部数据存储器空间的RAM,即XRAM。C8051F单片机具有片内调试电路,通过4脚的JTAG接口可以进行非侵入式、全速的在系统调试。-C8051F is a fully integrated mixed-signal system-on-chip (SoC), and 8051 compatible with the high-speed CIP-51 core, and MCS-51 compatible instruction set, on-chip integration of the data acquisition and control system used in analog and digital peripherals, and other functional components; embedded Flash program memory, internal RAM, the majority of devices located within the external data memory space of RAM, XRAM. C8051F with on-chip debug circuit, through the four legs of the JTAG interface can be non-invasive, full-speed debugging of the system.
- 2022-03-20 11:16:39下载
- 积分:1
-
TTR056 MCU control code! Taiwan Winton SCM Interface Converter application code!
TTR056单片机控制代码!台湾通泰单片机接口转换应用代码!-TTR056 MCU control code! Taiwan Winton SCM Interface Converter application code!
- 2022-06-16 17:24:52下载
- 积分:1