- 1、本文档共36页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
目 录
摘要···································································Ⅱ
Abstract······························································Ⅱ
1 绪论························································1
1.1历史背景··················································1
1.2目的意义··················································1
1.3主要问题··················································1
1.4技术要求··················································1
2 设计方案简述···············································2
2.1设计功能要求··············································2
2.2总体设计原理··············································2
2.3总体设计框图··············································2
3详细设计····················································3
3.1芯片的选择与介绍··········································3
3.1.1主要性能参数············································3
3.1.2引脚功能说明············································3
3.2最小单片机系统············································5
3.3键盘部分··················································6
3.4扬声器部分················································6
3.5显示部分··················································6
3.6硬件部分··················································6
3.7流程图····················································7
4设计结果与分析··············································8
5总结························································9
参考文献·····················································10
附录一 元器件清单············································11
附录二 电路图················································12
附录三 程序代码··············································13
摘 要
为了实现单片机控制音乐播放,此次课程设计做出了尝试,即电子音乐盒的设计。本设计采用了扬声器发声来实现歌曲的播放,能保持基本音调不变,流畅播放出歌曲。现选用STC89C52单片机。用KeilC51编程软件编程,用PROTEUS单片机仿真软件仿真。
利用I/O口产生一定频率的方波,驱动蜂鸣器,发出不同的音调,从而演奏乐曲。通过单片机P1口控制,实现功能键盘控制;功能键盘采用按键开关,通过单片机P2口控制,实现歌曲播放顺序的调换和暂停播放功能;扬声器由单片机的P3口控制,实现歌曲播放;
主要工作过程是通过按下功能键实现上一首和下一首及暂停播放,同时有液晶屏显示当前播放歌曲的序号,扬声器播放出音乐。
关键词:STC89C52单片机;方波; 音调
Abstract
In order to achieve single-chip microcomputer to control music
您可能关注的文档
最近下载
- 短视频使用入门.pdf VIP
- 2022年度四川省专业技术人员继续教育公需科目考试题(含答案).pdf
- unitoperationsofchemicalengineering化工单元操作.doc
- 愚公移山故事.docx VIP
- 2023贵州省公路建设养护集团有限公司招聘试题及答案解析.docx
- Viacontrol 威盾V3_用户手册.doc VIP
- 川教版(2024)三年级上册信息科技 3.10在线攻略全有哪些信誉好的足球投注网站 课件.pptx VIP
- 华科自控原理王永冀课后答案.doc
- 关注信息安全预防信息诈骗课件.pptx VIP
- 气道净化护理(2023年中华护理学会团体标准).pptx VIP
文档评论(0)