基于AT89C51单片机的电子琴设计.doc

  1. 1、本文档共43页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要 随着社会的发展进步,音乐逐渐成为我们生活中很重要的一部分,有人曾说喜欢音乐的人不会向恶。我们都会抽空欣赏世界名曲,作为对精神的洗礼。本论文设计一个基于单片机的简易电子琴。我们对于电子琴如何实现其功能,如音色选择、声音强弱控制、节拍器、自动放音功能等等也很好奇。 电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐扮演着重要的角色,单片机具有强大的控制功能和灵活的编程实现特性,它已经融入现代人们的生活中,成为不可替代的一部分。本文的主要内容是用AT89C51单片机为核心控制元件,设计一个电子琴。以单片机作为主控核心,与键盘、扬声器等模块组成核心主控制模块,在主控模块上设有16个按键和扬声器。本系统运行稳定,其优点是硬件电路简单,软件功能完善,控制系统可靠,性价比较高等,具有一定的实用和参考价值。 关键词:AT89C51;电子琴;音频功率放大器;发光二极管 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 目 录 第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 5.2.2 Keil C51单片机软件开发系统的整体结构 27 5.3 编程Keil uVision软件 27 5.4 Professi

文档评论(0)

***** + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档