- 1
- 0
- 约6.1万字
- 约 99页
- 2017-01-08 发布于辽宁
- 举报
毕 业 设 计
设计题目:
系 别: 信息工程系
班 级: 电姓 名: 指 导 教 师:
年月日摘要
关键词:
Abstract
Communications technology is becoming increasingly important in todays era of rapid development of electronic information.
A tetris games design method has been introduced in this thesis based on STC89C53 MCU. This system is chiefly constituted of STC89C53 MCU, KXM12864J LCD, independent keys and buzzer. MCU is the core controller in this design. To make related information of the game seen by players, an area is differentiated showing shape of next graph, score, game time, speed and level in the screen. When playing this game, we can control the graph shown to move left and right, fall quickly and transform into another one flexibly by pressing keys. After passing one level, the screen shows us “GOOD JOB”, or we get “GAME OVER”. The buzzer gives out different sounds meanwhile to warn game-players of the current state.
In this design, the simulation is done in Proteus simulative software. Code compiling, debugging and modification of hardware circuit are done with the help of Kiel C51 tool. Then it is debuged again after circuit board welded. Finally, the system raslizes all the functions of a minitype tetris machine.
Key words: MCU; KXM12864J; Tetris; Keil
目 录
1 引言 1
2 芯片简介 2
2.1 单片机简介 2
2.2 KXM12864J简介 4
3 系统硬件的设计 9
3.1 单片机最小系统的设计 9
3.1.1 电源电路的设计 9
3.1.2 振荡电路的设计 11
3.1.3 复位电路的设计 12
3.1.4 下载电路的设计 13
3.2 LCD显示电路的设计 16
3.3 按键电路的设计 17
3.4 声音电路的设计 18
4 系统软件的设计 19
4.1 LCD显示子程序 20
4.1.1 显示字符子程序 20
4.1.2 显示图形子程序 21
4.1.3 设定游戏显示区域子程序 22
4.1.4 清屏子程序 22
4.1.5 显示计时子程序 23
4.1.6 消行积分子程序 24
4.1.7 闯关设置子程序 25
4.2 按键操作子程序 26
4.3 声音子程序 28
5 系统调试与仿真 29
5.1 KEIL软件和PROTEUS软件简介 29
5.2 系统调试与仿真 31
5.3 仿真过程中的问题 33
6 硬件焊接与调试 36
6.1电路板焊接 36
6.2 硬件调试 37
6.2.1 LCD显示的调试 37
6.2.2 按键调试 39
6.2.3 声音调试 39
7 结论 40
谢辞 41
参考文献 42
附录 43
附录一 总体设计电路原理图 43
附录二 程序清单 80
附录三 器件清单 80
外文资料 81
您可能关注的文档
- 220kv降压变电站电气一次设计--本科毕业设计.doc
- 220kv庄慈线架空线路设计--本科毕业设计.doc
- 520吨每天污泥干化及焚烧处理工艺设计 --本科毕业设计.doc
- 630度绩效考核在人力资源管理中的应用--本科毕业设计.doc
- 1100t螺旋桨设计 说明书--本科毕业设计.doc
- 1100t螺旋桨设计 说明书正文--本科毕业设计.doc
- 240吨时一次中间再热煤粉锅炉--本科毕业设计.doc
- 64000吨年乙醇~水蒸馏装置设计课程设计--本科毕业设计.doc
- 64000吨年乙醇~水蒸馏装置设计课程设计正文--本科毕业设计.doc
- ac6140车床拨叉831007机械加工工 艺规程设计(中批生产) 机械制造工艺课程设计--本科毕业设计.doc
原创力文档

文档评论(0)