欢迎来到天天文库
浏览记录
ID:36818004
大小:729.38 KB
页数:50页
时间:2019-05-15
《基于单片机实现的俄罗斯方块游戏毕业论》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、编号河南机电高等专科学校毕业设计(论文)基于单片机实现的俄罗斯方块游戏系部:自动控制系专业:电气自动化技术班级:112班姓名:田熠学号:111415244指导老师:郭海针二零一四年四月摘要基于单片机实现的俄罗斯方块游戏MCUbasedRussiablockgame摘要本设计是通过AT89S52单片机来实现俄罗斯方块游戏的设计,使用C语言进行编程,并通过Proteus来进行仿真。本设计要实现的基本功能是:应用按键来控制方块的变换与移动;消除一行并计分;消除多行额外奖励记分,方块堆满时结束游戏等俄罗斯方块的基本功能。单片机在手持娱乐设备上的应
2、用具有非常大的潜力,它能将其带入到一个新的阶段。为了解决外部电路图,必须充分了解所用液晶的显示方法和单片机的外部接口功能,和所需要处理的逻辑关系;还要理解LCD12864液晶的控制原理,来通过数据端口和控制端口来实现画面在液晶上面的显示。程序则要求对外部电路了解的情况下完成自己所需要的功能,并将所要完成的功能用编程语言的形式来实现。然后通过Protues仿真实现通过外部按键来控制各种不同图形的方块来玩游戏,并且实现记录分数和通过过关数来改变方块下降的速度。最后将程序下载至AT89S52单片机并进行实际运行,实际运行表明,本设计可以实现基本
3、的游戏功能,达到预期的目的。关键词:AT89S52;C语言;Proteus仿真;LCD12864液晶IAbstractABSTRACTThisdesignisachievedthroughtheAT89S52microcontrollerTetrisgamedesign,programmingusingClanguage,andcarriedoutbyproteussimulation.Thedesigntoachievethebasicfunctionsare:applicationbuttonstocontrolthebox,chan
4、geandmovement;eliminatelineandscoring;eliminatemulti-lineincentivepoints,thegameendswhentheboxfilledwithbasicfunctionssuchasTetris.MCUintheapplicationofhandheldentertainmentdeviceshavegreatpotential,itcanbebroughttoanewstage.Inordertosolvetheexternalcircuit,wemustfullyund
5、erstandtheliquidcrystaldisplaymethodandexternalinterfaceMCUfeatures,andtheneedtoaddressthelogicalrelationship;alsounderstandthattheprincipleofLCD12864liquidcrystalcontroltoadataportandcontrolporttoachievetheabovetheLCDscreendisplay.Programrequiresknowledgeoftheexternalcir
6、cuitwheretheyneedtocompletethefunctionandthefunctiontobecompletedintheformofprogramminglanguageusedtoachieve.Simulationthenprotuesbuttonstocontrolanexternalboxtoplayavarietyofgraphicalgames,andachieverecordnumberofscoresandtherelationshiphadtochangethespeedofthemoduledown
7、.Finally,theprogramdownloadedtoAT89S52MCUandtheactualoperation,theactualoperationindicatethatthisdesigncanachievebasicgamefunctions,toachievethedesiredpurpose.KeyWords:AT89S52;Clanguage;Proteussimulation;LCDliquidcrysti目录目录第1章绪论............................................
8、.....................................................................11.1课题背景...................
此文档下载收益归作者所有