-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
LCD display driver module LCD driver single
LCD液晶显示驱动模块液晶显示驱动单片机源程序-LCD display driver module LCD driver single-chip microcomputer
- 2023-07-14 13:50:06下载
- 积分:1
-
C51 under the former code, including two of HT9200, HT9170 called procedures (C5...
C51下个原代码,包括两个部分HT9200、HT9170 调用程序(C51).c和HT9200、HT9170 调用程序注解-C51 under the former code, including two of HT9200, HT9170 called procedures (C51). c and HT9200 and HT9170 call procedures Notes
- 2023-03-15 03:55:03下载
- 积分:1
-
TMX320TCI6482 circuit, it is difficult to have to get before!
TMX320TCI6482
电路图,很难得才弄到!-TMX320TCI6482 circuit, it is difficult to have to get before!
- 2023-04-21 13:55:04下载
- 积分:1
-
This is my carefully collected data on the msp430 microcontroller in Chinese, fo...
这是我精心收集的关于msp430单片机的中文资料,对于英语不好的朋友,很有帮助-This is my carefully collected data on the msp430 microcontroller in Chinese, for English, bad friends, very helpful
- 2022-07-16 01:54:12下载
- 积分:1
-
Toshiba chips used TDA7495/TDA7496 (has been formed products) produced by high
采用东芝TDA7495/TDA7496芯片(已经形成产品)制作的高保真立体声音频放大器PCB裸板图-Toshiba chips used TDA7495/TDA7496 (has been formed products) produced by high-fidelity stereo audio amplifier PCB bare board diagram
- 2022-08-06 13:44:21下载
- 积分:1
-
PIC单片机与LCD1602的汇编程序。可以直接使用。里面PIC16和PIC18两种,注意分辨。...
PIC单片机与LCD1602的汇编程序。可以直接使用。里面PIC16和PIC18两种,注意分辨。-PIC MCU and the assembler LCD1602. Can be used directly. Inside the PIC16 and PIC18 two, pay attention to distinguish.
- 2023-02-04 08:05:03下载
- 积分:1
-
这是一个msp430的键盘程序,是一个4×4的行列键盘,是用IO口中断方式实现的...
这是一个msp430的键盘程序,是一个4×4的行列键盘,是用IO口中断方式实现的-This is a keyboard program MSP430 is a 4 × 4 of the ranks of the keyboard, is to use IO interrupt I realize the
- 2022-03-12 09:06:45下载
- 积分:1
-
自制小时钟 可以遥控调节时间,采用315M 2262 ,2272 收发模块 发来给新手看看...
自制小时钟 可以遥控调节时间,采用315M 2262 ,2272 收发模块 发来给新手看看 -Self-made small-time clock can be adjusted remotely, using 315M 2262, 2272, sent to the transceiver module to see if novice
- 2023-06-05 16:20:03下载
- 积分:1
-
介绍了基于LPC932 单片机为处理器的电能表的硬件结构和软件流程...
介绍了基于LPC932 单片机为处理器的电能表的硬件结构和软件流程-Introduction LPC932 microcontroller based energy meter processor hardware structure and software flow
- 2022-02-15 02:36:31下载
- 积分:1