文件名称:zuixuan
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [Text]
- 上传时间:
- 2013-05-29
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- li***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
其原理很简单,就是MSP430F14x系列单片机Timer A模块有一个比较/匹配功能,利用这一功能可以输出任意频率、任意占空比的方波,把这些方波输给蜂鸣器就可以播放了。当然要让蜂鸣器播放《最炫民族风》,最大的挑战是写C语言版的“乐谱”。所幸小时候学过五六年的小提琴,再加上物理竞赛的背景,因而对于乐谱、乐理、音频、节奏等等关键概念都略懂一二。废话不多说了,直接上源代码:
-The principle is very simple, is MSP430F14x Series MCU Timer A module has a compare/match function, the use of this feature can be output at any frequency, arbitrary duty cycle square wave, square wave lost these can play a buzzer. Of course, to make the buzzer play " the most unusual national wind" , the biggest challenge is to write C-language version of " music." Fortunately, the child learned the violin in 2056, coupled with the physical contest background, and thus for sheet music, music theory, audio, rhythm, etc. have little knowledge of twelve key concepts. Ado, directly on the source code:
-The principle is very simple, is MSP430F14x Series MCU Timer A module has a compare/match function, the use of this feature can be output at any frequency, arbitrary duty cycle square wave, square wave lost these can play a buzzer. Of course, to make the buzzer play " the most unusual national wind" , the biggest challenge is to write C-language version of " music." Fortunately, the child learned the violin in 2056, coupled with the physical contest background, and thus for sheet music, music theory, audio, rhythm, etc. have little knowledge of twelve key concepts. Ado, directly on the source code:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
zuixuan.txt