摘要:随着电子技术的发展,电子技术正在逐渐改善着人们的学习、生活、工作,因此开发基于单片机的音乐盒系统能够改善人们的生活情趣。随着电子技术与音乐的结合不断加深,由此而产生的音乐盒,因体积小,易于携带,经济适用,并且一般家庭都能接受其价格。而且音乐盒操作直观易于掌握,迅速地提高了音乐盒的普及率。93370
本音乐盒基于STC89C51单片机为核心控制芯片。在发音硬件的选择,摒弃了蜂鸣器,而采用了功放LM386加扬声器的组合,其音质比单纯采用蜂鸣器好。功能键盘则采用普通的轻触按键开关,通过单片机IO口控制采集按键的状态,实现歌曲的切换和暂停等功能。显示设备则采用一位共阳数码管,通过单片机P0口给出数据信号,可以通过数码管查看当前正在播放的歌曲序号。
本设计的主要工作过程是通过按下功能键实现上一首和下一首及暂停播放,通过功放驱动扬声器放出声音,同时有数码管显示当前播放歌曲的序号。利用Keil编程软件对音乐盒源程序进行编程并调试,配合Proteus仿真软件对硬件进行仿真调试,节约了设计时间。
毕业论文关键词:单片机;音乐盒;STC89C51;LM386
ABSTRACT:With the development of electronic technology, electronic technology is gradually improve people's learning, life, work, therefore develops the music box system based on single chip microcomputer can improve people's life interest。 With the combination of music and deepening, electronic technology and the music box, because of small volume, easy to carry, economy applicable, can accept the price and the average family。 Intuitive easy to master and music box, rapidly improve the penetration rate of the music box。
The music box based on STC89C51 microcontroller as the core control chip。 In the pronunciation of the choice of hardware, abandon the buzzer, and the use of a combination of LM386 plus speakers, sound quality is better than simply using a buzzer。 Keyboard function uses the common touch button switch, through the microcontroller IO port control keys acquisition state, the songs of the switch and pause functions。 Display equipment adopts a nixietube, through the P0 port of the SCM and gives the data signal can be through the digital tube to view the currently playing song number。源F于K优B尔C论V文N网WwW.youeRw.com 原文+QQ752^018766
The main work of the design process is to achieve the next and the next one by pressing the function key to pause, and through the power amplifier to drive the speaker out the sound, while the digital tube display the number of current play songs。 Music box source program to make use of Keil programming software programming and debugging, cooperate with the Proteus simulation software to simulation and debugging of hardware, saving the time。
Key words: Single chip microcomputer; Music box; STC89C51; LM386
目 录
第1章 概述 1
1。1 本课题研究意义 1
1。2 设计方案 2
第2章 总体设计 3
2。1 设计目的 3
2。2 设计要求 3
2。3 方案比较 3
2。3。1 控制模块的方案选择 3
第3章 系统硬件电路设计 5
3。1 整体方案设计 5
3。1。1 系统概述 5
3。1。2 系统框图 5
3。2 单片机最小系统电路 STC89C51单片机的音乐盒系统设计:http://www.youerw.com/zidonghua/lunwen_201192.html