基于单片机的游戏机设计与实现毕业设计

基于单片机的游戏机设计与实现毕业设计


2024年4月22日发(作者:步步高手机官网)

摘 要

从十九世纪末到二十世纪五、六十年代,从内容单一的投币游戏机到科技发达的

电子计算机游戏一个娱乐业革命也在酝酿之中。本系统主要的是基于单片机的俄罗斯

方块游戏,设计的主要部分有了解俄罗斯方块游戏的游戏规则、设计出整个系统的硬

件结构并进行实物焊接、编写软件代码并进行调试。由于显示部分是用基于KS0108

内核的液晶模块FG12864E,所以需要弄清楚FG12864E液晶显示屏的详细介绍以及

KS0108的指令集。本系统模拟出的俄罗斯方块游戏,具有难度依次加大、速度依次

加快、按键发声、系统低功耗、可实现在线调试等特点。本系统是以单片机为其控制

核心,以有源晶振构成的电路作为时钟信号,通过方向键的选择向单片机控制系统发

出砖块移动控制命令,控制系统接收命令后做出一系列必要的判断后,控制砖块的移

动和旋转。然后通过对数组的控制,在液晶屏上显示出游戏的画面,通过液晶显示画

面,显示出砖块的移动和旋转。本设计已通过了硬件测试,系统运行稳定。用本系统

设计的硬件结构还可以运行其他对显示要求不大的小游戏,如贪吃蛇、推箱子、五子

棋。

关键词

AT89S52单片机;俄罗斯方块;KS0108;FG12864E液晶显示;C语言

Abstract

From the 19th century to the twentieth century 1950s &1960s, from the content of the

single slot game to advanced technology of computer games a revolution in the brewing

industry.

This system mainly based on single-chip microcomputer is the game tetris, design

of the main parts of the game tetris know the rules of the game, the whole system design of

the hardware structure and physical welding, write software code and debugging. As the

display part of the kernel is based on KS0108 LCD module FG12864E, so it is necessary

to clarify FG12864E LCD KS0108 details and instruction set. The system simulates the

Tetris game, with the increasing order of difficulty, speed, turn speed up, key voice,

low-power system can be realized online debugging and so on. The system is based on the

core of its control MCU to active crystal form of the circuit as a clock signal, through the

choice of keys issued to the microcomputer control system blocks move control command,

the control system receives a command to make the necessary judgments , the control

blocks the movement and rotation. Then through an array of control, the LCD screen

shows the game screen, through the liquid crystal display screen, showing the movement

and rotation blocks. This design has already passed the test of the operation of the system,

hardware. In this system, the design of hardware structure can run on display are required

in other games, such as the Snake, Boxy Pocket, backgammon

Key Words:AT89S52 SCM; Russian square; KS0108; FG12864E LCD display;

C

language


发布者:admin,转转请注明出处:http://www.yc00.com/num/1713798454a2320729.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信