网站大量收购独家精品文档,联系QQ:2885784924

MCS-51-单片机音乐播放器设计.doc

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

单片机音乐播放器设计 摘要 本文将介绍一种以89C51型单片机为基础元件设计的自动音乐播放器。在当今这个科技高速发展的时代,生活节奏的加快,人们长期处于工作、学习压力过大的状态,对于调节心理压力而言音乐对于每一个人都十分重要,由此音乐播放器在国内已经开始普及。校园里的上下课的铃声,宿舍内早晨的起床号声音,都由以前枯燥刺耳的铃音转变成了好听的音乐,公路、广场中的计时装置也逐渐开始采用音乐来充当铃声。此装置不仅为人们日常生活的计时提供了方便,同时也为目前快节奏的生活带来了乐趣。 本文是应用MCS-51单片机原理和控制理论设计音乐演奏控制器的硬件电路,并利用语言进行程序设计。通过控制单片机内部的定时器来产生不同频率的方波,驱动发出不同音调的音乐,再利用延迟来控制发音时间的长短。把乐谱转化成相应的定时常数就可以从发音设备中演奏出悦耳动听的音乐。这种控制电路结构简单,可性高,应用性强;软件程序适应范围广,对于不同的音乐只需要改变相应的定时常数即可。关键词:单片机;;语言 This article introduces a kind of 89C51-based microcontroller-based device designed for automatic music player. In todays era of rapid development of this technology, the accelerated pace of life, the long-in work, learning burden the states case for regulating psychological stress is important for everyone, this music player at home has begun universal. Campus on the class of the ring, get up early morning dormitory No. voices, strident tones by the previous dry transformed into good music, road, square in the timing devices are also beginning to use music as ring tones. This device not only for the timing of daily life and provides a convenient, but also for the current fast-paced life fun. This is the application of MCS-51 SCM principles and control theory, music performance controller hardware and programming using c programming language. By controlling the MCUs internal timer to generate square waves of different frequencies to drive speakers make different musical tones, and then use delay to control the length of pronunciation. The music into the corresponding time constants can be played from the sound equipment out of melodious music. This control circuit is simple, readable, application and strong; software program to adapt to a wide range of different music just for the appropriate time constant change can be. Keyword: Single-chip processor; Music player; C programming language 目 录 1 绪论 1 1.1 概述 1 1.2 单片机的产生和发展 1 1.3 单片机的特点及应用 2 1.3.1 单片机主要特点 2 1.3.2 单片机的应用 3 1.4 系统设计总体方案 3 2 MCS-51单片机的结构与原理 5 2.1 MCS-51单片机的基本结构 5 2.1

文档评论(0)

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

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

1亿VIP精品文档

相关文档