本科毕业设计方案基于单片机的音乐盒的设计 基于单片机的音乐盒的设计 学院名称: 专 业: 班 级: 学 号: 姓 名: 指导老师姓名: 指导老师职称: 本 科 毕 业 设 计 ( 论 文 )二〇一四 年 六 月 基于单片机的音乐盒的设计摘 要:本次设计根据单片机技术原理,通过硬件电路制作以及软件编程,制作出一个基于 AT89C52 单片机的简易音乐播放器,该系统以单片机作为电路的主控核心,硬件电路主要由按键电路、复位电路、显示电路等模块组成。系统软件采纳 C 语言进行编写,采纳了模块化编程,其移植性较好。系统程序主要包括主程序、播放子程序、按键子程序、延时子程序等。该系统有歌曲播放、电子琴两种模式,可通过按键进行模式选择。本论文包括系统方案的建立、硬件电路的具体设计及软件的程序实现等过程。并通过软硬件的联合调试,验证了设计方案的可行性。该系统最终实现了模式的选择、歌曲的选择及播放等功能,实验证明,该系统具有一定的有用性。关键词:AT89C52 单片机;软件编程;音乐盒The Design of Music Box of the Single Chip MicrocomputerAbstract:This design according to principle of single chip microcomputer technology,through the hardware circuits and software programming,make a simple music player based on AT89C52 single chip microcomputer,the system with single chip microcomputer as control core of the circuit,the hardware circuit is mainly composed of keypad circuit,reset circuit,display circuit module .System software using C language to write,using the modular portablility is program mainly includes the main program subroutine,played subroutines,buttons,delay system has a song play,keyboard two modes,can through the button to choose.This paper includes the establishment of the system,detailed design of hardware circuit and software program implementation through the software and hardware joint debugging,verify the feasibility of design system finally realize the pattern selection,selection of songs and play function,such as experiments show that the system h...