基于STM32实现双音多频信号_DTMF_的检测与识别_王勉-2017年10月.pdf
文本预览下载声明
2012 年 9 月 电 子 测 试 Sep. 2012
第 9 期 ELECTRONIC TEST No.9
基于STM32实现双音多频信号(DTMF)的
检测与识别
王 勉, 郭永刚, 赵高院
(陕西烽火通信技术有限公司,西安 710075)
摘要:本文介绍了利用意法半导体公司的STM32F103RET芯片在完成液晶显示、键盘扫描、RTC等主
控工作的同时,利用芯片集成外设模数转换器(ADC1)、定时器(TIM2)以及DMA等外设资源,完成对
DTMF信号的采样。并使用软件算法完成自动增益控制,以及戈泽尔算法计算单音功率,根据信号的二次
谐波功率,可靠迅速地检测和识别出按键信息。并深入讨论了戈泽尔算法中N值的取值范围,为自动增益
控制的稳态功率值提供了依据。最后经过测试,完全满足ITU标准。
关键词:STM32;Cortex-M3;DTMF;增益控制;戈泽尔
中图分类号: TN2 文献标识码: B
Based on the STM32 dual tone multifrequency signal
(DTMF) detection and recognition
Wang Mian, Guo Yonggang, Zhao Gaoyuan
’
(Shaanxi FengHuo Communication Technology Co.,Ltd,Xi an 710075)
Abstract: In this paper we introduce is the the STMicroelectronics STM32F103RET chip in the completion of
liquid crystal display, keyboard scanning, RTC, master work, the use of chip integrated peripherals analog-to-
digital converter (ADC1), Timer (TIM2) and DMAperipheral resources to complete the sampling of the DTMF
signals. And use software algorithms to complete the AGC, and the Geze Er algorithm to calculate the single-
tone power, according to the second harmonic of the signal power, rapid and reliable detection and identification
of key information. The last in-depth discussion of N Ge Zeer algorithm worth range, provides a basis for the
AGC value of the steady-state power.Last tested, and fully meet the ITU standard.
Keywords: STM32;Cortex-M3;DTMF;gain control; Ge Zeer
80
测试工具与解决方案 2012.9
0 引言
显示全部