登录
首页 » C/C++ » zuixuan

zuixuan

于 2013-05-28 发布 文件大小:3KB
0 67
下载积分: 1 下载次数: 1

代码说明:

  其原理很简单,就是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:)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104228会员总数
  • 45今日下载