基于51单片机实现的电子琴设计.doc
文本预览下载声明
目 录
摘 要……………………………………………………………………3
Abstract………………………………………………………………3
1绪论…………………….……………………………………………4
1.1背景………………………………………………………………4
1.2目的……………………………………………………………… 4
1.3 意义………………………………………………………………4
1.4基本理论依据和主要工作内容……………………………………4
2 设计方案简述..………………………………………………………6
2.1键盘模块.……………………………………………………………6
2.2发声模块…..………………………………………………………6
2.3 8X8点阵显示模块…………………………………………………6
2.4系统技术指标和预期功能…………………………………………7
3 详细设计………………………………………………………………8
3.1主要IC芯片介绍……………………………………………………8
3.2硬件设计…..………………………………………………………11
4 设计结果及分析………………………………………………………19
4.1 测试…………………………………………………………………19
5总 结 …………………………………………………………………20
参考文献…………………………………………………………………21
附录 主要程序代码……………………………………………………22
摘 要
单片机的应用已经越来越贴近生活,用单片机来实现一些电子设计也变得容易起来。本设计阐述的主要内容是一种基于51 单片机的电子琴的设计,其核心芯片AT89S52 单片机,内部电路包括4X4行列式键盘模块、音频放大模块和8X8LED点阵显示模块,本系统运行稳定,功能较为完善,控制系统可靠,性价比较高等,具有一定的实用价值。
对于那些需要显示的信息量不是很大,分辨率不是很高,又需要制造成本相对比较低的场合,使用大、小屏幕LED点阵显示器是比较经济适用的,他可以显示字符、数字和简单图形,显示亮度较高,并且对环境条件要求比较低。电子乐器的结构较为复杂,音源是由晶体管产生的 电振动,并通过音色回路而产生各种音色;同时由周波数调制产生颤音效果,由振幅调制产生各种乐器的音效。Its applications have become increasingly close to life, with a single chip to achieve a number of electronic design is becoming simpler. The main elements of the design described is based on 51 single-chip, the flower design, the core chip AT89S52 microcontroller Internal circuit including the 4X4 determinant keyboard module, audio amplifier module and 8X8LED dot matrix display module, the system is stable, function better, control system reliability, higher cost and so on, has some practical value. For those who need to display the amount of information is small, resolution is not high, they need to make the occasion a relatively low cost, using large and small screen, LED dot matrix display is more economical, and he can display characters, numbers and simple graphics, display brightness higher and lower demands on the environmental conditions. : The structure of more complex electronic instruments, the source is generated by the transistor electrical vibration, and sound loops ge
显示全部