缺少网 queshao.com

单片机控制音乐播放技术

编号:10-2119 | doc 格式 | 133.00K | 10 页
  1. 文档介绍
  2. 上传者:space
含:电路图及编写程序
摘要
現當今,單片机的應用無處不在.利用單片机控制音樂播放也多不胜舉.音樂芯片也相當之多,而利用單片机存儲音樂,控制播放最為廣泛.它有功能多﹑价格优﹑外圍電路簡單的特點,備受音樂愛好者及音樂芯片制造商的青昧.本章中,用80C51單電机及少數外圍電路控制MUSIC播放,產生“生日快樂歌”,并伴有彩燈閃爍.利用軟件的功能設置,使音樂和燈光有同步的效果.
對于單電机產生音樂,關鍵是控制頻率的輸出.我們知道,不同的聲音對應不同的頻率,產生有規律的頻率輸出就可以得到相應規律的聲音.音樂中,有8個基本音符:do﹑re﹑mi﹑fa﹑so﹑la﹑xi﹑do,八個不同的音符對應著不同的頻率.只要我們對照音符輸出相對應的頻率,就可以產生美妙的音樂了.本章中采用了T0中斷的方法產生不同頻率,并用兩個鍵控制播放和停止.
这里,我用8051单片机控制音樂。由键盘控制播放,用运算放大器的同相放大方式驱動SPEAKER.

Now, the applying of micro chip is in anywhere, music playing is a lots which micro chip control. The music chip is very much. But it is at best to apply the micro chip.It has the characteristic which function is much and price is a little and out’s circuit is a few.So it is used by people who like music and manufacture the music chip.This chapter,using 80c51 micro chip and a few out circuit control the playing of music,and give birth to music of happy birthday, withing lampion swichover working.Music and light have synchronous effect.
For the micro chip giving birth to music,the importance is controlling output of frequence.As we know,the different music has the different frequence,the output of frequence which has rule can gain music that rule accordingly.Have eight basic music’s bits:do,re,mi,fa,so,la,xi,do,eight basic bits have different frequence.So if we output frequence of music basic bit accordingly,music can gain accordingly too.The output of frequence used method of T0 stopping in this chapter,and two keypress control playing and stop. This chapter,We control music by 8051 micro chip,the keypress control playing,and control speaker by in-phase blowing up method of counting blowing up.


关键词:8051单片机,编程,音乐,音级,音程﹑T0:中斷﹑外部中斷﹑發光二极管﹑鍵盤﹑音樂﹑揚聲器﹑頻率.


目录

1.摘要
2. 正文
2.1 前言
2.2 基本构成,硬件软件,提纲图器器件原理,定理
2.2.1 計算T值
2.2.2音拍的產生
2.2.3驱动电路
2.2.4程序框图
3. 结果(补充,讨论,为什么)
4. 参考资料
5. 致谢

  
关于我们 联系我们 帮助中心 支付方式  侵权处理 免责声明 友情链接 网站地图
  蜀ICP备11006018-1