辽宁工业大学毕业论文(汤晓明) - 图文

发布时间 : 星期六 文章辽宁工业大学毕业论文(汤晓明) - 图文更新完毕开始阅读

专科生毕业设计(论文)

摘 要

随着社会的发展进步,音乐逐渐成为我们生活中很重要的一部分,有人曾说喜欢音乐的人不会向恶。我们都会抽空欣赏世界名曲,作为对精神的洗礼。本论文设计一个基于单片机的简易电子琴。我们对于电子琴如何实现其功能,如音色选择、声音强弱控制、节拍器、自动放音功能等等也很好奇。

电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐扮演着重要的角色,单片机具有强大的控制功能和灵活的编程实现特性,它已经融入现代人们的生活中,成为不可替代的一部分。本文的主要内容是用AT89C51单片机为核心控制元件,设计一个电子琴。以单片机作为主控核心,与键盘、扬声器等模块组成核心主控制模块,在主控模块上设有16个按键和扬声器。本系统运行稳定,其优点是硬件电路简单,软件功能完善,控制系统可靠,性价比较高等,具有一定的实用和参考价值。

关键词:AT89C51;电子琴;音频功率放大器;发光二极管

I

专科生毕业设计(论文)

Abstract

With the development and progress of society,music has become an important part of life,it was said that people do not like the music to the evil.We will find time to enjoy the world music,as the baptism of the spirit.This thesis developed a simple microncontroller-based electronic key board.

Electronic organ is a modern electronic music technology and the product is a new type of keyboard instruments.It played and important role in modern music.SCM has powerful control functions and flexible proguamming characteristics.It has converged with modern people’s lives, become an irreplaceable part.The main content is AT89C51 control of the core components,design of a electronic organ.SCM as a host to the core,with the keyboard,speaker and other core modules.In the main control module has 16 keys and a speaker.The system is steady,its simple hardware circuits,software functions,reliability of control system and high cost performance is its advantages.It also has certain practical and reference value.

Key words:AT89C51 single-chip;electric piano;LM386;LED

II

专科生毕业设计(论文)

目 录

第1章 绪 论 .......................................................................................................... 1

1.1 题目的来源与开发意义 ........................................................................... 1 1.2 系统功能概述 ........................................................................................... 2 第2章 总体方案提出与论证硬件 ........................................................................ 4 第3章 硬件的设计 ................................................................................................ 5

3.1 硬件的构成 ............................................................................................... 5

3.1.1 AT89C51单片机 ............................................................................. 5 3.1.2 芯片的擦除 .................................................................................... 8 3.1.3 功放LM386 ................................................................................. 10 3.1.4 LCD硬件接口 .............................................................................. 12 3.1.5 4×4行列式键盘识别及显示 ........................................................ 12 3.1.6 时钟频率 ...................................................................................... 13 3.1.7 晶振电路原理 .............................................................................. 14 3.1.8 复位电路 ...................................................................................... 14 3.1.9 输入输出(I/O)引脚 ................................................................. 15 3.2 硬件框图 ................................................................................................. 16 第4章 软件的设计 .............................................................................................. 18

4.1 设计原理 ................................................................................................. 18

4.1.1 音乐知识 ...................................................................................... 18 4.1.2 播放原理 ...................................................................................... 18 4.2 按键识别 ................................................................................................. 18 4.3 LED数码管显示原理 .............................................................................. 19 4.4 音乐产生原理 ......................................................................................... 20 4.5 按键功能识别 ......................................................................................... 22 4.6 音符产生方法 ......................................................................................... 22 4.7 播放功能软件原理 ................................................................................. 23 第5章 系统调式与仿真 ...................................................................................... 26

5.1 Keil简介 ................................................................................................... 26 5.2 Keil C51开发系统基本知识 ................................................................... 26

5.2.1 系统概述 ...................................................................................... 26

III

专科生毕业设计(论文)

5.2.2 Keil C51单片机软件开发系统的整体结构 ................................ 27 5.3 编程Keil uVision软件 ........................................................................... 27 5.4 Professional 7软件的介绍 ....................................................................... 29 5.5 程序代码 ................................................................................................. 31 第6章 系统的调试 .............................................................................................. 35

6.1 系统硬件调试 ......................................................................................... 35 6.2 系统软件调试 ......................................................................................... 35 第7章 结 论 ........................................................................................................ 36 参考文献 ................................................................................................................ 37 致 谢 ...................................................................................................................... 38

IV

联系合同范文客服:xxxxx#qq.com(#替换为@)