-
犯错
红外解码程序主要工作为等待红外线信号出现,并跳过引导信号,开始收集连续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
-
把程序写进单片机从而控制电梯的上下,开关门,报警等功能!这个程序简单,使用性强!...
把程序写进单片机从而控制电梯的上下,开关门,报警等功能!这个程序简单,使用性强!-procedures written into the MCU control of the elevator up and opening the doors, alarm functions! This simple procedure, the use of strong!
- 2022-03-05 03:10:31下载
- 积分:1
-
This a program which performs addition,subtraction,multiplication and division o...
This a program which performs addition,subtraction,multiplication and division of two 4 bit binary numbers..therefore it is called as 4 bit binary ALU..if u have any doubt,then mail me at prem_bombay@yahoo.co.in -This is a program which performs addition,subtraction,multiplication and division of two 4 bit binary numbers..therefore it is called as 4 bit binary ALU..if u have any doubt,then mail me at prem_bombay@yahoo.co.in
- 2022-07-14 18:38:23下载
- 积分:1
-
预期的源代码,包括周围的代码驱动,定标器。
预期的源代码,包括驱动程序周围的ic代码,定标器。
- 2022-04-12 16:34:55下载
- 积分:1
-
MSP 430 PC keyboard communications PS/2 code
MSP 430 PC键盘通讯PS/2代码-MSP 430 PC keyboard communications PS/2 code
- 2022-05-19 06:07:44下载
- 积分:1
-
c51的 几段代码 主要是一些模块的 功能代码 希望初学的人来 学习...
c51的 几段代码 主要是一些模块的 功能代码 希望初学的人来 学习-paragraphs c51 code modules are mainly functional code hope that people learning to learn
- 2023-08-21 01:50:04下载
- 积分:1
-
单片机实验:定时/寄存器8253。原代码,ASM文件。
单片机实验:定时/记数器8253。的原程序代码,ASM文件。-SCM Experiment : Timing/Register 8253. The original code, ASM file.
- 2022-03-05 19:43:07下载
- 积分:1
-
AVR单片机浮点数、串口波特率、定时器参数计算器,很不错的小软件!...
AVR单片机浮点数、串口波特率、定时器参数计算器,很不错的小软件!-AVR microcontroller floating-point, serial baud rate, timer parameter calculators, a very nice small piece of software!
- 2022-02-05 17:58:53下载
- 积分:1
-
J1939协议的源代码,支持PIC18F单片机。有一个详细的说明文件…
J1939源代码,支持PIC18F系列单片机。有详细的说明文档,移植方便。-J1939 source code, support PIC18F MCU. Have a detailed description of the document, to facilitate transplantation.
- 2022-04-14 11:00:30下载
- 积分:1
-
2007 National Undergraduate Electronic Design Contest intelligent vehicle design...
2007年全国大学生电子设计大赛智能车设计的程序,实现智能找平衡等多个功能。拿下山东赛区一等奖。-2007 National Undergraduate Electronic Design Contest intelligent vehicle design process, finding a balance and other intelligent features. Division won the first prize of Shandong.
- 2023-07-17 21:00:10下载
- 积分:1