文档介绍:毕业设计(论文)
题目: 单片机音乐盒
学院: 电子信息学院
专业班级: 自动化
指导教师: 职称: 副教授
学生姓名:
学号:
摘要
随着人类社会的发展,人们对视觉、听觉方面的享受提出了越来越高的要求。小小的音乐盒可以给人们带来美好的回忆,提高人们的精神文化享受。传统音乐盒多是机械型的,体积笨重,发音单调,不能实现批量生产。本文设计的音乐盒是以AT89C52单片机为核心元件的电子式音乐盒,体积小,重量轻,能演奏音乐,功能多,使用方便,本音乐盒有四个按键,复位键、key1、key2、key3分别播放第一首第二首第三首。
本文设计了一种基于单片机STC89C51,下载电路, LM386音频放大电路等,利用摁键控制歌曲的播放。单片机音乐盒主要由下载电路、、单片机控制电路、显示电路、386音频放大电路和安全保护电路构成,设计合理、简单易懂、价格低廉,使单片机在播放歌曲的时候得到充分应用,具有一定的实用价值。
论文主要针单片机的各个组成部分及功能进行了详细的介绍和说明,并对其如何将乐谱转换成代码,以及硬件仿真等进行了重点的分析和论述。
关键词:音乐盒,单片机,数码管
ABSTRACT
Along with the development of human society, people of vision, hearing things put forward higher request. Small music box can bring good memories and improve people's spiritual culture. Traditional music box is heavy mechanical type, size, pronunciation and drab, cannot achieve batch production. Music box designed in this paper based on AT89C51 microcontroller as the core element of electronic music box, small size, light weight, can play music. Multiple functions, easy to use, the music box has four buttons, the reset button, key1, key2, Key3 respectively play the first second first third first.
This paper describes the design of a circuit based on single chip puter STC89C51, download, LM386 audio amplifier circuit, the press key control songs. SCM music box is posed of a circuit, download, MCU control circuit, display circuit, the 386 audio amplifying circuit and the protection circuit, reasonable design, simple, low price, make SCM applied fully in playing the song, it has the certain practical value.
The thesis mainly needle ponent and function are introduced here in detail, and the how the music into the code, as well as the hardware simulation are analyzed and discussed.
KEYWORDS: Music Box,Single-chip,LED
摘要页码为罗马字符表示居中Times New Roman 五号
目录
摘要 I
ABSTRACT II
目录 I
第1章绪言 1
1
2
2
第2章音乐盒的发音原理 3
3
3
6
简谱怎样表示音的长短 7
附点音符 8
9
第3章硬件设计 11
CPU介绍 11
LM3