单片机课程设计(论文)-电子音乐盒的单片机设计

上传人:jiups****uk12 文档编号:52749165 上传时间:2018-08-25 格式:DOC 页数:38 大小:366.50KB
返回 下载 相关 举报
单片机课程设计(论文)-电子音乐盒的单片机设计_第1页
第1页 / 共38页
单片机课程设计(论文)-电子音乐盒的单片机设计_第2页
第2页 / 共38页
单片机课程设计(论文)-电子音乐盒的单片机设计_第3页
第3页 / 共38页
单片机课程设计(论文)-电子音乐盒的单片机设计_第4页
第4页 / 共38页
单片机课程设计(论文)-电子音乐盒的单片机设计_第5页
第5页 / 共38页
点击查看更多>>
资源描述

《单片机课程设计(论文)-电子音乐盒的单片机设计》由会员分享,可在线阅读,更多相关《单片机课程设计(论文)-电子音乐盒的单片机设计(38页珍藏版)》请在金锄头文库上搜索。

1、单片机课程设计论文题 目 FSY 电子音乐盒的单片机设计 学 院 通信与电子工程学院 专业班级 电子 083 学生姓名 指导教师 王发智 2011 年 12 月 11 日单片机课程设计论文I摘 要为了实现单片机控制音乐播放,此次毕业设计做出了尝试,即电子音乐盒的设计。本设计采用了蜂鸣器发声来实现歌曲的播放,能保持基本音调不变,流畅播放出歌曲。现选用 AT89S51 单片机。主要设计模块包括数码管显示部分,功能键盘部分,蜂鸣器发声部分,彩灯部分。数码管采用共阳极数码管,通过单片机P1 口控制,实现歌曲序号的显示;功能键盘采用按键开关,通过单片机P3 口控制,实现歌曲播放顺序的调换和暂停播放功能;

2、蜂鸣器由单片机的 P2 口控制,实现歌曲播放;彩灯是由普通发光二极管代替,能实现单色长亮和闪烁效果。主要工作过程是通过按下功能键实现上一首和下一首及暂停播放,同时有数码管显示当前播放歌曲的序号,蜂鸣器播放出音乐,当播放最后一首夜曲时还伴有彩灯闪烁。此次设计要利用单片机及 KeilC51 编程软件编程和 PROTEUS 单片机仿真软件和电子电工等方面知识,用 KeilC51 编程软件编程,用 PROTEUS 单片机仿真软件仿真。最后制作实物,将程序下载到单片机中,利用 I/O 口产生一定频率的方波,驱动蜂鸣器,发出不同的音调,从而演奏乐曲。 关键词关键词:AT89S51 单片机 方波 音调单片机

3、课程设计论文IIAbstractIn order to achieve single-chip control music playback,The design made an attempt to,That the design of electronic music box,This design uses a buzzer sound to achieve the song playing, can maintain the same basic tone, smooth playback of songs. AT89S51 microcontroller is used. Major

4、 design modules include digital display part, function keyboard parts, some of the buzzer sound, lights parts. Using common anode LED digital tube, through the P1 port control chip to realize the song number display; function keyboard with key switch, controlled by microcontroller port P3, playing s

5、ongs in order to achieve the exchange and pause functions; buzzer by the microcontroller P2 port control, to achieve the song playing; lights are replaced by the ordinary light-emitting diodes, to achieve long light and color flashing effect.Main work process is achieved by pressing the function key

6、 and the next one on the head, and a pause, while a digital display serial number of the currently playing song, buzzer playing the music, when played with the last one Nocturne Shihai lightsTo take advantage of the chip design and software programming and programming KeilC51 PROTEUS microcontroller

7、 simulation software such as electrical and electronics knowledge, with KeilC51 programming software programming, microcontroller simulation software with the PROTEUS simulation. Finally, the physical production, the program to the microcontroller, the use of I / O ports have a certain frequency squ

8、are wave to drive the buzzer, to issue a different tone to play music. Keywords:AT89S51 microcontroller square wave tone单片机课程设计论文III目 录摘 要 IAbstractII第 1 章 绪论11.1 概述1第 2 章 音乐盒总体设计22.1 设计功能要求22.2 总体设计原理 22.3 总体设计框图3第 3 章 芯片的选择和介绍43.1 MCS-51 系列单片机简介43.2 单片机的选择43.2.1 AT89S51 芯片介绍5第 4 章 系统的硬件设计84.1 电源电路84.2 单片机最小系统84.3 数码管显示部分94.4 键盘部分34.4.1 按键开关34.4.2 轻触开关34.5 蜂鸣器部分3第 5 章 系统软件设计135.1 软件系统介绍135.2 编程语言的选择

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号