单片机音乐演奏控制器的设计 毕业论文[实用论文].docVIP

单片机音乐演奏控制器的设计 毕业论文[实用论文].doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
单片机音乐演奏控制器的设计 毕业论文[实用论文]

毕业设计论文 单片机音乐演奏控制器的设计 摘 要 本文是应用MCS-51单片机原理和控制理论设计音乐演奏控制器的硬件电路,并利用汇编语言进行程序设计。通过控制单片机内部的定时器来产生不同频率的方波,驱动喇叭发出不同音调,再利用延迟来控制发音时间的长短把乐谱转化成相应的定时常数就可以从发音设备中演奏出悦耳动听的音乐。这种控制电路结构简单,可靠性高,应用性强;软件程序适应范围广,对于不同的音乐只需要改变相应的定时常数即可。利用琴键控制定时器的开中断和闭中断,即实现发音和闭音。在此期间再通过对定时器的定时时间进行控制来产生不同频率的方波,驱动嗡宁器发出不同音阶的声音。把C调中相应琴键对应的音符变换为定常数,作为数据表格存放在存储器中。由程序查表得到定时常数,用以控制定时器产生方波的频率。当下一个琴键按下时,再查下此琴键所对应音符的定时常数。依次进行下去,就可以演奏出自己所要的歌曲。关键词:单片机音乐汇编语言Music Performance Controller MCU Abstract This is the application of MCS-51 SCM principles and control theory, music performance controller hardware and programming using assembly language. By controlling the MCUs internal timer to generate square waves of different frequencies to drive speakers make different tones, and then use delay to control the length of the music sounds into the corresponding time constants can be played out from the sound equipment in a wonderful blend of music . This control circuit is simple, high reliability and strong applicability; software program to adapt to a wide range of different music just for the appropriate time constant change can be. This design is based on the 8051 circuit chip, with external power amplifier, playback equipment, in order to realize music controller hardware, software program to control the microcontroller through the internal timer to play the beautiful sounds of music . Control the use of keys to open the timer interrupt interrupted and closed, or closed to achieve sound and tone. During this period of time and through time on the timer control to generate different frequencies of square wave drive hum rather different scale of the sound emitted. The corresponding keys to adjust the corresponding C notes transformed to be constant, as the data tables stored in memory. Time constants obtained by the program look-up table to control the timer produces a square wave frequency. When the next keys pressed, and then check under the keyboard corresponding to notes of the time constant. Order to continue, they can

文档评论(0)

baoyue + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档