- 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
您可能关注的文档
- 毕业论文 电子产品可制造性设计.doc
- 毕业论文静态网页设计与制作.doc
- 红外线遥控插座的毕业论文报告.doc
- 机械加工工艺课程毕业设计.doc
- 基于ISP实现的宠物电子商务商店.doc
- 基于JAVA GUI编程实现五子棋游戏.doc
- 基于MSP430的电阻测量系统的设计毕业论文.doc
- 基于PLC的交通灯控制设置系统的毕业设计.doc
- 基于PLC的全自动洗衣机控制系统的毕业设计.doc
- 基于plc的输煤控制系统.doc
- 政府行业信息化建设与管理云平台解决方案.doc
- 网络直播营销策划及实施细则.doc
- 电子商城平台运营策略及用户体验提升研究.doc
- 石油化工行业安全环保管理方案.doc
- 航空工业无人机技术研发应用方案.doc
- 1.2空间向量基本定理-2024-2025学年高二上学期数学人教A版(2019)选择性必修第一册.pptx
- 1.3空间向量及其运算的坐标表示课件-2024-2025学年高二上学期数学人教A版(2019)选择性必修第一册.pptx
- 4.3.2等比数列的前n项和公式课件-2024-2025学年高二上学期数学人教A版(2019)选择性必修第二册.pptx
- 新疆吐鲁番市高昌区二中2025届高三下学期第五次调研考试历史试题含解析.doc
- 广东省深圳市2025届高三第一次模拟考试历史试卷含解析.doc
文档评论(0)