基于单片机的MP3设计与实现

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

西安航空学院

本科毕业设计(论文)题目:基于单片机的MP3设计与实现

学院:计算机工程学院

专业:计算机科学与技术

学号: *************

学生姓名:***

指导教师:**

2017年05月22日

基于单片机的MP3设计与实现

摘要:本课题研究的是基于单片机的MP3设计,随着电子技术应用的不断发展与完善,数字媒体设备的发展也进入一个新的领域,人们对媒体设备的需求与要求也随着科技的进步发生了巨大的改变。因此,将拓展灵活、功能强大的单片机应用于MP3音乐播放器在满足消费者的需求,为数字媒体设备更新换代提供新思路等方面有着重大的意义与价值。

首先,单片机是一种集成电路芯片,选用超大规模技术将具备数据处理(中断处理、算术运算、数据运算、逻辑运算)能力的微处理器以及RAM 随机存储器,ROM只读存储器,数据IO系统和中断系统,定时器等;将这些功能在一块单块芯片上实现,构成一个虽然小但是功能完全的最小系统。因为其扩展灵活、控制功能强、功耗低、体积小等优点,在数字化仪表、工业自动化、智能机器人、计算机网络通信与数据传输等领域有着极为广泛的应用。音乐播放器通常由中央处理器、音频解码模块、存储设备、主机通讯接口模块、DA转换和功放、控制模块、界面显示模块等几部分组成。其中中央处理器负责对各模块的调度,音频解码模块负责将音乐文件的数字信号转化为模拟信号,以便通过功放设备的播放被人耳接听;存储设备作为音乐文件的载体在音乐播放时将文件送到解码芯片;控制模块通过按键的方式实现对音乐文件上一首、下一首、播放暂停、音量加、音量减的控制。鉴于单片机强大的拓展功能,将单片机与MP3音乐播放器结合起来开发一款基于单片机的MP3音乐播放器。该单片机音乐播放器相比较于传统的MP3音乐播放器,在实现了原有功能的基础之上,还具有更为强大的拓展功能。

经过对多个方案的对比和分析,本设计方案决定采用ATMEL公司的生产的STC89C51RC芯片作为中央处理器控制芯片,YX5200-24SS芯片作为音频解码芯片。51芯片通过软件控制对接入的各个模块的调度,来保证系统的正常运行。音频解码芯片通过对U盘数据的读取和解码,通过D\A转换和功放电路实现对数字信号的解码播放功能。

本论文围绕设计思想,详细的介绍了MP3音乐播放器的国内外研究现状、MP3音乐播放器的工作原理、MP3格式音乐文件的编码及解码过程与原理、本设计的硬件电路设计、软件设计、以及所用芯片的功能和参数。并给出了一套完备的解决方案,最终完成了了MP3音乐播放器的一般播放功能。

关键词:STC89C51;MP3;YX5200

Design and Realization of MP3music Player Based on 89C51

Abstract:This topic research is based on single chip microcomputer MP3 design, with the continuous development of electronic technology and the improvement of the development of digital media devices are also entering a new field, people's demand for media devices and requirements with the progress of science and technology also great changes have taken place.Therefore, develop flexible and powerful single-chip microcomputer was applied to MP3 music player to meet consumer demand, provide new ideas for digital media equipment upgrades and so on is of great significance and value.

First of all, the single chip microcomputer is a kind of integrated circuit chips, the vlsi technology will have data processing (interrupt handling, arithmetic operations, data operation and logical operations) capability of microprocessor and RAM random access memory, read-only memory ROM, interrupt system and the IO, timer function such as integrated into a single chip, the minimum system constitutes a small and perfect.Because of its flexible extension, strong control function, the advantages of low power consumption, small volume, in the digital instrumentation, industrial automation, intelligent robot, computer network communication and data transmission, and other fields has been widely used.Music player is usually determined by the central processor, the audio decoding module, storage devices, the host communication interface module, D/A conversion and power amplifier module, control module, interface, etc.The central processing unit (CPU) is responsible for scheduling of each module, audio decoding module is responsible for the music file digital signals into analog signals, so that through the power amplifier devices play by ear answer;Storage devices as the carrier of music files in the music playing when to send the file to decoding chips;Control module is implemented by means of keys, the poem on the music files, play/pause, volume, volume reduction control.In view of the microcontroller powerful development, combine microcontroller and MP3 music players develop a MP3 music player based on single chip microcomputer.The SCM music player compared to traditional MP3 music player, in achieving the function of the original basis, but also has more powerful development.

Through comparison of several schemes and analysis, this design scheme has decided to adopt the ATMEL company produces STC89C51RC chip as central processor control chip, YX5200-24 ss as audio decoding chip.51 chip by software control to access the various modules of the scheduling, to ensure the normal operation of the system.Audio decoding chip through the U disk data reading and decoding, through D/A conversion and power amplifier circuit to realize the digital signal decoding broadcast function.

Around the design thought, this paper detailed introduces the research status quo of MP3 music player, the working principle of MP3 music player, MP3 music files encoding and decoding process and the principle, the design of hardware circuit design, software design, and function and the parameters of the chip used.And gives a complete solution, implement the normal function of MP3 music player.

Keywords: STC89C51 ;MP3 music player;YX5200

相关文档
最新文档