-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
Use of FPGA resources for the realization of arbitrary waveform generation, agai...
利用FPGA的资源实现任意波形的产生,再若和单片机配合就能做成任意的波形发生器。-Use of FPGA resources for the realization of arbitrary waveform generation, again if and SCM can be made with the arbitrary waveform generator.
- 2022-02-11 11:04:08下载
- 积分:1
-
采用sja1000开发can总线的源代码
采用sja1000开发can总线的源代码-USE SJA1000 DESIGN CAN-BUS SOURCE PROGRAM
- 2022-02-11 18:21:09下载
- 积分:1
-
Source for scanners barcode fu
Source for scanners barcode fu-Source for scanners barcode full
- 2022-08-11 09:53:04下载
- 积分:1
-
智能计数器,对外部信号脉冲进行计数,并将脉冲个数显示出来。
基本要求:计数至少65536个脉冲,并将脉冲个数显示出来。...
智能计数器,对外部信号脉冲进行计数,并将脉冲个数显示出来。
基本要求:计数至少65536个脉冲,并将脉冲个数显示出来。
-intelligent counter, the external signal pulse counting, pulse number will be displayed. Basic requirements : at least 65,536 Count pulse, and pulse number displayed.
- 2023-06-02 20:15:03下载
- 积分:1
-
用于分析各种点阵字库结构和程序,对嵌入式或单片机开发很有帮助。...
用于分析各种点阵字库结构和程序,对嵌入式或单片机开发很有帮助。-Font used to analyze the various lattice structures and procedures to develop single-chip embedded or helpful.
- 2022-05-29 14:07:58下载
- 积分:1
-
编译环境:ICC AVR 6.31A
单片机:AT90S8515
PC.0出音乐信号,INT0,INT1分别接下一首、播放/暂停键...
编译环境:ICC AVR 6.31A
单片机:AT90S8515
PC.0出音乐信号,INT0,INT1分别接下一首、播放/暂停键
开机处于暂停状态,按下播放/暂停键开始放音,自动播放完8首,会再进入暂停状态。
所有的暂停状态都采用掉电模式。 -build environment : ICC AVR microcontroller 6.31A : AT90S8515 PC.0 musical signal INT0, INT1 respectively took one, Play/Zantingjian Boot suspended, press Play/Zantingjian start of audio, automatic broadcast End 8, will enter the state. All the suspended power-down mode is used.
- 2022-07-13 05:07:40下载
- 积分:1
-
1.利用PWM控制占空比实现LED的亮暗。
2.可以用UP DOWM键进行控制亮暗。...
1.利用PWM控制占空比实现LED的亮暗。
2.可以用UP DOWM键进行控制亮暗。
-1. The use of PWM duty cycle control to achieve the bright LED dark. 2. Can be used to control button UP DOWM bright dark.
- 2022-07-27 23:45:26下载
- 积分:1
-
of motor speed control procedures, you can use this procedure to set parameters,...
电机调速的控制程序,你可以通过这个程序来设定参数,通过反馈就可以控制速度了啊!-of motor speed control procedures, you can use this procedure to set parameters, feedback can control the pace of their ah!
- 2022-03-26 15:00:55下载
- 积分:1
-
Transfer over to another microcontroller to decode the coding level. And 16002 c...
对另一单片机传送过来的编码电平进行译码。并在16002上显示出接受到的字符-Transfer over to another microcontroller to decode the coding level. And 16002 characters on the show receive
- 2022-05-16 11:02:49下载
- 积分:1