文件名称:music-player
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- 上传时间:
- 2017-04-11
- 文件大小:
- 52kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1.利用单片机的定时器,通过IO口输出不同频率的方波,以实现输出不同音频的信号,将歌曲每个音符所对应的定时器初值写入数组或存储器。
2.用单片机的IO口控制蜂鸣器,当方波的频率不同时蜂鸣器发出的音调就不同,并采用延时程序设计持续节拍,根据歌曲的简谱利用C语言编程使蜂鸣器播放音乐。-1. Using a microcontroller timer, the output square waves with different frequencies through the IO port, in order to achieve different audio output signals, each song note timer initial value corresponding to the memory array or write. 2. IO port control microcontroller buzzer, when the square wave frequency is not pitch while buzzer is different, and a time delay duration beat programming using C language programming notation according to the buzzer playing music songs.
2.用单片机的IO口控制蜂鸣器,当方波的频率不同时蜂鸣器发出的音调就不同,并采用延时程序设计持续节拍,根据歌曲的简谱利用C语言编程使蜂鸣器播放音乐。-1. Using a microcontroller timer, the output square waves with different frequencies through the IO port, in order to achieve different audio output signals, each song note timer initial value corresponding to the memory array or write. 2. IO port control microcontroller buzzer, when the square wave frequency is not pitch while buzzer is different, and a time delay duration beat programming using C language programming notation according to the buzzer playing music songs.
(系统自动生成,下载前可以参看下载内容)