需要金幣:![]() ![]() |
資料包括:完整論文 | ![]() |
![]() |
轉(zhuǎn)換比率:金額 X 10=金幣數(shù)量, 例100元=1000金幣 | 論文字?jǐn)?shù):7987 | ![]() | |
折扣與優(yōu)惠:團(tuán)購最低可5折優(yōu)惠 - 了解詳情 | 論文格式:Word格式(*.doc) | ![]() |
摘要:本設(shè)計是通過AT89C52單片機(jī)來實(shí)現(xiàn)俄羅斯方塊游戲,使用C語言進(jìn)行編程,并通過軟件來進(jìn)行仿真。 設(shè)計要實(shí)現(xiàn)的最今本的功能是:用按鍵控制圖形的轉(zhuǎn)與移動;消除一橫行計分;一次消除多行多給分。方塊滿了游戲結(jié)束等。為了解決外部電路圖,必須了解所用液晶的顯示方法和單片機(jī)的外部接口功能,和需要的邏輯關(guān)系;并且要了解LCD液晶如何控制的原理;通過端口來實(shí)現(xiàn)方塊在LCD上的顯示。 程序方面要對外部電路了解的前提下完成需要的功能,將要完成的功能用編程語言來實(shí)現(xiàn)。之后通過Protues仿真實(shí)現(xiàn)用外部按鍵來控制不一樣的圖形的方塊來玩游戲,還可以實(shí)現(xiàn)記錄分?jǐn)?shù)和通關(guān)數(shù)目改變方塊下降的速度,分?jǐn)?shù)越多關(guān)數(shù)越高下降速度越快。最后將程序下載到AT89C52單片機(jī)并進(jìn)行運(yùn)行,本設(shè)計可以實(shí)現(xiàn)基本的游戲功能,達(dá)到預(yù)期的目的。 關(guān)鍵詞:C語言;AT89C52;LCD液晶;Proteus仿真
ABSTRACT:This design is achieved through the AT89S52 microcontroller Tetris game design, programming using C language, and carried out by proteus simulation. The design to achieve the basic functions are: application buttons to control the box, change and movement; eliminate line and scoring; eliminate multi-line incentive points, the game ends when the box filled with basic functions such as Tetris. MCU in the application of handheld entertainment devices have great potential, it can be brought to a new stage. In order to solve the external circuit, we must fully understand the liquid crystal display method and external interface MCU features, and the need to address the logical relationship; also understand that the principle of LCD liquid crystal control to a data port and control port to achieve the above the LCD screen display. Program requires knowledge of the external circuit where they need to complete the function and the function to be completed in the form of programming language used to achieve. Simulation then protues buttons to control an external box to play a variety of graphical games, and achieve record number of scores and the relationship had to change the speed of the module down. Finally, the program downloaded to AT89S52 MCU and the actual operation, the actual operation indicate that this design can achieve basic game functions, to achieve the desired purpose. Key Words:C language; AT89S52; LCD liquid cryst ;Proteus simulation
|