freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文----基于單片機(jī)的推箱子游戲設(shè)計(已修改)

2025-06-22 08:55 本頁面
 

【正文】 1 本科畢業(yè)論文(設(shè)計) 題 目: 基于單片機(jī)的推箱子游戲設(shè)計 學(xué)生姓名: 徐衛(wèi) 學(xué)號: P30914093 院(系): 電子信息工程 專業(yè): 微電子 入 學(xué)時間: 2021 年 9 月 導(dǎo)師姓 名: 楊宗立 職稱 /學(xué)位: 講師 導(dǎo)師所在單位: 安徽大學(xué) 完成時間: 2021 年 5 月 2 基于 PROTEUS 的推箱子游戲的設(shè)計 摘 要 本論文主要介紹了基于單片機(jī)的推箱子游戲的規(guī)則、硬件結(jié)構(gòu)、軟件代碼的編寫及工作原理、基于 T6963C內(nèi)核的液晶模塊 PG160128A的詳細(xì)介紹以及指令集。模擬出 Windows系統(tǒng)下的推箱子游戲,具有任意 關(guān)數(shù)選擇、難度依次加大、游戲步數(shù)記錄、游戲時間記錄、按鍵發(fā)聲、系統(tǒng)低功耗、可實(shí)現(xiàn)在線調(diào)試等特點(diǎn)。本系統(tǒng)是以單片機(jī)為其控制核心,以有源晶振構(gòu)成的電路作為時鐘 信號, 通過方向鍵的選擇向單片機(jī)控制系統(tǒng)發(fā)出人物移動控制命令 ,控制系統(tǒng)接收命令后做出一系列必要的判斷后,控制人物及箱子的移動。本設(shè)計已通過了實(shí)驗(yàn)仿真,運(yùn)行穩(wěn)定,基本上沒有規(guī)則方面的錯誤。 論文主要分為兩大塊:一塊為游戲的硬件電路組成部分,一塊為軟件程序設(shè)計部分。在硬件電路里主要包括有源晶振部分、方向控制部分及液晶顯示部分等與單片機(jī)的接線設(shè)計;軟件編程方面主要 是子程序和主程序的編寫,包括:初始化代碼、液晶驅(qū)動代碼、方向按鍵代碼、過關(guān)判斷代碼、步數(shù)記錄代碼、時間記錄代碼、按鍵發(fā)聲代碼、關(guān)數(shù)選擇代碼及表格數(shù)據(jù)代碼等等。所有這些在文中都有詳細(xì)說明。 關(guān)鍵詞: 單片機(jī);推箱子; PG160128A; T6963C 內(nèi)核;指令集 3 Design Of PROTEUS Sokoban Game Based On[1] Abstract This paper introduces the singlechip based on the rules of the game Sokoban, the structure of hardware, software code writing and working principle, based on the core T6963C LCD module PG160128A, as well as details of the instruction set. Simulate the system under Windows Sokoban game, an arbitrary number of related options, in turn increase the difficulty of the game a few stepbystep record time of the game record, sound button, lowpower system can achieve online debugging and so on. The system is based on its singlechip control of the core, consisting of active crystal clock circuit clock signal sent through the arrow keys to select the singlechip control system to control mobile mand characters, the control system after receiving an order to make a Series to determine the necessary, to control the movement of people and boxes. This design has been adopted by the simulation experiments, stable, rules virtually no mistakes. The main thesis is divided into two blocks: one for the game39。s hardware ponents of the circuit, as a part of the software programming. In the hardware circuitry, including the main active part of the crystal, the direction and control of some of the liquid crystal display and other parts of the singlechip wiring design。 software programming side of the main subroutine is the main program and the preparation, including: initialization code, LCD Driver code, the direction of key code, customs code to determine, stepbystep record of the number of code, record time code, voice button code, customs code and select a number of forms of data code and so on. All of these are in the text in detail. Key words:MCU。 Sokoban。 PG160128A。 T6963C core。 instruction set 4 目錄 1 推箱子游戲編譯介紹 ..................................................................................................... 6 2 推箱子游戲的硬件部分設(shè)計 .......................................................................................... 6 PG160128A液晶屏介紹 ....................................................................................... 6 T6963C及其指令集介紹 ....................................................................................... 8 T6963C ...................................................................................................... 8 晶振、復(fù)位電路 .................................................................................................. 9 晶振電路 ................................................................................................... 9 復(fù)位電路 ................................................................................................. 10 液晶顯示屏與單片機(jī)接口電路 ........................................................................... 10 3 推箱子游戲的軟件部分設(shè)計 ........................................................................................ 12 液晶屏驅(qū)動代碼設(shè)計 ......................................................................................... 12 讀狀態(tài)程序 ............................................................................................. 12 是否可讀寫程序 ...................................................................................... 12 是否可自動讀寫程序 ............................................................................... 12 寫單參數(shù)程序 ........................................................................................... 12 寫雙參數(shù)程序 ........................................................................................... 13 寫指令程序 .............................................................................................. 13 寫 8 字節(jié)數(shù)據(jù)程序 .................................................................................... 14 設(shè)置數(shù)據(jù)顯示在屏幕上的坐標(biāo)程序 ........................................................... 14 設(shè)置數(shù)據(jù)存儲起始地址 ............................................................................. 14 CGRAM 偏置地址設(shè)置函數(shù) .................................................................... 14 液晶初始化函數(shù) ...................................................................................... 14 顯示一個漢字子程序 .............................................................................. 15 清屏程序 ............................................................................................... 15 自定義字符寫入 CGROM函數(shù) ............................................................... 15 設(shè)置點(diǎn)顯示在屏幕上的坐標(biāo) (以位為單位 ) ............................................... 16 畫圓子程序,其中 x0,y0 表示圓心, R 表示半徑 ..................................... 16 初始化代碼設(shè)計 ................................................................................................ 16 游戲時間代碼設(shè)計 ......................................................................................
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1