文件名称:music-player
介绍说明--下载内容来自于网络,使用问题请自行百度
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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.