登录
首页 » SCM » 红外线遥控器按键检测程序. 通过检测两次下降沿之间的时间差判断接受到的数据位. 已经通过了测试,能够正确区分出32bit数据的遥控器按键键值. 具有

红外线遥控器按键检测程序. 通过检测两次下降沿之间的时间差判断接受到的数据位. 已经通过了测试,能够正确区分出32bit数据的遥控器按键键值. 具有

于 2022-07-15 发布 文件大小:2.76 kB
0 177
下载积分: 2 下载次数: 1

代码说明:

红外线遥控器按键检测程序. 通过检测两次下降沿之间的时间差判断接受到的数据位. 已经通过了测试,能够正确区分出32bit数据的遥控器按键键值. 具有数据重发功能,但是数据的重发有点频繁. 使用晶震频率为11.0592MHz,所有定时值都是基于这个频率计算. 占用很少量的CPU时间,使用了外部中断0接受数据,定时器0进行计数, 定时器1作为串口的波特率发生器(Band = 9600).-Infra-red remote control button detection program. By detecting falling edge twice to determine the time difference between the received data bit. Has passed the test, could correctly distinguish 32bit data button remote control key. With data re-issued, but data a bit of re-issued frequent. Zhenyuan frequency of use of crystal 11.0592MHz, all timing values are calculated based on this frequency. occupied by small quantities of CPU time, use the external interrupt 0 to accept data, timer 0 to count, timer 1 as a string port baud rate generator (Band = 9600).

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • msp320F247单片机的AD采样及液晶1602显示
    msp320F247单片机的AD采样及液晶1602显示-msp320F247 SCM AD sampling and liquid crystal display 1602
    2022-02-07 11:01:40下载
    积分:1
  • 用C8051F330单片机控制L297和L298驱动步进电机。能够实现正反转
    用C8051F330单片机控制L297和L298驱动步进电机。能够实现正反转-C8051F330 SCM with L297 and L298 stepper motor drive. To achieve positive
    2023-02-16 07:25:03下载
    积分:1
  • HD44780液晶驱动,KEIL C51
    HD44780液晶驱动,KEIL C51-HD44780 LCD driver, KEIL C51
    2023-01-02 19:05:04下载
    积分:1
  • void InitGoertzel(void) 作用:初始化算法参数 用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter(...
    void InitGoertzel(void) 作用:初始化算法参数 用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter() float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口 作用:对采集下来的音频数据用算法处理,返回一个结果 参数:sampleData-音频数据缓冲地址指针; length-缓冲区尺寸(音频数据数量),字节数; 返回值:返回算法结果。 void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize) 作用:设置算法参数; 参数:set_SampleRate-音频数据抽样速率; set_TargetFreq-目标信号频率; set_BlockSize-算法数据块尺寸(采样点); 用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效-void InitGoertzel (void) function: initialization algorithm parameters Usage: The algorithm performs a pre-test, if the need to change the parameters, calling SetParameter () float CGoertzel:: GetMagnitude (unsigned char* sampleData, int length)// Algorithm for the main interface role: to collect audio data from the treatment algorithm to return a result parameter: sampleData-audio data buffer address pointer length-buffer size (the number of audio data), number of bytes return value: the return of
    2023-03-11 13:30:04下载
    积分:1
  • 基于89s51的keil跑马灯工程,程序虽然简单,但是它的经典程度不亚于软件开发中的“hello word”,单片机汇编编程者不妨参考一下。内附proteus完...
    基于89s51的keil跑马灯工程,程序虽然简单,但是它的经典程度不亚于软件开发中的“hello word”,单片机汇编编程者不妨参考一下。内附proteus完整的仿真文件。-Based on the keil Marquee 89s51 works, the program is simple, but it is no less than classic software development in the " hello word" , the compilation of single-chip programmers may wish to reference. Proteus simulation containing the complete document.
    2023-08-20 23:55:03下载
    积分:1
  • 第 一章 电路原理分析 1
    第 一章 电路原理分析 1-1 显示原理 1-2 数码管结构及代码显示 1-3 键盘及读数原理 1-4 连击功能的实现 第 二 章 程序设计思想和相关指令介绍 2-1 数据与代码转换 2-2 计时功能的实现与中断服务程序 2-3 时间控制功能与比较指令 2-4 时钟误差的分析 附录A 电路图 附录B 存储单元地址表 附录C 输入输出口功能分配表 附录D 定时中断程序流程图 附录F 调时功能流程图 附录G 程序清单 -clock circuit based on AT89C51
    2022-05-28 02:06:18下载
    积分:1
  • c51设计,音乐有‘八月桂花’,‘祝你平安’等
    c51设计,音乐有‘八月桂花’,‘祝你平安’等-a music generator that can play sweet-scented osmanthus of the august ,Wish you safety.
    2022-12-21 12:05:03下载
    积分:1
  • dsPIC的C语言编译器,适用于PIC30系列。
    dsPIC的C语言编译器,适用于PIC30系列。-dsPIC the C language compiler, applicable to the PIC30 series.
    2022-01-24 15:53:20下载
    积分:1
  • with the serial download isp
    用c51的isp串行下载-with the serial download isp
    2022-03-04 01:18:42下载
    积分:1
  • DDS数字信号发生器,采用AD9835DDS 专用芯片 输出范围1K
    DDS数字信号发生器,采用AD9835DDS 专用芯片 输出范围1K--10MHZ 采用X25045作看门狗及数据存储器,用于设置各项参数的存储 内含电路图, 源程序 及一些相关资料-DDS digital signal generator, using AD9835DDS ASIC output range 1K-- Knoxville watchdog for the use of X25045 and data memory, used to set various parameters of storage containing circuit, the source and related information
    2023-01-16 17:05:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载