电子音乐盒的单片机设计论文.doc

  1. 1、本文档共50页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
电子音乐盒的单片机设计论文

摘 要 为了实现单片机控制音乐播放,此次毕业设计做出了尝试,即电子音乐盒的设计。本设计采用了蜂鸣器发声来实现歌曲的播放,能保持基本音调不变,流畅播放出歌曲。现选用AT89S51单片机。 主要设计模块包括数码管显示部分,功能键盘部分,蜂鸣器发声部分,彩灯部分。数码管采用共阳极数码管,通过单片机P1口控制,实现歌曲序号的显示;功能键盘采用按键开关,通过单片机P3口控制,实现歌曲播放顺序的调换和暂停播放功能;蜂鸣器由单片机的P2口控制,实现歌曲播放;彩灯是由普通发光二极管代替,能实现单色长亮和闪烁效果。 主要工作过程是通过按下功能键实现上一首和下一首及暂停播放,同时有数码管显示当前播放歌曲的序号,蜂鸣器播放出音乐,当播放最后一首夜曲时还伴有彩灯闪烁。 此次设计要利用单片机及KeilC51编程软件编程和PROTEUS单片机仿真软件和电子电工等方面知识,用KeilC51编程软件编程,用PROTEUS单片机仿真软件仿真。最后制作实物,将程序下载到单片机中,利用I/O口产生一定频率的方波,驱动蜂鸣器,发出不同的音调,从而演奏乐曲。 关键词:AT89S51单片机;方波; 音调 Abstract In order to achieve single-chip microcomputer to control music player, I made the graduation project to try, that is, the design of electronic music box. I used to achieve audible buzzer songs to play, to maintain the same basic tone, smooth playback of songs. Single-chip AT89S51 is optional. The main design module includes a digital display of the keyboard function of the audible buzzer of some lantern.LED digital tube using a total of anode, through the P1 port single-chip control, the realization of the show the serial number songs; functions using the keyboard button switches, single-chip P3 through population control, to achieve the change the order of songs to play and pause functions; buzz P2 is controlled by MCU port control, the realization of music playback; lantern is to replace ordinary light-emitting diodes, to achieve long-monochromatic light and scintillation effects. The main process is to achieve by pressing function keys on the first one and the next, and suspension of play, while the digital display the serial number of the currently playing song, the music player buzzer, when the player when the final with a Nocturne lantern flashing. The use of single-chip design and programming software KeilC51 programming and simulation software PROTEUS single chip , such as electrical and electronic knowledge, with KeilC51 programming software programming, and simulation software PROTEUS single-chip simulation. Finally, the production in kind, will

您可能关注的文档

文档评论(0)

pangzilva + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档