1、 本科学生毕业论文(设计)本科学生毕业论文(设计) 题目 基于 AT89C51 单片机的音乐盒设计 系别 电子信息系 专业 电子信息工程 学生姓名 学号 指导教师 职称 完成日期 2010 年 12 月 29 日 论文题目 基于基于 AT89C51AT89C51 的单片机的音乐盒的设计的单片机的音乐盒的设计 摘 要:为了实现单片机控制音乐播放,此次课程设计做出了尝试,即电子音 乐盒的设计。 本设计采用了扬声器发声来实现歌曲的播放, 能保持基本音调不变, 流畅播放出歌曲。现选用 AT89C51 单片机。用 PROTEUS 单片机仿真软件仿真。利 用 I/O 口产生一定频率的方波,驱动蜂鸣器,发出
2、不同的音调,从而演奏乐曲。 通过单片机 P1 口控制,实现功能键盘控制;功能键盘采用按键开关,通过单片 机 P2 口控制,实现歌曲播放顺序的调换和暂停播放功能;扬声器由单片机的 P3 口控制,实现歌曲播放;主要工作过程是通过按下功能键实现上一首和下一首及 暂停播放,同时有液晶屏显示当前播放歌曲的序号,扬声器播放出音乐。 关键词: AT89C51 单片机;方波; 音调 英文题目 The design of musicbox base on AT89C51 作者:Ni Fangsheng、系别:Department Of Electronic Information Abstract:In ord
3、er to achieve single-chip microcomputer to control music player, I made the project to try, that is, the design of electronic music box. I used to achieve audible speaker songs to play, to maintain the same basic tone,smooth playback of songs. Single-chip AT89C51 is optional. with simulation softwar
4、e PROTEUS single-chip simulation. The use of I / O I have a certain frequency square wave to drive the speaker, the issue of different tones, which play music. through the P1 port single-chip control functions; functions using the keyboard button switches, single-chip P2 through population control, to achieve the change the order of songs to play and pause functions; buzz P3 is controlled by MCU