摘要摘要本次课程设计是基于AT89C51单片机设计一个音乐播放器。通过单片机音乐播放器系统设计和研究,对于切实掌握单片机相关知识具有重要的理论和实际意义。这次课程设计的音乐播放器是软件和硬件的结合,乐曲中不同的音符,实质就是不同频率的声音。通过单片机产生不同的频率的脉冲信号,经过放大电路,由蜂鸣器放出,就产生了美妙和谐的乐曲。根据各音阶频率算出定时器定时常数,根据节拍给出该音阶持续的时间,最终实现播放简单歌曲的功能。例如“世上只有妈妈好”。关键字:单片机,音乐播放器,音节频率IABSTRACTABSTRACTThiscourseisdesignedbasedonsinglechipmicrocomputerAT89C51designamusicplayerThroughthesingle-chipmicrocomputermusicplayersystemdesignandresearch,tobemasteredmicrocontrollerrelatedknowledgeisofimportanttheoreticalandpracticalsignificance.Thecoursedesignofthemusicplayeristhecombinationofsoftwareandhardware,Differentnotesinthemusic,theessenceisdifferentfrequencyofsound.Throughthesingle-chipmicrocomputerproducedifferentfrequencyofthepulsesignal,amplifiedcircuit,releasedbyabuzzertoproducetheharmoniousbeautyofmusic.accordingtoeachoctavefrequencycalculatetimertimeconstant,accordingtobeatthethedurationofthescalearegiven,finallyrealizestheplaysimplesongsfunction.Forexample"Thereisonlyagoodmother".Keywords:MCU,musicplayer,SyllablefrequencyII目录目录第1章引言..................................................................................................................11.1选题背景.....................................................................................................................11.2设计原理.....................................................................................................................11.3单片机简介.................................................................................................................21.4单片机的发展历史.....................................................................................................21.5单片机的应用领域及发展趋势................................................................................2第2章方案论证..........................................................................................................52.1设计要求.....................................................................................................................52.2系统描述.....................................................................................................................52.3设计方案.....................................................................................................................62.3.1集成电路..................................................................................................................62.3.2单片机最小系统....................................................................................................102.3.3结论........................................................................................................................12第3章硬件设计........................................................................................................133.1硬件结构...................................................................................................................133.2中心控制模块...........................................................................................................133.3电源模块......................................................................................