基于单片机的简易电子琴设计摘 要电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐扮演着重要的角色,单片机具有强大的控制功能和灵活的编程实现特性,它已经溶入现代人们的生活中,成为不可替代的一部分。本文的主要内容是用AT89S51单片机作为核心控制元件,设计一个电子琴。以单片机作为主控核心,与键盘、扬声器等模块组成核心主控制模块,在主控模块上设有16 个按键和扬声器。本系统运行稳定,其优点是硬件电路简单,软件功能完善,控制系统可靠,性价比较高等,具有一定的实用和参考价值。关键词 :单片机键盘 扬声器 电子琴Abstract Electronic 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 people's 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. Key words : SCM keyboard speaker electronic organ 目录摘 要Abstract目录1 引言2 原理图2.1 系统板硬件连线3 主要芯片简介3.1 AT89S51 简介3.1.1 主要功能特性3.1.2 引脚功能3.2 LM3863.2.1 LM386 的引脚图3.2.2 音频放大器电路3.3 LED 数码管4 模块原理4.1 4X4 行列式键盘识别及显示4.1.1 系统板上硬件连线设计4.1.2 程序设计内容图 4-2 行列式键盘电路4.1.3 I/O并行口直接驱动 LED显示4.1.4 键盘识别程序4.2 音乐产生的方法4.2.1 原理4.2.2 程序框图4.2.3 源程序:5 结束语致 谢参考文献1 引言单片微型计算机是大规模集成电路技术发展的产物,属第四代电子计算机,它具有高性能、高速度、体积小、价格低廉、稳定可靠、...