单片机带流水灯的电子音乐盒.pdf
文本预览下载声明
课程设计 (论文 )说明书
题 目: 带花样灯的电子音乐盒
院 (系): 信息和通信学院
专 业: 电子信息工程
学生姓名:
学 号:
指导教师:
职 称:
2012 年 12 月 12 日
摘 要
本设计是一个基于 AT89C52系列单片机的音乐盒,依据单片机技术原理,通
过硬件电路制作以及软件编译, 设计制作出一个多功能多功能音乐盒, 最终达到
设计电路的乐器演奏、点歌、存储及显示功能。设计中使用中断系统和定时 / 计
数原理控制演奏器发声, 对音乐发生所必须确定的音符和节拍分别用程序语言实
现 , 可以用它来弹奏和播放乐曲。
本设计的特点是设计思路简单、清晰 , 成本低。该音乐盒主要由按键电路、
复位电路、 时钟电路以及蜂鸣器组成。 该电路使用两个按键控制音乐盒, 一个用
来切换歌曲, 另一个用来切换八路 LED的变化花样, 本音乐盒共有五首歌曲, 花
样灯花样共计五种。播放歌曲时,蜂鸣器发出某个音调,和之对应的 LED亮起。
本设计利用 KEIL 编程软件对音乐盒源程序进行编程并调试,配合 PROTEUS仿真
软件对硬件进行仿真调试,节约了设计时间。
关键字 :音乐盒; AT89C52单片机; KEIL;PROTEUS;
Abstract
The design is based on a series of AT89C52 SCM Music Box.The design of a
multi-function music box through the production of hardware and
software compilation, On the basis of the principles of microcomputer technology.The
design use interruption system and timing / counting principle to control performance
sound production, which used for playing the songs. And the music must determine
the notes and beats program language to realize the separation of.
The characteristic of this design is simple, clear design, low cost.
The music box is mainly composed of a key circuit, reset circuit, clock circuit and a
buzzer.The circuit using two buttons to control music box, a used to switch the song,
another used to switch the 8 road LED change pattern。This music box have five
songs and A total of 5 sample light figure.When playing songs, buzzer sounded a note
with the corresponding LED lights up.The design using K
显示全部