摘 要:当下微电子技术发展的非常迅速,而单片机作为微电子的代表其杰出的优点在各行 各业中得到极大程度的利用。为了将所学的单片机知识应用到生活中,本文选择了设计一 个以 STC89C52 为控制核心的音乐播放器。本设计采用 C 语言编写程序,通过 Keil 来运行 程序,用 Proteus 软件来设计电路图并进行功能仿真。该音乐播放器系统包括几个模块: 单片机最小系统、按键模块、电源模块、数码管显示模块、功放模块。单片机最小系统能 产生不同的频率信号,为播放歌曲提供信号;按键模块用来与单片机交流,实现暂停、停 止、上一首、下一首的功能;电源模块为整个系统提供电源;数码管显示模块显示正在播 放歌曲的曲目编号;功放模块通过音频功率放大器 LM386,使得扬声器可以发出声音,播 放歌曲。设计成功后,又对软件和硬件分别进行了调试,最后测试结果满足设计要求。本 论文重点介绍了该音乐播放器系统涉及到的原理,硬件设计方法与软件编程思想。75411
毕业论文关键词:STC89C52,音乐播放器,Proteus, Keil
Abstract: Nowadays, the microelectronics technology develops rapidly, and we know that one of the most representatives is the single-chip microcomputer。 The single-chip microcomputer has been widely used in various fields for its outstanding advantages。 In order to apply theoretical knowledge of single chip microcomputer to practice, a design of music player which uses STC89C52 as the core was introduced in this paper。 The main program of this design is written in C language, and run with the Keil。 We use Proteus to design the circuit diagram and complete function simulation。 The music player system includes several modules, such as SCM minimum system, button module, power module, digital tube display module, power amplifier module。 The smallest single-chip system can produce different frequency signal as the signal for playing songs。 The button module is used to switch to the last or next song and stop or start playing music。 The power module can provide power to the system。 The digital tube module displays the number of the song which playing currently。 The power amplifier module makes the loudspeaker send out sound for enough power。 After the completion of the design, I also debug the hardware and software。 At last, the final test results meet the design requirements。 This paper mainly introduces the principle of music player, the way of hardware design and the main idea of software program。
Key words: STC89C52,music player , Proteus , Keil
目录
1 绪论 4
1。1 选题背景 4
1。2 课题的前沿发展 4
1。3 本课题研究的任务 5
1。4 本课题研究内容 5
2 音乐相关知识简介 6
2。1 音乐的基本知识说明 6
2。2 音调 6
2。3 节拍 7
3 主要元器件介绍 7
3。1 STC89C52 介绍 9
3。2 LM386 芯片介绍 STC89C52单片机音乐播放器的设计+程序+电路图:http://www.youerw.com/zidonghua/lunwen_86328.html