-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
我自己在别人基础上改写的MSP430F410_2部分的汇编代码,希望能对大家有所帮助...
我自己在别人基础上改写的MSP430F410_2部分的汇编代码,希望能对大家有所帮助-myself in other people rewritten on the basis of the compilation MSP430F410_2 part of the code, we hope to help
- 2022-11-29 16:25:04下载
- 积分:1
-
CRC16 / CRC8 / CRC32计算程序CRC
计算CRC16/CRC8/CRC32的程序,可获得CRC-CCITT/CRC-16/CRC-8/CRC-32的计算结果。 提供Delphi源代码和MCS51单片机的汇编源代码,分别采用两至三种不同算法实现。有比较详细的调用和使用说明。 更新历史: 2003/05/04 新增CRC-8算法的实现。 2004/02/02 修改CRC-8算法,新增CRC-32算法,增加比较详细的调用和使用说明。-CRC16/CRC8/CRC32 calculation procedures available CRC-CCITT/CRC-16/CRC-8/CRC-32 the calculated results. Delphi provide source code and compile the MCS51 source code, adopted two to three different algorithm. A more detailed calls and use. Update History : 2003/05/02 new CRC-8 algorithm implementation. 2004/02/02 changes CRC-8 algorithm, the new CRC-32 algorithm, adding more detailed calls and use.
- 2022-08-20 02:47:28下载
- 积分:1
-
With the Lunar calendar display, complete functions, with schematics, can make p...
带农历显示的万年历,功能齐全,附电路图,可以做产品。-With the Lunar calendar display, complete functions, with schematics, can make products.
- 2023-03-28 16:05:04下载
- 积分:1
-
sst25lf020a记忆的SPI驱动程序
SST25LF020A存储器SPI驱动程序-SST25LF020A memory SPI Driver
- 2022-01-26 01:10:08下载
- 积分:1
-
《51系列单片机高级实例开发指南》一书的can总线的PC端的源代码...
《51系列单片机高级实例开发指南》一书的can总线的PC端的源代码-"51 MCU Development Guide Senior example," a book can Bus PC side of the source code! !
- 2023-08-14 09:40:03下载
- 积分:1
-
TI Stellaris LM3S9B96的datasheet,单片机使用ARM和# 39皮层
TI Stellaris LM3S9B96 的 Datasheet,该 MCU 使用 ARM 公司 Cortex-M3 内核,为新的一代 MCU。-TI Stellaris LM3S9B96 the Datasheet, the MCU to use ARM" s Cortex-M3 core, as a new generation MCU.
- 2022-03-16 14:25:36下载
- 积分:1
-
单片机
基于KeilC 平台的单片机源码,适用于AT89ls52,程序通过中断方式查询按键的输入,I/O口接入单独按键。-Microcontroller-based platform KeilC source for AT89ls52, procedure interrupt input query keys, I/O port access to a separate button.
- 2022-06-01 10:28:14下载
- 积分:1
-
基于EWAVR平台下at45DB161、at45DB321驱动
基于EWAVR平台下at45DB161、at45DB321驱动-based EWAVR platform at45DB161, at45DB321 Drivers
- 2022-02-13 20:25:56下载
- 积分:1
-
这是一个时钟中断的小程序
这是一个时钟中断的小程序-This is a small clock interrupt procedures
- 2022-03-25 01:44:34下载
- 积分:1