没有合适的资源?快使用搜索试试~ 我知道了~
基于51单片机的俄罗斯方块游戏设计.doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 182 浏览量
2023-06-18
23:34:17
上传
评论
收藏 123KB DOC 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/87927187/0001-b9166236769229c2acfbe0e6d986eeb8_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
28页
基于51单片机的俄罗斯方块游戏设计.doc
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/release/download_crawler_static/87927187/bg1.jpg)
基于 51 单片机的俄罗斯方块游戏设计
基于单片机的俄罗斯方块游戏设计
摘 要
俄罗斯方块是一款风靡全球的益智游戏。它规则简单,容易上手,且游戏
过程变化无穷,使用户在游戏中得到乐趣。
本文讨论了一种基于增强型单片机硬件平台和实时操作系统的智能俄罗
斯方块游戏的设计与实现。该设计选用的处理器型号为 STC12C5A60S2 的单片机,
实时操作系统采用适用于 8051 处理器的 RTX51 Tiny 多任务实时操作系统。重点
从软件工程角度论述了俄罗斯方块模型构造,图形旋转,坐标变换,双人游戏中多
任务实时操作的设计法方,以及背景音乐的处理等技术。同时,该设计的独创性是
在 8051 系列单片机中使用操作系统实现了双人游戏和音效的添加。
关键词:单片机;RTX51;LCD;俄罗斯方块
![](https://csdnimg.cn/release/download_crawler_static/87927187/bg2.jpg)
ABSTRACT
Tetris is a section became popular in the world of puzzles.The
rules are simple, easy to operate and the game process changes.Users in
the game to get fun.
This paper discussed a method based on enhanece microcontroller
hardware platform and real-time operating system of intelligent Tetris
game of design and implementa- tion.This design multi-back STC12C5A60S2
single-chip processor regult and real-time operating system adopt
suitable for the 8051 processor RTX51 of multi-tasking real- time
operating system.This paper mainly discusses the from software
![](https://csdnimg.cn/release/download_crawler_static/87927187/bg3.jpg)
engineering tetris model of structure,graphics rotation,coordinate
transform,the double game multitasking real-time operating design,and
the background music of the formation of technology.At the same time,the
design originality in the 8051series micro- controller is used in the
operating system realizing double game and sound add.
Key words: singlechip;RTX51;LCD;Tetris
目 录
摘 要 I
ABSTRACT II
1 绪 论 1
1.1 课题背景 1
1.2 课题的主要研究内容 1
1.3 课题的研究现状及意义 1
2 系统硬件平台设计 2
2.1 STC12C5A60S2 单片机概述 2
2.2 STC12C5A60S2 最小系统 3
2.3 电源系统 3
2.4 振荡电路 3
2.5 复位系统 4
2.6 程序下载系统 5
2.7 音乐播放系统 6
2.8 LCD 液晶显示接口电路 6
![](https://csdnimg.cn/release/download_crawler_static/87927187/bg4.jpg)
2.9 操作控制接口 7
3 系统软件平台构建 8
3.1 μVision 简介 8
3.2 LCD12864 液晶屏显示原理 8
3.2.1 LCD 模块总线选择及时序 8
3.2.2 LCD 显示 RAM 区映射概况 9
3.2.3 LCD 的驱动方法 10
3.2.4 LCD 驱动程序架构 10
3.3 俄罗斯方块游戏设计 11
3.3.1 俄罗斯方块游戏功能简介 11
3.3.2 系统界面的设计 12
3.3.3 游戏系统“枚举算法”概述 14
3.3.4 俄罗斯方块造型设计的方法 15
3.3.5 随机产生俄罗斯方块的方法 15
3.3.6 俄罗斯方块平移的实现方法 17
3.3.7 俄罗斯方块旋转的实现方法 18
3.3.8 俄罗斯方块下移的实现方法 20
3.3.9 满行检测及消行功能的实现方法 21
3.3.10 游戏积分的计算方法 22
3.4 双人俄罗斯方块游戏设计 24
3.4.1 RTX51 Tiny 简介 24
3.4.2 RTX51 Tiny 的内核分析 24
![](https://csdnimg.cn/release/download_crawler_static/87927187/bg5.jpg)
3.4.3 游戏开发环境的配置 27
3.4.4 双人单机对战模式的实现流程 28
3.5 系统背景音乐的设计 28
3.5.1 音乐的设计原理 28
3.5.2 音乐播放的实现方法 30
3.5.3 音效程序流程 30
3.6 系统主程序流程图 31
4 产品功能说明与系统性能测试 32
4.1 产品功能说明 32
4.2 系统性能测试 33
5 结束语 33
参考文献 35
致 谢
1 绪 论
1.1 课题背景
如今,计算机系统的发展已明显地朝三个方向发展,这三个方向就是:巨型
化,单片化,网络化。对于解决复杂计算和高速数据处理的问题仍然是巨型机在起
作用,因而,目前巨型机正在朝高速及高处理能力的方向发展。单片机在出现时
Intel 公司就给其单片机取名为嵌入式微控制器[4]。单片机的最明显的优势,就
是可以嵌入到各种仪器、设备中。这一点是巨型机和网络不可能做到的。单片机
在内部已集成了?来?多的部件,这些部件包括一般常用的电路,例如:定时器,比
较器,EEPROM,D/A 转换器,串行通信接口,Watchdog 电路等。 同时,俄罗斯方块
剩余27页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
老帽爬新坡
- 粉丝: 83
- 资源: 2万+
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- 一个基本的图书管理系统.rar
- Python合并两张图片.rar
- matlab画图.rar
- VerilogVHDL\FPGA入门教程FPGA器件边练边学-快速入门Verilogvhdl
- 基于C++的mfc的仿QQ聊天系统(高分课程设计期末大作业)
- 基于Java web的学生管理系统(源码+数据库+报告)高分项目
- 基于Java web的学生管理系统(源码+数据库+报告)期末大作业&课程设计
- FM1702SL芯片13.56MHZ NFC读卡器开发板PROTELPCB图+FM1702SL中文说明书+FM1715编程指南
- 期末大作业交通数据分析与应用期末作业程序源码+实验报告.zip
- 期末大作业基于Java web的图书销售管理系统(源码+数据库)高分项目
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)