51 单片机课程设计报告(八音盒)
2010-12-13 22:28:24| 分类: 电子、课程设计类 | 标签:51 单片机 八音盒 程序 |字号大中小 订阅
摘 要
本文设计了一种基于 51 单片机(AT89C52)的八音盒,利用蜂鸣器和 K20—K27 制作了一个八音盒,
置八首乐曲,当按下不同的按键时,奏出不同的乐曲。并且把其他按键当作琴键,可以用它弹奏乐曲。本
设计充分利用 51 单片机定时器的功能,根据 do、re、mi 等音调的频率,利用其产生不同的音调,从而演
奏乐曲。在设计需考虑到歌曲曲谱的解析,令单片机能够解读其含义并工作,并根据演奏出乐曲的效果不
断调整程序,进行优化。
关键词:51 单片机、八音盒、定时器
Abstract
This article introduces a design based on 51 SCM (AT89C52), using the buzzer and buttons as K20 - K27
made a her bed-room, with built-in eight songs。 When pressing different button, it goes out different pieces of
music. And taking the other buttons as keys, we can use it to play music. This design make full use of 51
single-chip microcomputer timer function, according to do, re, mi tones of frequency, we use it to produce
different tone, thus playing music. In the design song analysis should be considered, so the songs can be
understood by SCM and make it work, and according to play music effect constantly adjust procedure, making
optimization.
Keywords:51 SCM、her bed-room、timer
评论10
最新资源