资源预览内容
第1页 / 共37页
第2页 / 共37页
第3页 / 共37页
第4页 / 共37页
第5页 / 共37页
第6页 / 共37页
第7页 / 共37页
第8页 / 共37页
第9页 / 共37页
第10页 / 共37页
亲,该文档总共37页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
单片机课程设计报告Z10102 YangQingming - 1 -基于单片机的简易电子琴设计基于单片机的简易电子琴设计摘摘 要要电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐扮演着重要的角色,单片机具有强大的控制功能和灵活的编程实现特性,它已经溶入现代人们的生活中,成为不可替代的一部分。本文的主要内容是用 AT89S51 单片机作为核心控制元件,设计一个电子琴。以单片机作为主控核心,与键盘、扬声器等模块组成核心主控制模块,在主控模块上设有 16 个按键和扬声器。本系统运行稳定,其优点是硬件电路简单,软件功能完善,控制系统可靠,性价比较高等,具有一定的实用和参考价值。关键词关键词:单片机 键盘 扬声器 电子琴单片机课程设计报告Z10102 YangQingming - 2 -AbstractAbstractElectronic organ is a modern electronic music technology and the product is a new type of keyboard instruments. It played an important role in modern music. SCM has powerful control functions and flexible programming characteristics. It has converged with modern peoples lives, become an irreplaceable part. The main content is AT89S51 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.KeyKey wordswords : : SCM keyboard speaker electronic organ单片机课程设计报告Z10102 YangQingming - 3 -目目 录录摘 要 .1Abstract .1 目录 .2 1 引言 .3 2 原理图 .4 2.1 系统板硬件连线 .5 3 主要芯片简介 .5 3.1 AT89S51 简介 .5 3.1.1 主要功能特性 .6 3.1.2 引脚功能 .63.2 LM386 .7 3.2.1 LM386 的引脚图 .8 3.2.2 音频放大器电路 .9 3.3 LED 数码管 .9 4 模块原理 .10 4.1 4X4 行列式键盘识别及显示 .10 4.1.1 系统板上硬件连线设计 .10 4.1.2 程序设计内容 .12 图 4-2 行列式键盘电路 .12 4.1.3 I/O 并行口直接驱动 LED 显示 .13 4.1.4 键盘识别程序 .16 4.2 音乐产生的方法 .22 4.2.1 原理 .22 4.2.2 程序框图 .24 4.2.3 源程序: .25 5 结束语 .
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号