基于电子琴的设计.doc
文本预览下载声明
二十一音电子琴的设计
学院名称: 电气信息工程学院
专 业: 电气工程及其自动化
班 级: 04电气2
姓 名: 叶 浩
指导教师姓名: 陈 连 玉
指导教师职称: 讲 师
2008年 6 月
二十音电子琴的设计
摘要:本次设计提出了用89C51单片机为核心控制元件,设计一个简易的电子琴. 本方案以AT89C51单片机作为主控核心,与键盘、扬声器等模块组成核心主控制模块在主控模块上设有21个按键和扬声器.根据使用者的操作随意弹奏想要表达的音乐。一首音乐是许多不同的音阶组成的,而每个音阶对应着不同的频率,这样我们就可以利用不同的频率的组合,即可构成我们所想要的音乐了,当然对于单片机来产生不同的频率非常方便,我们可以利用单片机的定时/计数器T0来产生这样方波频率信号,因此,我们只要把一首歌曲的音阶对应频率关系弄正确即可[1]。 关键词:单片机;按键;扬声器;音阶
The design of the 21 keys’ flower
Abstract : The design of the 89C51 used as the core control components.Design of a simple flower. The program to AT89C51 as controlling core, and the keyboard loudspeakers core modules in the main control module on the main control module has 21 keys and speakers. According to users of the parade want to play for free expression in music. Music is one of many components of different scales, each scale corresponds to different frequencies. This way we can use a different frequency combinations, which may constitute what we want music. Of course microcontroller to generate different frequencies very convenient. We can use SCM timer / counter T0 to create square wave frequency signals, therefore. As long as we put a song of the tune the frequency response relationship can get correct. Keywords : microcontroller; buttons; speakers; chromatic
目 录
序言..........................................................5
第一章 单片机概述与AT89C51芯片概述
1.1 单片机简介 ..........................................................6
1.2 AT89C51单片机 ......................................................6
1.2.1 AT89C51单片机简介 ................................................7
1.2.2 AT89C51单片机引脚说明.............................................81.2.3 AT89C51单片机主要特性...........................................11
1.2.4 AT89C51 芯片内部资源 .....................................
显示全部