当前位置:网站首页>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高。
边栏推荐
- HW(OD)岗面试题
- Understand esp32 sleep mode and its power consumption
- Idea easy to use plug-in summary!!!
- 基金定投是高风险产品吗?
- C language course set up library information management system (big homework)
- Docker 安装部署Redis
- buildroot override 机制
- @Transactional的传播属性REQUIRES_NEW深入理解
- Design of sales management system for C language course (big homework)
- WiFi settings for raspberry Pie 4
猜你喜欢

Figure out the difference between event coordinates screenx, clientx, pagex and offsetx

ESP32 - ULP 协处理器在低功耗模式下读片内霍尔传感器HALL SENSOR

【微信小程序】如何搭积木式开发?

发现了一个 MySQL 的巨坑:update 更新别再用影响行数做判断了!!!

C language course set up salary management system (big homework)
![[wechat applet] to solve button, input and image components](/img/7f/a61ee2f610b2f0f9fb0b34cb960f81.jpg)
[wechat applet] to solve button, input and image components

Some pits designed by NOC

Free trial of self-developed software noisecreater1.1

ESP32深度睡眠电流怎样低于10uA

【微信小程序】一文解决button、input、image组件
随机推荐
三说 拷贝构造之禁用
Solve the problem of "unexpected status code 503 service unavailable" when kaniko pushes the image to harbor
产品学习(一)——结构图
Figure out the difference between event coordinates screenx, clientx, pagex and offsetx
Find the original array for the inverse logarithm
SQL学习笔记2
解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
Rclone Chinese document: a collection of common commands
How the esp32 deep sleep current is lower than 10uA
Esp32 monitors the battery voltage with ULP when the battery is powered
Stored procedure learning notes
rclone 访问web界面
Solve the problem that the class defined in meta-inf.services cannot be read
SQL language learning record I
产品学习(三)——需求列表
ESP32 - ULP 协处理器在低功耗模式下读片内霍尔传感器HALL SENSOR
8 figures | analyze Eureka's first synchronization registry
Is fixed investment fund a high-risk product?
PAT (Advanced Level) Practice 1057 Stack
Problem: officeexception: failed to start and connect (III)