当前位置:网站首页>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高。
边栏推荐
- Internet worm
- 常用快捷键
- mysql约束学习笔记
- Is fixed investment fund a high-risk product?
- Promise
- Esp32 esp-idf GPIO key interrupt response
- [unity shader stroke effect _ case sharing first]
- Esp32 monitors the battery voltage with ULP when the battery is powered
- 问题:OfficeException: failed to start and connect(二)
- 第五章 输入/输出(I/O)管理
猜你喜欢

Promise

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

2022 Jiangsu Vocational College skills competition (secondary vocational school) network construction and application open competition volume

嵌入式系统

Dirty reading, unreal reading and unrepeatable reading

TDB中多个model情况下使用fuseki查询

了解ESP32睡眠模式及其功耗
![[unity shader amplify shader editor (ASE) Chapter 9]](/img/f5/f0f6786406e149187e71c8e12cde0d.png)
[unity shader amplify shader editor (ASE) Chapter 9]

How the esp32 deep sleep current is lower than 10uA

Embedded system
随机推荐
【微信小程序】一文解决button、input、image组件
Code practice - build your own diffusion models / score based generic models from scratch
NOC 设计的一些坑
产品学习(一)——结构图
数据库笔记
rclone中文文档:常用命令大全
基金定投是高风险产品吗?
Storage function learning notes
Idea easy to use plug-in summary!!!
数据库对象:视图学习记录
Record an online interface slow query problem troubleshooting
Rotate the animation component around the circle, take it and use it directly
Common shortcut keys
关于变量是否线程安全的问题
If I am in Guangzhou, where can I open an account? Is it safe to open an account online?
Is the account opening of Huafu securities safe and reliable? How to open Huafu securities account
buildroot override 机制
How the esp32 deep sleep current is lower than 10uA
ESP32深度睡眠电流怎样低于10uA
MySQL data type learning notes