- 2
- 0
- 约4.35万字
- 约 79页
- 2018-08-27 发布于湖北
- 举报
基于单片机的可控数字音乐盒设计jlyzqsbm
基于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芯片的功能--------------------------------------------------------
您可能关注的文档
- 基于单片机制冷机的温控设计_gtkokte.doc
- 基于单片机控制温湿度的系统外文及翻译xg3zlan1.doc
- 基于单片机多功能万年历的设计与仿真毕业设计qpoagfd_.doc
- 基于单片机实现的俄罗斯方块游戏毕业论文ky2gj7w7.doc
- 基于单片机控制的温度采集与测量 毕业设计iczwr8uo.doc
- 基于价值链的企业财务战略研究ptfdi4fm.ppt
- 基于光声光谱法对盐酸克伦特罗的检测研究硕士学位论文vxpoftsd.doc
- 基于单片机控制的消毒柜毕业设计论文oip0o2qh.doc
- 基于单片机控制往返电动小车系统设计毕业设计jx0g8shu.doc
- 基于单片机带温度显示的电子万年历设计毕业设计offaase2.doc
最近下载
- 行者讲课脉法下篇.doc VIP
- (人教版)数学一年级上册寒假应用题“天天练”作业设计,含30份题组,附参考答案.doc
- 多参数监护仪技术参数和要求.doc VIP
- HL德國創新機能家電烤箱HL-840用户手册.pdf
- (高清!)2025年3月29日河北省事业单位联考C类《职测》真题及答案.pdf VIP
- ZORRO遥控器中文说明书.pdf
- 多参数监护仪技术参数.doc VIP
- 05R417-1 室内管道支吊架建筑工程图集 高清.docx VIP
- 2025届安徽省江南十校高三下学期第一次联考(一模)数学试题含答案.pdf VIP
- 三年级上册数学思维训练题30题,拓展孩子思维能力201123.pdf VIP
原创力文档

文档评论(0)