- 11
- 0
- 约1.71万字
- 约 37页
- 2018-04-08 发布于湖北
- 举报
目录1引言 1
2硬件设计 2
2.1硬件电路的设计框图 2
2.2硬件电路设计模块的选定 2
2.2.1中心模块 2
2.2.2播放模块 3
2.2.3显示模块 4
2.2.4电子琴模块 4
2.3各硬件电路的具体设计 5
2.3.1 AT89S52控制模块的设计 5
2.3.2按键模块的设计 6
2.3.3扬声器播放模块的设计 7
2.3.4 LCD显示电路的设计 7
2.3.5彩灯伴奏电路的设计 8
3软件设计 9
3.1单片机发声的基本原理 9
3.2设计的相关音乐说明 9
3.3切换原理 10
3.4音乐播放器软件程序设计 10
3.4.1按键扫描子程序设计 10
3.4.2 1ms延时程序设计 14
3.4.3 LCD显示子程序设计 15
3.4.4函数初始化子程序设计 16
3.4.5系统主程序设计 17
4结论 19
20
附录一 硬件原理图 21
附录二 软件主程序 22
32
摘 要
目前流行的MP3播放器的音质已相当好,但略感遗憾的是除了选择歌曲和显示歌名外,绝大部分播放器没有诸如随意弹奏乐曲、乐曲节奏跳动等功能。而随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一。要为现代人工作、生活提供更好的更方便的服务就需要从单片机技术着手,一切向着数字化控制、智能化控制方向发展。
本设计是采用单片机为核心设计的数字音乐播放器。本设计在实现音乐的播放及歌曲名显示等基本功能的基础上进行了扩展,添加了彩灯伴奏、按键弹奏、显示音乐节拍等功能。
本论文给出了系统方案的建立、硬件电路的详细设计及软件的程序实现。并通过软硬件的联立调试,验证了设计方案的可行性。
关键词:;;
Abstract
The current popular MP3 player sound has been quite good, but feel regretful slightly is in addition to the choice of songs and display the song name, most players without such as random play music rhythm, music and other functions. But as people living standard rise ceaselessly, SCM control is one of the goals that people pursue. For the modern life of work, to provide better and more convenient service needs from proceed toward the SCM technology, all digital control, intelligent control direction.
This design is the use of single-chip microcomputer as the core design of the digital music player. The design in the implementation of music playing and the song name display and other basic functions based on the expansion, adding lights accompaniment, play button, display the beat of the music and other functions.
This paper gives a system scheme, hardware establishment detailed circuit design and software program. And through the software and hardware of simultaneous debugging, verify the feasibility of the design scheme.
Key words: multi function; MP3 music player; single chip microcomputer; play button
1引言
整个硬件电路是由中心控制、播放、选曲、显示、电子琴和彩灯等模块组成中心控制模块采用AT89S52单片机播放模块是由8550 NPN三极管和电磁蜂鸣器组成采用LCD1602显示模块,电子琴设有8个按键,其中7个作为音符输入,另外1个作为模式转换按键,实现用户自弹作曲2 硬件设计
2.1 硬件电路的设计框图
硬件电
您可能关注的文档
最近下载
- 心血管疾病的风险评估与管理课件.pptx VIP
- HG_T 3706-2014 工业用孔网钢骨架聚乙烯复合管.doc VIP
- 湖北省学位英语考试真题2023.pdf VIP
- 船舶焊接 垂直气电焊 垂直气电焊.ppt VIP
- 离婚协议书(2026官方标准版).docx VIP
- 2024湖北省学位英语考试真题及答案.docx VIP
- 九年级上册 第六单元 名著导读(二)《水浒传》课件(共97张PPT).pptx
- SWITCH暗黑破坏神3超级金手指修改 版本号:2.7.3.81707.docx VIP
- 机器学习之监督学习基础(概念、方法)课件.pptx VIP
- 高一化学必修一第一章第二章单元精选测试题(含答案及解析(强烈推荐大家下载).doc VIP
原创力文档

文档评论(0)