当前位置:文档之家› 基于单片机设计推箱子游戏,protues仿真解析

基于单片机设计推箱子游戏,protues仿真解析

论文分为两大块:一块为游戏的硬件电路组成部分,一块为软件程序设计部分。在硬件电路里主要包括有源晶振部分、方向控制部分及液晶显示部分等与单片机的接线设计;软件编程方面主要是子程序和主程序的编写,包括:初始化代码、液晶驱动代码、方向键代码、过关判断代码等等。
关键词:单片机;推箱子;PG160128A;T6963C内核
3.2推箱子方向控制键···········································12
Key words:single chip microcomputer;pushing;PG160128A;T6963C kernel
第一章 绪论···················································1
1.1游戏总体功能的设计·········································1
1.2系统框图···················································1
1.3游戏设计的目的·············································2
1.4游戏实现的目标······························aper mainly introduces the based on single chip microcomputer AT89C52 tuixiangzi game design rules of the game, hardware structure, software code compiling, and working principle of LCD module of T6963C kernel based PG160128A LCD module, simulate the tuixiangzi game on the simulation diagram.This system is based on single chip microcomputer as its control core, active crystals constitute the circuit as the clock signal, through the choice of the direction key issued a person move control command to the single-chip microcomputer control system, control system after the judgements made after a series of necessary receive commands, to control the movement of figures and boxes.
2.5Keil uVision4编译环境介绍····································10
第三章 游戏架构···············································12
3.1游戏基本元素···············································12
南京邮电大学
毕 业 论 文
题 目:基于单片机设计推箱子游戏
专 业:
学生姓名:
班级学号:
指导教师:
指导单位:南京邮电大学通信与信息工程学院
日期: 年 月 日至 年 月 日
摘要
本论文主要介绍了基于AT89C52单片机推箱子游戏设计的游戏规则、硬件结构、软件代码的编写及工作原理,基于T6963C内核的液晶模块PG160128A液晶模块的介绍,在仿真软件上模拟出推箱子游戏。本系统是以单片机为其控制核心,以有源晶振构成的电路作为时钟信号,通过方向键的选择向单片机控制系统发出人物移动控制命令,控制系统接收命令后做出一系列必要的判断后,控制人物及箱子的移动。
1.5设计的基本要求·············································2
第二章 设计模块···············································3
2.1控制模块··················································3
2.2显示模块···················································5
2.3T6963C指令集···············································6
2.4Protues介绍················································8
Paper is divided into two areas: a piece of hardware circuit part of the game, a piece of software design part.In the hardware circuit mainly includes active crystals, direction control part and part, such as liquid crystal display (LCD) and the connection design of single chip microcomputer;Software programming are mainly subroutines and main program of the writing, including: the initialization code, LCD driver code, the direction key code, pass judgment and so on.
相关主题