【正文】
本科學生畢業(yè)論文(設計) 題目 基于 AT89C51單片機的音樂盒設計 系別 電子信息系 專業(yè) 電子信息工程 學生姓名 倪方勝 學號 0771060 指導教師 張輝 職稱 助教 論文字數 8800 完成日期 2021 年 12 月 29 日 論文題目 基于 AT89C51 的單片機的音樂盒的設計 作者: 倪方勝 、系別: 電子信息系 摘 要 : 為了實現單片機控制音樂播放,此次課程設計做出了嘗試,即電子音樂盒的設計。本設計采用了揚聲器發(fā)聲來實現歌曲的播放,能保持基本音調不變,流暢播放出歌曲。現選用 AT89C51 單片機。 用 PROTEUS 單片機仿真軟件仿真。利用 I/O 口產生一定頻率的方波,驅動蜂鳴器,發(fā)出不同的音調,從而演奏樂曲。通過單片機 P1 口控制,實現功能鍵盤控制;功能鍵盤采用按鍵開關,通過單片機 P2 口控制,實現歌曲播放順序的調換和暫停播放功能;揚聲器由單片機的 P3口控制,實現歌曲播放;主要工作過程是通過按下功能鍵實現上一首和下一首及暫停播放,同時有液晶屏顯示當前播放歌曲的序號,揚聲器播放出音樂。 關鍵詞 : AT89C51 單片機 。方波 。 音調 英文題目 The design of musicbox base on AT89C51 作者 :Ni Fangsheng、系別: Department Of Electronic Information Abstract: In order to achieve singlechip microputer to control music player, I made the project to try, that is, the design of electronic music box. I used to achieve audible speaker songs to play, to maintain the same basic tone,smooth playback of songs. Singlechip AT89C51 is optional. with simulation software PROTEUS singlechip simulation. The use of I / O I have a certain frequency square wave to drive the speaker, the issue of different tones, which play music. through the P1 port singlechip control functions。 functions using the keyboard button switches, singlechip P2 through population control, to achieve the change the order of songs to play and pause functions。 buzz P3 is controlled by MCU port control, the realization of music playback. The main process is to achieve by pressing function keys on the first one and the next, and suspension of play, while the LCD the serial number of the currently playing song, the music player speaker. Key words: AT89C51 microcontroller。 square。 tone 目 錄 摘要 Ⅱ Abstract Ⅱ 1 緒論 5 歷史背景 5 目的意義 5 主要問題 5 技術要求 5 2 設計方案簡述 5 設計功能要求 5 總體設計原理 5 總體設計框圖 6 3 詳細設計 6 芯片的選擇與介紹 6 揚聲器部分 7 顯示部分 7 流程圖 7 4 仿真及 調試 7 調試18