【正文】
畢業(yè)設(shè)計(jì)(論文)題目 : 基于 51 單片機(jī)的多功能音樂(lè)播放器 基于 51單片機(jī)的多功能音樂(lè)播放器 Based on 51 singlechip multifunction music player 總計(jì) 畢業(yè)設(shè)計(jì)(論文) __37__ 頁(yè) 表 格 __7___ 個(gè) 插 圖 __20__ 幅南昌工程學(xué)院本 (專 )科畢業(yè)設(shè)計(jì) (論文 ) 1 摘 要 當(dāng)今社會(huì)基于單片機(jī)的音樂(lè)播放器也是越來(lái)越多,因?yàn)閱纹瑱C(jī)體積小、作用多、穩(wěn)定性高,用單片機(jī)做 音樂(lè)播放器 簡(jiǎn)單容易實(shí)現(xiàn)控制,基于單片機(jī)的音 樂(lè)播放器在許多方面都有應(yīng)用,比如 MP MP擴(kuò)音器等等。它是利用定時(shí)器產(chǎn)生各種固定的頻率的方波信號(hào),也可以產(chǎn)生音律中的幾個(gè)音階在內(nèi)的各種頻率的聲音,將這些產(chǎn)生的不同頻率的聲音連接起來(lái) 就能產(chǎn)生一首曲子或者是一段旋律了?;谶@個(gè) 思路,設(shè)計(jì)了一款可以上翻、下翻、確定以及功能選擇的音樂(lè)播放器 。為了 體現(xiàn)播放歌曲過(guò)程中的動(dòng)態(tài)效果,增加了 8 個(gè)彩燈,在系統(tǒng)工作是能夠循環(huán)點(diǎn)亮 增加了一個(gè) 1602 液晶顯示模塊,可以顯示當(dāng)前播放的音樂(lè)名 。此系統(tǒng)還增加了一個(gè) 1302 時(shí)鐘芯片來(lái)顯示時(shí)間和調(diào)整時(shí)間。 通過(guò)對(duì)系統(tǒng)硬件的仿真,能夠?qū)崿F(xiàn)歌曲 的播放和時(shí)間的調(diào)整。 關(guān)鍵詞 :AT89S52單片機(jī) 多功能音樂(lè)播放器 液晶顯示 Protel 摘要 2 Abstract Today39。s society is based on the single chip music player is also more and more, because single chip small size, function and stability is high, with singlechip puter music player, simple and easy to control, music player based on singlechip microputer application in many ways, such as MP3, MP4, microphone, and so on. Timer it produces various fixedfrequency square wave signals, can also have a rhythm of the sounds of various frequencies, scales, to connect these different frequencies of sound can create a tune or melody. Based on this thought, design has a paragraph can Shang turned, and Xia turned, and determines and features select of music play Manager。 to reflected play songs process in the of dynamic effect, increased has 8 a lantern, in system work is to cycle points light increased has a 1602 LCD displayed module, can displayed current play of music name。 this system also increased has a 1302 clock chip to displayed time and adjustment time. Through the simulation of the system hardware, song playback and time adjustment can be achieved. Keyword: AT89S52 singlechip。 multifunction music player。 Liquid crystal display。prortel南昌工程學(xué)院本 (專 )科畢業(yè)設(shè)計(jì) (論文 ) 2 目 錄 摘 要 ............................................................... 1 第一章 緒論 ........................................................... 1 電子音樂(lè)的背景意義 ............................................................................................................ 1 電子音樂(lè)的發(fā)展和趨勢(shì) ......................................................................................................... 1 單片機(jī)的概述 ....................................................................................................................... 2 第二章 設(shè)計(jì)方案 ....................................................... 5 設(shè)計(jì)的方案 .......................................................................................................................... 5 軟件設(shè)計(jì)方案 .............................................................................................................. 5 方案的特點(diǎn) .......................................................................................................................... 6 第三章 硬件設(shè)計(jì) ....................................................... 7 電路組成和工作原理 ............................................................................................................ 7 電路組成 .................................................................................................................... 7 工作原理 .................................................................................................................... 7 AT89S52的簡(jiǎn)介 .................................................................................................................... 7 AT89S52的功能概述 .................................................................................................... 7 AT89S52引腳圖 ........................................................................................................... 8 電路各部分的介紹 ................................................................................................................ 9 晶振電路 .................................................................................................................... 9 復(fù)位電路 .................................................................................................................. 10 鍵盤電路 ...................................................................................................................11 DS1302 時(shí)鐘電路 ....................................................................................................... 13 顯示電路 .................................................................................................................. 14 彩燈電路 .................................................................................................................. 15 揚(yáng)聲器電路 ............................................................................................................... 16 穩(wěn)壓電源電路 ........................................................................................................... 17 第四章 液晶顯示原理和 LCD1602 簡(jiǎn)介 ...................................... 19 液晶顯示原理介紹 ............................................................................................................... 19 LCD1602 簡(jiǎn)介 ..................................................................................................................... 20 第五章 軟件設(shè)計(jì) ...................................................... 29 軟件流程圖設(shè)計(jì) ................................................................................................................. 29 程序分析 ............................................................................................................................. 26 鍵盤掃描程序 ........................................................................................................... 26 液晶顯示程序 ........................................................................................................... 26 樂(lè)譜 ......................................................................................................................... 29 第六章 仿真 ...........................