摘 要MP3 是 MPEG1 Layer-3 音频文件的简称。MPEG 音频是普遍应用的音频压缩标准,其中层Ⅲ算法最为复杂,但是压缩比最大,效果也最好,在低码率条件下基本上能达到 CD 的音质效果。但略感遗憾的是除了能够选择歌曲和显示歌名外,绝大部分 MP3 播放器没有如随意弹奏乐曲、乐曲节奏跳动等功能。然而随着人们生活水平不断提高,单片机控制无疑是人们追求目标的手段之一。要为现代人工作、生活提供更好、更方便的服务就需要从单片机方面着手,一切向着数字化控制、智能化控制方向进展。本设计是采纳单片机为核心设计的 MP3 音乐播放器。硬件电路包括中心控制模块、按键模块、显示模块、扬声器播放模块以及彩灯伴奏模块。中心控制模块是以芯片 AT89C52 为主,按键模块由 8 个按键组成,其中 1个键用来实现播放器自动播放及自行弹奏两模式之间的转换,其余 7 个键用作音符的输入或者音乐的播放选择。显示模块采纳 LCD1602 对当前播放的歌曲名称进行显示。彩灯伴奏模块是 LED 通过中心控制模块的控制伴随着音乐节奏闪亮。扬声器播放模块则是由三极管和无源蜂鸣器组成,通过中心控制模块的控制对当前音乐进行的播放。软件程序运用 C 语言编程实现。关键字:MP3 音乐播放器;多功能;单片机;AT89C52ABSTRACT MP3 is short for MPEG1 Layer-3 files. MPEG audio is widely used audio compression standard, including the most complex layer III algorithm but the compression ratio, the effect is the best. In low bit rate conditions basically CD quality sound effects can be achieved.But somewhat regret is in addition to select songs and display the song name, the vast majority of players not as free to play music, the rhythm of music beats, and other functions. However, with the continuous improvement of people's living standards, SCM is one of the means for people to pursue goals. To modern work and life to provide better and more convenient service need to proceed from the SCM, all toward digital control, intelligent control direction.This design is the use of single-chip microcomputer as the core design of the MP3...