1、 课程设计(论文)说明书 题 目:基于单片机的电子琴设计基于单片机的电子琴设计 院 (系) :信息与通信学院 专 业:微电子学 学生姓名: 学 号: 指导教师: 职 称:副教授 2012 年 12 月 10 日 摘 要 随着社会的发展进步,音乐逐渐成为我们生活中很重要的一部分,有人曾说喜欢音 乐的人不会向恶。我们都会抽空欣赏世界名曲,作为对精神的洗礼。本论文设计一个基 于单片机的简易电子琴。我们对于电子琴如何实现其功能,如声音强弱控制、节拍器、 自动放音功能等等也很好奇。 电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐 扮演着重要的角色,单片机具有强大的控制功能和灵活
2、的编程实现特性,它已经溶入现 代人们的生活中,成为不可替代的一部分。本文的主要内容是用 AT89S52 单片机为核 心控制元件,设计一个电子琴。以单片机作为主控核心,与键盘、扬声器等模块组成核 心主控制模块,在主控模块上设有 16 个按键和扬声器。本系统运行稳定,其优点是硬 件电路简单,软件功能完善,控制系统可靠,性价比较高等,具有一定的实用和参考价 值。 关键词:AT89S52 单片机;键盘;扬声器;自动放音 Abstract With the development and progress of the society, the music has become a very impor
3、tant part of our lives, someone once said that people do not like the music to the evil. We will be taking the time to enjoy the world famous, as the baptism of the spirit. This paper designed a simple microcontroller-based keyboard. How to achieve its function for the keyboard, such as the sound in
4、tensity control, metronome, automatic playback function is also very curious. The keyboard is a product of modern electronic technology combined with music, is a new type of keyboard instruments. In modern music, it plays an important role, the microcontroller has a powerful control functions and flexible programming features, it has become an irreplaceable part of the integration into the life of modern people. The main content of this paper is t