资源描述:
《基于单片机带流水灯的电子音乐盒》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、课程设计(论文)说明书题目:带花样灯的电子音乐盒院(系):信息与通信学院专业:电子信息工程学生姓名:学号:指导教师:职称:2012年12月12日otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,Secret
2、aryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrecorderoftheCountypartyCommitteeSecretary,Ministersand摘要本设计是一个基于AT89C5
3、2系列单片机的音乐盒,依据单片机技术原理,通过硬件电路制作以及软件编译,设计制作出一个多功能多功能音乐盒,最终达到设计电路的乐器演奏、点歌、存储及显示功能。设计中应用中断系统和定时/计数原理控制演奏器发声,对音乐发生所必须确定的音符和节拍分别用程序语言实现,可以用它来弹奏和播放乐曲。本设计的特点是设计思路简单、清晰,成本低。该音乐盒主要由按键电路、复位电路、时钟电路以及蜂鸣器组成。该电路使用两个按键控制音乐盒,一个用来切换歌曲,另一个用来切换八路LED的变化花样,本音乐盒共有五首歌曲,花样灯花样共计五种。播放歌曲时,蜂鸣器发
4、出某个音调,与之对应的LED亮起。本设计利用KEIL编程软件对音乐盒源程序进行编程并调试,配合PROTEUS仿真软件对硬件进行仿真调试,节约了设计时间。关键字:音乐盒;AT89C52单片机;KEIL;PROTEUS;AbstractThedesignisbasedonaseriesofAT89C52SCMMusicBox.Thedesignofamulti-functionmusicboxthroughtheproductionofhardwareandsoftwarecompilation,Onthebasisofthep
5、rinciplesofmicrocomputertechnology.Thedesignuseinterruptionsystemandtiming/countingprincipletocontrolperformancesoundproduction,whichusedforplayingthesongs.Andthemusicmustdeterminethenotesandbeatsprogramlanguagetorealizetheseparationof.Thecharacteristicofthisdesign
6、issimple,cleardesign,lowcost.Themusicboxismainlycomposedofakeycircuit,resetcircuit,clockcircuitandabuzzer.Thecircuitusingtwobuttonstocontrolmusicbox,ausedtoswitchthesong,anotherusedtoswitchthe8roadLEDchangepattern。ThismusicboxhavefivesongsandAtotalof5samplelightfig
7、ure.Whenplayingsongs,buzzersoundedanotewiththecorrespondingLEDlightsup.ThedesignusingKEILprogrammingsoftwareformusicboxsourcecodeforprogramminganddebugging,withingthePROTEUSsimulationsoftwaretothehardwaresimulationdebuggingtosavethedesigntime.Keyword:AT89C52SCM;Mus
8、icBox;KEIL;PROTEUS;桂林电子科技大学课设用纸目录引言31概述41.1设计目标41.2设计方案41.3设计内容52系统总体方案52.1系统组成框图52.2音乐盒的功能结构图53硬件设计63.1总体设计框图63.2各部分硬件设计及其原理63.2.1AT89C51简介63.2.