【正文】
完成了以下幾個方面的 工作: ( 1) 首先對課題的背景,課題研究的現(xiàn)實意義進行深入的研究和可行性的分析。 ( 3)對 STC12C5A60S2 單片機 和 VS1003 解碼芯片等元器件進行了了解 。 ( 5) 對系統(tǒng)的調(diào)試進行了剖析 , 一步步 優(yōu)化軟件 的 設(shè)計, 最終 完成 對 軟件的編寫。 本 MP3 播放器可以通過單片機對 SD 卡中數(shù)據(jù)的讀取,再通過 VS1003 解碼芯片輸出音頻信號,能實現(xiàn)音樂播放的功能,還可以通過按鍵的控制來實現(xiàn)對歌曲的切換、開始與暫停和音量加減等功能 沈陽理工大學(xué)學(xué)士學(xué)位論文 24 致謝 轉(zhuǎn)眼間, 四年的大學(xué)生活就要結(jié)束了, 持續(xù)半年 時間 的 畢業(yè)設(shè)計 也 快 接近尾聲 。 首先要 感謝 學(xué)校對 我的教育和栽培,在 本次 畢業(yè)設(shè)計 中 要特別感謝指導(dǎo)老師 余囯衛(wèi) 老師 至始至終對我 的 耐心 指導(dǎo)與督促。當(dāng)然在整個過程中,身邊同學(xué)也給予了很大的幫助,我從他們身上學(xué)到了很多東西, 在此 向他們表示衷心的感謝 , 祝他們在以后的工作和生活中一帆風(fēng)順,心想事成 這次畢業(yè)設(shè)計不僅鍛煉了我獨立完成工程設(shè)計的能力,而且增強了與人交流、合作的能力。 本文參考了大量的文獻資料,在此,向各學(xué)術(shù)界的前輩們致敬 最后 向 百忙之中抽出時間參加我畢業(yè)設(shè)計答辯的老師 們 致以誠摯的謝意! 沈陽理工大學(xué)學(xué)士學(xué)位論文 25 參考文獻 [1] 范海紹,李方園 . 零起點學(xué) Proteus 單片機仿真技術(shù) [M].北京 : 機械工業(yè)出版社, [2] 智兆華,張鵬 . USB 接口芯片 CH375 的原理及應(yīng)用 [J].今日電子, :7475 [3] DM12868M[EB/OL].Shenzhen Jinchang Electronics Co. Ltd. . [4] 袁衛(wèi),黨紀(jì)源 . 基于單片機的 MP3 播放器設(shè)計 [J].2021, 34(4): 123125 [5] 李群芳 ,黃建 .單片機微型計算機與接口技術(shù)〔 M〕 .北京 : 電子工業(yè)出版社 ,2021. [6] Dreamtech 研究組 5 嵌入式系統(tǒng)編程源代碼解析 [M].北京 : 電子工業(yè)出版社 2021. [7] 陳衛(wèi)衛(wèi) .C/C++程序設(shè)計教程 [M].北京 ,北京希望電子出版社 ,2021. [8] 黃勇堅,王亞麗 .智能 MP3 播放控制系統(tǒng)的設(shè)計 .電子技術(shù)應(yīng)用雜志, 2021: 5862. [9] 嚴(yán)蕓 .基于 C51單片機的 MP3播放器的設(shè)計與實現(xiàn) .長沙航空職業(yè)技術(shù)學(xué)院學(xué)報, 2021:5983. [10] MP3 文件格式 .SD 卡規(guī)范協(xié)議 .來源: ,. [11] 余錫存,曹國華 .單片機原理及接口技術(shù) .西安:西安電子科技大學(xué)出版社, 2021:122136. 沈陽理工大學(xué)學(xué)士學(xué)位論文 26 附錄 A 英文 原文 The General Situation of AT89C51 The 8bit AT89C51 CHMOS microcontrollers are designed to handle highspeed calculations and fast input/output operations. MCS 51 microcontrollers are typically used for highspeed event control systems. Commercial applications include modems, motorcontrol systems, printers, photocopiers, air conditioner control systems, disk drives, and medical instruments. The automotive industry use MCS 51 microcontrollers in enginecontrol systems, airbags, suspension systems, and antilock braking systems (ABS). The AT89C51 is especially well suited to applications that benefit from its processing speed and enhanced onchip peripheral functions set, such as automotive powertrain control, vehicle dynamic suspension, antilock braking, and stability control applications. Because of these critical applications, the market requires a reliable costeffective controller with a low interrupt latency response, ability to service the high number of time and event driven integrated peripherals needed in real time applications, and a CPU with above average processing power in a single package. The financial and legal risk of having devices that operate unpredictably is very high. Once in the market, particularly in mission critical applications such as an autopilot or antilock braking system, mistakes are financially prohibitive. Redesign costs can run as high as a $500K, much more if the fix means 2 back annotating it across a product family that share the same core and/or peripheral design flaw. In addition, field replacements of ponents is extremely expensive, as the devices are typically sealed in modules with a total value several times that of the ponent. To mitigate these problems, it is essential that prehensive testing of the controllers be carried out at both the ponent level and system level under worst case environmental and voltage conditions. This plete and thorough validation necessitates not only a welldefined process but also a proper environment and tools to facilitate and execute the mission successfully. Intel Chandler Platform Engineering group provides post silicon system validation (SV) of various microcontrollers and processors. The system validation process can be broken into three major parts. The type of the device and its application requirements determine which types of testing are performed on the device. 沈陽理工大學(xué)學(xué)士學(xué)位論文 27 The AT89C51 provides the following standard features: 4Kbytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16bittimer/counters, a five vector twolevel interrupt architecture, a full duple serial port, onchip oscillator and clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt sys tem to continue functioning. The Powerdown Mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset. 沈陽理工大學(xué)學(xué)士學(xué)位論文 28 附錄 B 漢語翻譯 AT89C51 單片機的概況 8 位微控制器 AT89C51 CHMOS 旨在處理高速計算和快速的輸入 /輸出操作。 在 商業(yè)應(yīng)用 方面 包括調(diào)制解調(diào)器、電機控制系統(tǒng)、打印機、復(fù)印機、空調(diào)控制系統(tǒng)、磁盤驅(qū)動器和醫(yī)療器械。應(yīng)用程序受益于AT89C51 的處理速度和提高片上外圍函數(shù)集 ,如汽車傳動系的控制 ,車輛動態(tài)懸架 ,防抱死制動 ,和穩(wěn)定控制的應(yīng)用程序。設(shè)備操作的金融和法律風(fēng)險不可預(yù)知的非常高。設(shè)計成本可以高達 500 美元 ,如果修復(fù)意味著多 2 注釋它在產(chǎn)品族 ,共享相同的核心和 /或周邊設(shè)計缺陷。為了減輕這些問題 ,至關(guān)重要的是 ,控制器進行全面的測試在最壞情況下的組件級和系統(tǒng)級環(huán)境和電壓條件。英特爾錢德勒平臺工程集團提供后硅系統(tǒng)各種微控制器和處理器的驗證 (SV)。設(shè)備的類型及其應(yīng)用需求確定哪些類型的測試都在設(shè)備上執(zhí)行。此外 ,AT89C51 設(shè)計靜態(tài)邏輯操作降到零頻率和支持兩種軟件選擇節(jié)電模式。省電模式節(jié)省了內(nèi)存內(nèi)容但凍結(jié)振蕩器禁用所有其他芯片的功能 ,直到下一個硬件復(fù)位。 //音量定義 unsigned char nextone = 0,lastone = 0。 //暫停標(biāo)志 FRESULT res。 沈陽理工大學(xué)學(xué)士學(xué)位論文 30 xdata unsigned char Uart_buff。 void ndelay(unsigned int a) //延時函數(shù) { int i。i0。 } void IOinit(void) { P4SW=0x70。//將 和 P4。//去抖 if(P45 == 0) { while (P44 == 0)。 沈陽理工大學(xué)學(xué)士學(xué)位論文 31 vol=0x01。 VS_Write_Reg(0x0b,vol,vol)。 } } if(P44 == 0 )//音量小 //并且串口接收到數(shù)據(jù) B { delay (15)。 //等待按鍵釋放 wifi_set = 0。 if(vol0x90) vol=0x90。//音量設(shè)置,左右聲道均最大音量 VS_Write_Reg(0x0b,vol,vol)。 } } if(P35 == 0 ) //暫停處理 //并且串口接收到數(shù)據(jù) C 沈陽理工大學(xué)學(xué)士學(xué)位論文 32 { delay(15)。 wifi_set = 0。 } else { Mp3_Stop = 0。 } } } void System_mp3_rua