当前位置:网站首页>STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
STM32F1与STM32CubeIDE编程实例-NEC协议红外接收与解码
2022-07-01 06:40:00 【视觉智能】
NEC协议红外接收与解码
1、红外遥控及红外遥控协议介绍
红外线遥控(IR Remote)是一种无线、非接触控制技术,具有抗干扰能力强、信息传输可靠、功耗低、成本低、易于实现等显着优点。 它被许多电子设备,尤其是家用电器广泛使用。
红外线遥控,越来越多地应用于计算机系统。 同类产品的红外遥控器可以有相同的遥控频率或遥控码,不会出现遥控信号“过门(cross-door)”的情况。 目前广泛使用的红外遥控代码:NEC协议的PWM(脉冲宽度调制)和飞利浦RC-5协议的PPM(脉冲位置调制)。本文使用的是NEC Protocol的PWM协议。
1.1 NEC协议介绍
1)NEC协议具有以下特点:
- 8位地址和8位指令长度;
- 地址和命令的两次传输(保证可靠性)
- PWM脉宽调制,由红外载波0”和“1”的占空比表示;
- 载波频率为38Khz;
- 位时间为 1.125ms 或 2.25ms。
2)NEC 代码的位定义
一个脉冲对应一个560us的连续载波。逻辑1传输需要2.25ms(56.5us脉冲+1687.5us低电平);逻辑0传输需要1.125ms(562.5us脉冲+562.5us低电平)。 遥控接收器接收到脉冲时为低电平,无脉冲时为高电平。 这样,我们在接收头收到的信号就是:逻辑1应该是560us低+1687.5us高,逻辑0应该是562.5us低+562.5us高。
边栏推荐
- Rclone Chinese document: a collection of common commands
- 脏读、幻读和不可重复读
- Problem solving: officeexception: failed to start and connect (I)
- Figure out the difference between event coordinates screenx, clientx, pagex and offsetx
- C language course is provided with employee information management system (large operation)
- [unity shader amplify shader editor (ASE) Chapter 9]
- H5网页判断是否安装了某个APP,安装则跳转未安装则下载的方案总结
- Several ways of gson's @jsonadapter annotation
- 数据库对象:视图学习记录
- Postgraduate entrance examination directory link
猜你喜欢

问题:OfficeException: failed to start and connect(二)

如何通过cdn方式使用阿里巴巴矢量图字体文件

Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor

SQL学习笔记九种连接2

Dirty reading, unreal reading and unrepeatable reading

Problem: officeexception: failed to start and connect (III)

脏读、幻读和不可重复读
![[unity shader amplify shader editor (ASE) Chapter 9]](/img/f5/f0f6786406e149187e71c8e12cde0d.png)
[unity shader amplify shader editor (ASE) Chapter 9]

K8S搭建Redis集群

Software engineering review
随机推荐
【微信小程序低代码开发】二,在实操中化解小程序的代码组成
Camouflage request header Library: Anti useragent
自动化测试平台(十三):接口自动化框架与平台对比及应用场景分析及设计思路分享
Find the original array for the inverse logarithm
Esp32 monitors the battery voltage with ULP when the battery is powered
了解ESP32睡眠模式及其功耗
Chinese explanation of common rclone subcommands
Jena default inference query based on OWL
Esp32 esp-idf GPIO key interrupt response
PAT (Advanced Level) Practice 1057 Stack
软件工程复习
考研目录链接
Summary of wechat official account embedded program to jump to wechat
Draw a directed graph based on input
Internet worm
SQL learning notes 2
嵌入式系统
Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor
数据库对象:视图学习记录
(上)苹果有开源,但又怎样呢?