没有合适的资源?快使用搜索试试~ 我知道了~
贪吃蛇游戏的设计报告(含电路原理图和程序).doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 93 浏览量
2023-06-19
20:22:09
上传
评论
收藏 9.38MB DOC 举报
温馨提示
试读
25页
贪吃蛇游戏的设计报告(含电路原理图和程序).doc
资源推荐
资源详情
资源评论
I
贪吃蛇游戏的设计
本篇论文主要是设计并且着手致力于实现一种基于 51 单片机的经典的贪吃蛇游戏,
主要是研究该游戏的硬件电路和软件编程的设计,同时也简单介绍了应该如何使用
Proteus 软件进行仿真。借助仿真软件进行实验测试,可以基本实现游戏一些简单的基本
功能。直至现在,大家都知道且明白了 51 系列的单片机技术相对而言比较成熟,功能也
十分强大,应用较为广泛。将单片机作为本设计的控制核心,能够使硬件电路大大地简化,
用软件来编程控制单片机,来加以实现硬件电路的功能,可以降低能耗,同时也节约成本。
选用 C 语言编程,比较方便灵活,极大地加快了软件开发的速度,使开发周期缩短了,同
时方便移植。本篇论文比较详细的的介绍了各种硬件的基本特性,贪吃蛇游戏实现的基本
功能与详细设计,软件设计的具体说明,每一个模块的细节要求,还有一些功能模块的程
序流程图和关键部分代码的详细讲解等。
关键词:Proteus 软件仿真;51 单片机;Keil;贪吃蛇;LED 点阵屏
II
Abstract
This paper is mainly committed to the design and begin a 51 microcontroller based on the
classic Snake game, is to study the hardware circuit design and software programming of the
game, but also a brief introduction to how to use Proteus simulation software . With simulation
software experimental tests, the basic realization of the game can be some simple basic functions.
Until now, we all know and understand the 51 series of single-chip technology is relatively
mature, the function is also very powerful, is widely used. The microcontroller as control core of
this design, enabling greatly simplify the hardware circuit with microcontroller programming
control software, hardware circuitry to be functional, you can reduce energy consumption, but
also cost savings. Selection of the C programming language, more convenient and flexible,
which greatly accelerated the pace of software development, shorten the development cycle,
while convenient for transplant. This paper a more detailed introduction to the basic
characteristics of various hardware realization of the basic functions of the Snake game with
detailed design, software design, specify the details of the requirements of each module, there are
some functional modules of the program flow chart and explain in detail the critical parts of the
code and so on.
Keywords:Proteus software simulation;51 microcontroller;Keil;Snake;LED lattice;
III
目 录
摘 要 ......................................................I
Abstract ....................................................II
目录 ........................................................Ⅲ
1 绪论 ...........................................................1
1.1 研究背景及意义 .............................................1
1.2 单片机发展状况 .............................................1
1.3 LED 发展状况 ...............................................3
1.4 设计特点 ..................................................3
2 系统总体设计 ..................................................4
2.1 设计要求 ...................................................4
2.2 系统设计方案 ..............................................4
2.2.1 硬件设计 ..............................................4
2.2.2 软件设计 ..............................................4
3 系统硬件设计...................................................5
3.18*8LED 点阵的原理说明 .......................................5
3.2 LED 阵列驱动电路 ...........................................5
4 系统软件设计...................................................6
4.1 系统主要模块介绍 ...........................................6
4.1.1 主函数模块 ...........................................6
4.1.2 按键模块 .............................................7
4.1.3 蛇运动控制模块 .......................................7
4.2 主程序工作流程 .............................................7
4.3 游戏设计思想 ..............................................8
4.4 LED 点阵初始化 .............................................9
4.5 贪吃蛇的移动 ..............................................9
4.6 食物的随机出现 ............................................9
5 联调与测试 ....................................................10
IV
5.1 软件调试 ..................................................10
5.2 硬件调试 ..................................................11
结论与展望 .....................................................13
致谢 ............................................................14
参考文献........................................................15
附录 A:系统原理图 .............................................16
附录 B:系统 PCB 图 .............................................17
附录 C:系统仿真图 .............................................18
附录 D:系统实物图 .............................................18
附录 E:系统源程序 .............................................20
剩余24页未读,继续阅读
资源评论
快乐无限出发
- 粉丝: 1126
- 资源: 7260
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功