基于单片机的俄罗斯方块设计与实现毕设论文

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

沈阳航空航天大学北方科技学院毕业设计(论文)I基于单片机的俄罗斯方块设计与实现摘要随着单片机在手持娱乐设备上应用的发展,越来越多的应用在电子领域中,如:电子宠物,俄罗斯方块,智能IC卡等。俄罗斯方块是一款风靡全球的电视游戏机和掌上游戏机游戏,它由俄罗斯人阿列克谢·帕基特诺夫发明,故得此名。本文选用STC89C52RC单片机作为系统的芯片,实现人机交互、娱乐等功能。选用LCD12864实现俄罗斯方块游戏界面、图形显示;选用独立按键实现游戏控制。本设计实现的基本功能是:用按键控制目标方块的变换与移动;消除一行并计分,方块堆满时结束游戏等俄罗斯方块的基本功能。此次设计初期是在keil和proteus联合仿真中进行,编程语言为c语言,后期是进行实物焊接。关键词:俄罗斯方块;单片机;控制;仿真沈阳航空航天大学北方科技学院毕业设计(论文)IIAbstractWiththedevelopmentofthesinglechipmicrocomputerapplicationonhandheldentertainmentequipment,moreandmoreapplicationinthefieldofelectronics.Suchas:electronicpet,tetris,smartICcard,etc.TetrisisapopularglobalTVgameandPSPgames,itconsistsoftheRussianalexeipalmerjeter'sinvention,thereforethename.ThisarticlechoosesSTC89C52RCsingle-chipmicrocomputerasthesystemofchip,realizehuman-machineinteraction,entertainment,etc.Selectionoftetrisgameinterface,graphicaldisplayLCD12864implementation;Chooseindependentcontrolgamebuttons.Thisdesignistorealizethebasicfunctionof:keycontroltargetsquaretransformationandmovement;Removearowandscoring,squarepileendgametetris,suchasthebasicfunctions.Theearlystageofdesignisdoneinkeilandproteussimulation,programminglanguageistheclanguage,islateforrealwelding.Keywords:Russiansquare;Microprocessor;Control;Simulation沈阳航空航天大学北方科技学院毕业设计(论文)III目录1绪论...................................................................11.1课题背景..............................................................11.2课题的研究现状及意义..................................................11.3课题任务及要求........................................................22整体方案设计.............................................................32.1设计方案..............................................................32.2系统的核心部分单片机..................................................32.3程序整体思路..........................................................42.4图形显示..............................................................52.5消层算法..............................................................52.6系统总体结构框图......................................................62.7系统的工作过程........................................................63俄罗斯方块的硬件设计.....................................................73.1单片机电路............................................................73.1.1STC89C52RC单片机介绍..........................................73.1.2STC89C52RC单片机的标准功能...................................83.1.3晶振特性......................................................103.1.4单片机的复位电路..............................................113.2LCD12864液晶屏......................................................113.2.1液晶显示模块概述..............................................113.2.2模块引脚说明..................................................123.2.3指令描述......................................................123.2.4汉字字模提取..................................................23沈阳航空航天大学北方科技学院毕业设计(论文)IV3.3LCD的驱动方法.......................................................243.4按键控制电路.........................................................253.5硬件总体设计........................................................254俄罗斯方块的软件设计....................................................264.1开发工具介绍.........................................................264.2程序流程图...........................................................274.2.1主程序流程图..................................................274.2.2游戏外观显示流程图............................................294.2.3俄罗斯方块向左/右移动工作流程图...............................304.2.4俄罗斯方块中按下键的流程图....................................314.3本章小节.............................................................315系统仿真...............................................................325.1Proteus仿真软件介绍.................................................325.2显示屏系统仿真的效果.................................................335.2.1静态模式下的仿真效果..........................................335.2.2向左移动的仿真效果............................................345.2.3向右移动的仿真效果............................................345.2.4向下移动的仿真效果图..........................................355.2.5调节速度的仿真效果图..........................................355.2.6改变形状的仿真效果图..........................................365.2.7暂停的仿真效果图..............................................365.3俄罗斯方块的仿真效果图...............................................376实物的制作与调试.......................................................386.1电路的焊接...........................................................386.1.1焊前准备......................................................386.1.2焊接顺序......................................................386.1.3元器件焊接要求................................................38沈阳航空航天大学北方科技学院毕业设计(论文)V6.2布线工艺与准则.......................................................396.3焊接实物照片.........................................................396.4整体调试.............................................................407俄罗斯方块的整体调试...................................................417.1整体调试.............................................................417.2实际显示效果图.......................................................417.3系统升级方案探讨.....................................................438结论.

1 / 69
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功