【正文】
本科畢業(yè)論文(設(shè)計(jì)、創(chuàng)作) 題 目: 基于 STM32 音樂 MP3 鬧鐘的設(shè)計(jì)與實(shí)現(xiàn) 學(xué)生姓名: 學(xué)號(hào): 所在系院: 專業(yè): 入學(xué)時(shí)間: 年 月 導(dǎo)師姓名: 職稱 /學(xué)位 : 導(dǎo)師所在單位: 完成時(shí)間: 年 月 1 基于 STM32 音樂 MP3 鬧鐘的設(shè)計(jì)與實(shí)現(xiàn) 摘要 : 改革開放以來,中國迅速崛起,各種電子產(chǎn)品層出不窮,人們對(duì)電子產(chǎn)品的要求也越來越高。本設(shè)計(jì)采用 ARM CortexM3 內(nèi)核的 STM32F103ZE 作為微控器,選用開發(fā)板的 SRAMamp。Flash 模塊, SD 卡, LCD 液晶顯示屏模塊, Codec 音頻模塊等,以及移植 FATFS 文件系統(tǒng),目的是 存儲(chǔ) SD卡中的大數(shù)據(jù)文件和 管理 SD卡中的文件。本設(shè)計(jì)還移植了 UCOSII 操作系統(tǒng),任務(wù)的實(shí)時(shí)調(diào)度使得程序變得更加簡單,運(yùn)行環(huán)境也更加的穩(wěn)定。另外,加入 MP3軟解碼,使得系統(tǒng)能夠識(shí)別MP3格式,正確播放出音樂。本系統(tǒng)設(shè)計(jì)并實(shí)現(xiàn)了集音樂播放,時(shí)間顯示,時(shí)間設(shè)置為一體的音樂鬧鐘,解決了鬧鐘鈴聲單調(diào),重復(fù)的苦惱。 關(guān)鍵詞: STM32; MP3;鬧鐘, UCOSII; FATFS; SD 卡 2 Design and implementation of STM32 MP3 based on the alarm clock music Abstract: Since the reform and opening up, China39。s rapid rise, all kinds of electronic products emerge in endlessly, people also more and more high to the requirement of electronic design USES the ARM architecture (M3 kernel STM32F103ZE as a micro control unit, choose development board SRAMamp。Flash module, SD card, LCD liquid crystal display module, audio Codec module, etc, and transplanted FATFS file system, the purpose is to store large data files in SD card, and manage the files of SD design also transplant UCOSII operating system, the task of realtime scheduling makes the program more simple and running environment is also more addition, add soft decode MP3, enables the system to identify MP3 format, right plays system was designed and implemented the collection of music playback, time display, time setting for the integration of music alarm clock, solved the alarm sound monotonous, repetitive. Keywords : STM32, MP3, UCOSII, FATFS , SD card I 目錄 第一章 緒論 ................................................................................................................... 1 設(shè)計(jì)背景 .......................................................................................................... 1 第二章 硬件介紹 ............................................................................................................. 2 STM32F103ZE..................................................................................................... 2 按鍵模塊 .......................................................................................................... 3 I/O 模塊 .......................................................................................................... 3 存儲(chǔ)模塊設(shè)計(jì) ..................................................................................................... 4 LCD 液晶屏模塊 .............................................................................................. 5 Codec 音頻模塊 .............................................................................................. 7 USART 串口模塊 .............................................................................................. 8 第三章 系統(tǒng)軟件設(shè)計(jì) ...................................................................................................... 9 文件系統(tǒng) FAT .................................................................................................... 9 SPI 驅(qū)動(dòng) ......................................................................................................... 10 SD 卡的軟件設(shè)計(jì) ............................................................................................ 11 MP3 軟解碼 ................................................................................................... 12 方案選擇 ............................................................................................... 12 Helix MP3 解碼器 .............................................................................. 12 時(shí) 鐘 ........................................................................................................... 12 實(shí)現(xiàn)的基本功能 ................................................................................... 12 固件庫的使用 ............................................................................................... 13 嵌入式操作系統(tǒng) UCOSII .................................................................................. 14 第四章 系統(tǒng)測試與開發(fā) .........................................................