- 0
- 0
- 约1.98万字
- 约 38页
- 2016-11-26 发布于辽宁
- 举报
毕业设计
基于51单片机的可控数字音乐盒设计
摘 要
本文是一篇基于AT89C51单片机的可控数字音乐盒的程序设计。该音乐盒是一个依据单片机技术原理,通过PROTEUS仿真软件对硬件电路进行仿真制作以及利用KEIL软件对音乐盒源程序进行C语言编译,而设计制作出的一个多功能数字音乐盒。
该音乐盒通过控制单片机内部的定时器来产生不同频率的方波,驱动喇叭发出不同音调的音乐。该程序通过把乐谱转化成相应的定时常数来驱动发音设备演奏出悦耳动听的音乐。
本音乐盒一共设计了五首歌曲,同时还设计了三种LED彩灯的变化花样。在演奏歌曲时彩灯随音调闪烁。在停止演奏歌曲时三种彩灯花样开始闪烁。歌曲和花样均可随意切换。与此同时,数码管也不断变化数字,以此显示歌曲和彩灯花样的序号。
关键词:数字音乐盒;AT89C51;KEIL;PROTEUS;数码管
THE DESIGNATION OF CONTROLLABLE DIGITAL MUSIC BOX BASED ON 51 SCM
ABSTRACT
This paper explains the program designation of controllable digital music box based on AT89C51. This music box is designed by the idea that a multi-functional digital music box can be made based on the technical principle of single chip microcomputer (SCM), together with using the PROTEUS to simulate the hardware circuit and using KEIL to programme the source of music box which is compiled with C language.
This music box can produce square waves of different frequency in control of the timer inside SCM, and music of different tunes by driving speaker. The program is made use of to drive the sounding equipment to play pleasant music by the way of changing music score into the corresponding timing constant.
This music box is totally designed with five songs, and also with three changeable patterns of LED colorful lights. While the songs are being performed, the colorful lights are flashing with tones. While the songs are stopped playing, the colorful lights start to flash with three changeable patterns. The songs and patterns can be free to switch. At the same time, the digital tube is also constantly changing figures to show the serial number of the songs and the patterns of the colorful lights.
Key words: Digital music box; AT89C51; KEIL; PROTEUS; Digital tube
目 录
1 前言------------------------------------------------------------------------------------------------------1
2 单片机和音乐盒硬件的功能------------------------------------------------------------------------2
2.1 AT89C51芯片的功能-------------------
您可能关注的文档
- 毕业设计论文__基于单片机的多路数据采集系统设计.doc
- 毕业设计论文__基于单片机的二氧化碳浓度器设计 .doc
- 毕业设计论文__基于单片机的光控自动窗帘控制系统设计说明书 .doc
- 毕业设计论文__基于单片机的红外感应防盗报警器的硬件设计 .doc
- 毕业设计论文__基于单片机的红外遥控器设计.doc
- 毕业设计论文__基于单片机的家电远程控制系统的研究.doc
- 毕业设计论文__基于单片机的降压型dcdc变换实验系统设计 综合设计说明书.doc
- 毕业设计论文__基于单片机的教室灯光控制系统的设计 .doc
- 毕业设计论文__基于单片机的酒精浓度测试的设计与研究 .doc
- 毕业设计论文__基于单片机的密码锁设计课程设计报告.doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)