下载此文档

基于单片机的可控数字音乐盒设计 本科生毕业设计(论文).doc


文档分类:通信/电子 | 页数:约38页 举报非法文档有奖
1/38
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/38 下载此文档
文档列表 文档介绍
毕业设计基于 51 单片机的可控数字音乐盒设计摘要本文是一篇基于 AT89C51 单片机的可控数字音乐盒的程序设计。该音乐盒是一个依据单片机技术原理,通过 PROTEUS 仿真软件对硬件电路进行仿真制作以及利用 KEIL 软件对音乐盒源程序进行 C语言编译,而设计制作出的一个多功能数字音乐盒。该音乐盒通过控制单片机内部的定时器来产生不同频率的方波,驱动喇叭发出不同音调的音乐。该程序通过把乐谱转化成相应的定时常数来驱动发音设备演奏出悦耳动听的音乐。本音乐盒一共设计了五首歌曲,同时还设计了三种 LED 彩灯的变化花样。在演奏歌曲时彩灯随音调闪烁。在停止演奏歌曲时三种彩灯花样开始闪烁。歌曲和花样均可随意切换。与此同时,数码管也不断变化数字,以此显示歌曲和彩灯花样的序号。关键词: 数字音乐盒; AT89C51 ;KEIL ;PROTEUS ;数码管 THE DESIGNATION OF CONTROLLABLE DIGITAL MUSIC BOX B ASED ON 51 SCM A BSTRACT 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 puter (SCM), together with using the PROTEUS to simulate the hardware circuit and using KEIL to programme the source of music box which piled 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 stop ped playing , the colorful lights start to flash with three changeable patterns. The songs and pattern s can be free to switch. At the same time, the digital tube is also constantly chang ing figures to show the serial number of the songs and the patterns of the colorful lights. Key words: Di gital music box; AT89C51; KEIL; PROTEUS; Digital tube 目录 1 前言------------------------------------------------------------------------------------------------------ 1 2 单片机和音乐盒硬件的功能------------------------------------------------------------------------ 2 AT89C51 芯片的功能-------------------------------------------------------

基于单片机的可控数字音乐盒设计 本科生毕业设计(论文) 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数38
  • 收藏数0 收藏
  • 顶次数0
  • 上传人Alphago
  • 文件大小0 KB
  • 时间2016-04-15