当前位置:首页 > [最新版]基于单片机控制的MP3音乐播放器的设计冉玉毕业论文设计
优秀论文 审核通过 未经允许 切勿外传
目录
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播放器的音质已相当好,但略感遗憾的是除了选择歌曲和显示歌名外,绝大部分播放器没有诸如随意弹奏乐曲、乐曲节奏跳动等功能。而随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一。要为现代人工作、生活提供更好的更方便的服务就需要从单片机技术着手,一切向着数字化控制、智能化控制方向发展。
本设计是采用单片机为核心设计的数字音乐播放器。本设计在实现音乐的播放及歌曲名显示等基本功能的基础上进行了扩展,添加了彩灯伴奏、按键弹奏、显示音乐节拍等功能。
本论文给出了系统方案的建立、硬件电路的详细设计及软件的程序实现。并通过软硬件的联立调试,验证了设计方案的可行性。
关键词:多功能;MP3音乐播放器;单片机;按键弹奏
Abstract
The current popular MP3 player sound 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, and software program. And through the software and scheme.
Key words: multi function; MP3 music player; single chip microcomputer; play button
共分享92篇相关文档