毕业设计论文-基于51单片机贪吃蛇游戏设计.doc

毕业设计论文-基于51单片机贪吃蛇游戏设计.doc

  1. 1、本文档共79页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
毕业设计论文-基于51单片机贪吃蛇游戏设计

摘 要 本文设计了一款新颖的以单片机为控制核心的贪食蛇游戏系统。所设计的贪食蛇能完成移动、吃食物和摆放游戏自动输出的食物、使之默认出现3节蛇身、吃到每个随机点数而得分等功能。硬件设计包括LED模块、键盘模块、供电模块驱动模块和下载模块。软件采用C语言编程,方便灵活,大大加快了软件开发速度,缩短了开发周期,并且便于移植。为提高开发效率和硬件稳定性,采用了功能强大的硬件仿真软件Proteus,依托该软件提供的仿真环境搭配Keil作为软件开发调试环境进行仿真调试成功。所设计的贪食蛇游戏系统轻巧便携、老少皆宜,且成本较低,具有一定的市场前景。 关键词:贪吃蛇;单片机;游戏 Abstract This paper designs a novel single-chip microcomputer as the snake game control system. The snake can complete mobile, food and put the game automatically output of food, which appears by default 3 snake, eat each random points and scoring functions. The hardware design includes LED module, keyboard module, power supply module and driving module and download module. The software is programmed with C language, convenient and flexible, greatly accelerate the speed of software development, shorten the development cycle, and easy to transplant. In order to improve the development efficiency and stability of the hardware, the powerful hardware simulation software Proteus, based on the simulation environment of the software provided with Keil as the software development environment for debugging simulation debugging success. Snake game system design of the light and portable, suitable for all ages, and the cost is low, has a certain market prospects. KeyWords:Greedy Snake;51MCU;Game 目录 第一章 绪论 1 1.1课题设计的背景与意义 1 1.2 贪食蛇游戏的发展及现状 2 1.2.1贪食蛇游戏发展历史 2 1.2.2我国单机游戏的现状 2 1.3 课题设计的内容与要求 3 1.3.1课题设计的内容 3 1.3.2课题设计的要求 4 1.4设计方案 4 1.4.1硬件设计 4 1.4.2软件设计 4 第二章 系统总体设计 5 2.1 系统基本组成及工作原理 5 2.2 系统的主要元器件介绍 7 2.2.1 74HC138 7 2.2.2 74HC154 9 2.2.3 74HC595 11 2.3 主控芯片单片机 13 2.3.1单片机的介绍 13 2.3.2单片机的应用 14 2.4 单片机红外无线 15 2.4.1红外遥控 15 2.4.2红外遥控发射 16 2.4.5红外遥控接收 17 2.4.6红外编码标准 17 第三章 系统硬件的设计 21 3.1单片机控制模块的设计 21 3.1.1 单片机的选择 21 3.1.2 时钟电路 24 3.1.3 复位电路 26 3.1.4 最小系统 26 3.2 供电电路设计 27 3.3 显示模块设计 28 3.3.1 点阵模块 28 3.3.2 驱动电路设计 30 3.3.3 行驱动电路 32 3.3.4 列驱动电路 32 3.3.5 扫描显示过程 33 3.3.6 显示模块原理图 34 3.4下载模块设计 35 第四章 系统软件的设计 37 4.1软件的整体设计思想 37 4.2 软件开发环境 37 4.2.1 keil软件的介绍 37 4.2.2 软件功能 38 4.2.3 软件应用流程 38 4.3系统主函数的设计 40 4.

文档评论(0)

feixiang2017 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档