基于单片机的推箱子游戏设_毕业论文----基于单片机的推箱子游戏设计

本文详述了一种基于单片机的推箱子游戏设计,利用PROTEUS进行模拟,具有多种关卡选择、难度递增、步数和时间记录等功能。系统采用T6963C内核的PG160128A液晶模块,通过单片机控制人物和箱子移动,经过实验仿真,运行稳定,规则准确。
摘要由CSDN通过智能技术生成

41528d3028836879cd698677c3999917.gif毕业论文----基于单片机的推箱子游戏设计

本科毕业论文(设计) 题 目: 基于单片机的推箱子游戏设计 学生姓名: 徐卫 学号: P30914093 院(系): 电子信息工程 专业: 微电子 入学时间: 2009 年 9 月 导师姓名: 杨宗立 职称/学位: 讲师 导师所在单位: 安徽大学 完成时间: 2013 年 5 月 基于PROTEUS的推箱子游戏的设计 摘 要 本论文主要介绍了基于单片机的推箱子游戏的规则、硬件结构、软件代码的编写及工作原理、基于T6963C内核的液晶模块PG160128A的详细介绍以及指令集。模拟出Windows系统下的推箱子游戏,具有任意关数选择、难度依次加大、游戏步数记录、游戏时间记录、按键发声、系统低功耗、可实现在线调试等特点。本系统是以单片机为其控制核心,以有源晶振构成的电路作为时钟信号,通过方向键的选择向单片机控制系统发出人物移动控制命令,控制系统接收命令后做出一系列必要的判断后,控制人物及箱子的移动。本设计已通过了实验仿真,运行稳定,基本上没有规则方面的错误。 论文主要分为两大块:一块为游戏的硬件电路组成部分,一块为软件程序设计部分。在硬件电路里主要包括有源晶振部分、方向控制部分及液晶显示部分等与单片机的接线设计;软件编程方面主要是子程序和主程序的编写,包括:初始化代码、液晶驱动代码、方向按键代码、过关判断代码、步数记录代码、时间记录代码、按键发声代码、关数选择代码及表格数据代码等等。所有这些在文中都有详细说明。 关键词:单片机;推箱子;PG160128A; T6963C内核;指令集 Design Of PROTEUS Sokoban Game Based On[1] Abstract This paper introduces the single-chip 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 step-by-step record time of the game record, sound button, low-power system can achieve on-line debugging and so on. The system is based on its single-chip control of the core, consisting of active crystal clock circuit clock signal sent through the arrow keys to select the single-chip control system to control mobile command 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 game s hardware components 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 single-chip 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, step-by-step record of the number of code, record time code, voice button code, customs code and select a number of s of data code and so on. All of these are in the text in detail. Key words:MCU; Sokoban; PG160128A; T6963C core; instruction set 目录 1 推箱子游戏编译介绍7 2 推箱子游戏的硬件部分设计7 2.1 PG160128A液晶屏介绍7 2.2 T6963C及其指令集介绍9 2.2.1 T6963C9 2.3 晶振、复位电路10 2.3.1 晶振电路10 2.3.2 复位电路11 2.4 液晶显示屏与单片机接口电路11 3 推箱子游戏的软件部分设计13 3.1 液晶屏驱动代码设计15 3.1.1 读状态程序15 3.1.2 是否可读写程序15 3.1.3 是否可自动读写程序16 3.1.4写单参数程序16 3.1.5写双参数程序16 3.1.6写指令程序17 3.1.7写8字节数据程序17 3.1.8设置数据显示在屏幕上的坐标程序1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值