现代电子技术
現代電子技術
현대전자기술
MODERN ELECTRONICS TECHNIQUE
2014年
16期
11-13,17
,共4页
何谐%唐大权%张淑廷%陈雪
何諧%唐大權%張淑廷%陳雪
하해%당대권%장숙정%진설
STC12C5A60S2%音乐播放器%FAT32文件系统%程序设计
STC12C5A60S2%音樂播放器%FAT32文件繫統%程序設計
STC12C5A60S2%음악파방기%FAT32문건계통%정서설계
STC12C5A60S2%music player%FAT32 file system%program design
主要介绍一种基于51单片机的音乐播放器的硬件设计方法,并研究在FAT32文件系统下音乐播放器的程序设计。该音乐播放器采用STC12C5A60S2单片机为主控制器,SD卡作为音乐文件的存储介质,VS1003芯片作为解码器。STC12C5A60S2单片机从 SD卡中读取音乐文件,并不断将数据流传送至VS1003解码,最后连接耳机播放,同时STC12C5A60S2连接OLED液晶显示屏实时显示音乐播放信息。实验表明,该音乐播放器连接耳机能流畅播放多种格式的音乐文件。
主要介紹一種基于51單片機的音樂播放器的硬件設計方法,併研究在FAT32文件繫統下音樂播放器的程序設計。該音樂播放器採用STC12C5A60S2單片機為主控製器,SD卡作為音樂文件的存儲介質,VS1003芯片作為解碼器。STC12C5A60S2單片機從 SD卡中讀取音樂文件,併不斷將數據流傳送至VS1003解碼,最後連接耳機播放,同時STC12C5A60S2連接OLED液晶顯示屏實時顯示音樂播放信息。實驗錶明,該音樂播放器連接耳機能流暢播放多種格式的音樂文件。
주요개소일충기우51단편궤적음악파방기적경건설계방법,병연구재FAT32문건계통하음악파방기적정서설계。해음악파방기채용STC12C5A60S2단편궤위주공제기,SD잡작위음악문건적존저개질,VS1003심편작위해마기。STC12C5A60S2단편궤종 SD잡중독취음악문건,병불단장수거류전송지VS1003해마,최후련접이궤파방,동시STC12C5A60S2련접OLED액정현시병실시현시음악파방신식。실험표명,해음악파방기련접이궤능류창파방다충격식적음악문건。
The hardware design method of the music player based on MCU STC12C5A60S2 is introduced in this paper. The program design of the music player based on principle of FAT32 file system is studied. In the music player, MCU STC12C5A60S2 is taken as a main controller,SD card as a memory medium of music files and VS1003 chip as a decoder unit. When the player is running,MCU STC12C5A60S2 reads the music file from the SD card and continuously transfers data flow to VS1003 for decoding. In the meantime,the OLED liquid crystal display shows the message of the music in real time. The tested results from experiments show the music player can play the music files in multiple formats fluently if the player is connected with ear phone.