基于单片机的音乐盒设计 学生:XXX 指导老师:XXX内容摘要: 本设计是一个基于 AT89C51 系列单片机的音乐盒, 依据单片机技术原理, 经过硬件电路制作以及软件编译, 设计制作出一个多功能数字音乐盒。该音乐盒主要由按键电路、 复位电路、 时钟电路以及蜂鸣器组成。使用两个按键控制音乐盒, 一个用来切换歌曲, 另一个用来切换 8 路 LED 的变化花样, 本音乐盒共有两首歌曲, 花样灯花样共计 3种。播放歌曲时, 蜂鸣器发出某个音调, 与之对应的 LED 亮起。本设计利用 KEIL 编程软件对音乐盒源程序进行编程并调试,配合 PROTEUS 仿真软件对硬件进行仿真调试, 节约了设计时间。关键词: 音乐盒 AT89C51 KEIL PROTEUS 音调Design for AT89C51 digit music boxAbstract: The digest this text has introduced the basic AT89C51 digit music box,According to AT89C51 principle,take it by hardware circuit and software compile to made a multifunction digit music box.this box main form button circuit rest circuit clock circuit and buzzer.Use two button to control it,the one use to change music ,and the other one made the LED change the kind of light.this box had two songs,and LED had three kind of light.then the music has playing,the buzzer will take among of tone,meanwhile LED will give out light.the design on the basic of KEIL to compile and debugging this music box,at the same times match up PROTEUS to hardware going to simulation debugging,So save a lot of times. Keywords: music box AT89C51 KEIL PROTEUS Tone目 录前言.........................................................11 概述........................................................21.1 课题意义................................................21.2 设计方案................................................21.3 讨论内容................................................22 系统总体方案介绍...........................................32.1 系统组成框图............................................32.2 音乐盒的功能结构图...................