摘要
设计一种以STM32F429微控制器为核心的红外遥控信号解码方法。该方法由信号捕捉、波形解析、数据提取及校验三个独立的程序模块构成。程序中采用定时器的双边沿输入捕获中断模式来对信号进行捕捉,在中断程序中只对信号特征进行捕捉,捕捉过程简单。波形解析过程对捕捉到的信号特征进行了波形还原,还原的准确性高。数据提取能够取得具有NEC编码格式的按键信息。实验结果表明,该方法的波形解析误差小于0.217%,解码结果准确可靠,因此具有较高的应用价值。
An infrared remote control signal decoding method based on STM32F429 microcontroller is designed.The method consists of three independent program modules:signal capture,waveform analysis,data extraction and verification.In the program,the interrupt mode of timer is used to capture the signal.In the interrupt program,only the characteristics of the signal are captured,and the capturing process is simple.In the process of waveform analysis,the captured signal features are restored with high accuracy.Data extraction can obtain key information with NEC encoding format.The experiment results show that the waveform analysis error of this method is less than 0.217%,the decoding result is accurate and reliable,so it has a good application value.
作者
朱耀麟
胡向东
武桐
Zhu Yaolin;Hu Xiangdong;Wu Tong(School of Electronic and Information,Xi'an Polytechnic University,Xi’an 710048,China;Northwestern Polytechnical University)
出处
《单片机与嵌入式系统应用》
2020年第12期70-74,共5页
Microcontrollers & Embedded Systems
基金
陕西省重点研发计划项目(2018SF-351)
陕西省教育厅服务地方科学研究计划(18JC012)
陕西省科技厅重点研发计划一般项目(2019GY-098)
榆林市科技局科创新城项目(2018-2-24)。
关键词
红外解码
信号捕捉
波形解析
数据提取
模块化设计
infrared decoding
signal capture
waveform analysis
data extraction
modular design