首页 | 本学科首页   官方微博 | 高级检索  
     

基于单片机的简易电子琴的设计与实现
引用本文:章丹.基于单片机的简易电子琴的设计与实现[J].数字社区&智能家居,2014(5):3179-3181.
作者姓名:章丹
作者单位:合肥学院,安徽合肥230601
摘    要:电子琴是现代电子科技与音乐结合的产物,是一种新型的键盘乐器。它在现代音乐扮演重要的角色,单片机具有强大的控制功能和灵活的编程实现特性,它已经溶入现代人们的生活中,成为不可替代的一部分。该文的主要内容是用8253芯片为核心控制元件,设计一个简易电子琴。通过按动STAR ES598PCI单板机的G6区的1~7号键,使用单板机上的8255A芯片进行音调的选择,由8253芯片控制产生不同频率的方波,输出到单板机上D1区的蜂鸣器,使其对应于G6区的1~7号键由低到高发出1~7的音阶,并由8255A芯片控制8253芯片的工作状态,使其能够控制蜂鸣器的发声与否,从而实现简易电子琴的演奏功能。同时,也可以通过事先设置好的“乐谱”回放一段音乐,实现简易电子琴的回放功能以及对用户演奏过的一段音乐进行重放功能。用户可以通过DOS界面下的菜单对电子琴的回放和重放或是演奏功能进行选择。

关 键 词:电子琴  单片机  8253芯片

Design and Implementation of Simple Microcontroller Based Keyboard
ZHANG Dan.Design and Implementation of Simple Microcontroller Based Keyboard[J].Digital Community & Smart Home,2014(5):3179-3181.
Authors:ZHANG Dan
Affiliation:ZHANG Dan (Hefei University, Hefei 230601, China)
Abstract:The keyboard is a combination of modern electronic music technology and the product is a new type of keyboard in-strument. It plays an important role in modern music , SCM has a powerful control functions and flexible programming features, it has been integrated into the modern people's lives , become an irreplaceable part . The main content of this paper is to use 8253 as the core control elements , the design of a simple flower . By pressing the number keys 1-7 STAR ES598PCI SBC G6 zone , 8255A chips on a single board computer for tone selection control 8253 generates a square wave of different frequencies , the output of the SBC to bee region D1 buzzer to make it correspond to the G6 District No. 1 to 7 keys issued from low to high scale of 1 to 7 , 8253 by the 8255A chip to control the working status of the chip so that it can control the buzzer sound or not, thus achieve simple keyboard playing capabilities. Meanwhile , you can also pre-set"score"a piece of music playback , playback achieve simple keyboard and the user had to play a piece of music for playback function. DOS user interface via the menu next to the keyboard to play or replay and replay function selection.
Keywords:Keyboard  SCM  8253
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号