基于STM32的PWM音乐播放器应用设计  被引量:9

Application Design of PWM Music Player Based on STM32

在线阅读下载全文

作  者:马志强[1] 王建刚[1] 孙少林[1] 胡明[1] 

机构地区:[1]总参谋部通信训练基地,宣化075100

出  处:《单片机与嵌入式系统应用》2012年第11期63-65,共3页Microcontrollers & Embedded Systems

摘  要:基于32位的STM32F103,利用PWM产生的音频信号驱动蜂鸣器演奏乐曲,实现了音乐播放器的应用设计。该播放器能实现从低音到高音的21个音阶,并能根据乐谱演奏完整的曲目。测试结果表明,PWM的输出信号与各音阶对应的声音频率基本一致,方案切实可行。这一方法也可用于电机控制、电子琴设计等方面,具有较好的实用性。Based on 32-bit STM32F103, using audio signals produced by PWM to drive a buzzer to play music, a music player is de- signed. The player can realize 21 scales from bass to treble and play complete songs according to music scores. Test results show that the output signals of PWM are consistent with the corresponding voice frequency of the scales, and the scheme is feasible. This method can also be used in motor control, keyboard design and so on, showing good practicality.

关 键 词:STM32 PWM 蜂鸣器 定时器 音乐 

分 类 号:TP368.1[自动化与计算机技术—计算机系统结构] TN912.2[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象