【正文】
......................................................................10 ....................................................................................................................10 ..........................................................................................................10 .......................................................................................................... 11 4 系統(tǒng)硬件設計 ...........................................................................................................................12 .............................................................................................................12 .............................................................................................................12 .............................................................................................................13 LCD 12864 顯示模塊 .............................................................................................................13 ....................................................................................................................15 LCD 示驅(qū)動原理 .................................................................................................................15 5 系統(tǒng)軟件設計 ...........................................................................................................................17 主程序設計 ...........................................................................................................................17 ......................................................................................................18 ....................................................................................................................18 ....................................................................................................................19 l2864 顯示模塊 ....................................................................................................................20 ............................................................................................22 6 系統(tǒng)調(diào)試 ..................................................................................................................................25 ...............................................................................................................................25 ...............................................................................................................................26 ...........................................................................................................................26 ...........................................................................................................................27 7 總結(jié) .........................................................................................................................................29 參 考 文 獻 ................................................................................................................................30 致 謝 ..........................................................................................................................................31 常州大學本科生畢業(yè)設計(論文) 第 1 頁,共 31 頁 1 緒論 研究背景與意義 隨著社會的發(fā)展,人們生活的步調(diào)日益加快,越來越多的人加入了全球化的世界。 ROM 只讀存儲器。 這種時鐘源不能提供準確的時基。 器件振蕩器的默認配置。 用于顯示系統(tǒng)狀況。這是一個雙線的通訊接口,是 SSP 模塊的一種工作模式??捎米贤饩€擦除。 EPROM 可編程只讀存儲器。 EEPROM 電可擦除的可編程只讀存儲器。為選擇存儲區(qū),需要準確設置存儲區(qū)選擇位( RP1 和 RP0)。因為中檔單片機有 7 位用于直接尋址,指令可以尋址128 字節(jié)(包括特殊功能寄存器)。當 GO 位被置 1 后,模擬輸入通道就與采樣保持電容斷開,啟動 A/D 轉(zhuǎn)換。 采集時間( Acquisition Time, TACQ) 這是與模數(shù)轉(zhuǎn)換器有關的一個術語。其主要功能是將指令譯碼、確定需要的操作數(shù)和要執(zhí)行的操作。 波特率( Baud) 通常用來描述串行端口的通信速率。 Score reaches a certain level, upgrade snake movement speed after outside, this design such as joined the game suspension, midway exits, maps choice, background tip sound, and other functions. To save storage space, the game has made a new algorithm design, define a onedimensional array, using a operation state of motion debts storage reading information. Concrete realization, hardware system platform using the 51 series microcontroller, carrying LCD, keyboard and speakers, constitute a lightweight portable game system. 51 series microcontroller mature technology, powerful, wide application. Using single chip microputer as control core can be simplified the hardware circuit and software programming control by microcontroller hardware circuit function, reduce the energy consumption and reduce the cost. The C programming language used in the software, flexibility, accelerated greatly software development speed, shorten the development cycle, and for transplantation. In order to improve the efficiency of development and hardware stability, using a powerful hardware simulation software Proteus, relying on the software provides a simulation environment collocation Keil software development debug environment as simulation debugging success. The article introduces the use ofavariety of hardware features, the game features and the detailed design,software design of the specific ideas, details ofvarious modules, some modu les of the program flow chart, state transition graph,a key part ofthe code details and so on. KeyWords: Greedy Snake; 51MCU; Game III 術 語 表 ALU 算數(shù)邏輯單元。 關鍵詞: 貪吃蛇; 51 單片機;游戲 II Greedy Snake Game Based on 51 MCU design Abstract: With the development of science and technology, modern life rhythm, people more and more quick work life pressure also will increase. Design of a simple operation, the vivid novel strong, easy to carry, entertaining the small game, in a busy work life play this paragraph small game over, not only can adjust people39。為提高開發(fā)效率和硬件穩(wěn)定性,采用了功能強大的硬件仿真軟件 Proteus,依托該軟件提供的仿真環(huán)境搭配 Keil 作為軟件開發(fā)調(diào)試環(huán)境進行仿真調(diào) 試成功。使用單片機作為控制核心,可