基于stm32的游戏机设计(附件)【字数:6381】

游戏机从早期的台式大型游戏机发展到现在的便携式游戏机,游戏机一直备受人们的喜爱与关注。如今随着5G的发展,物联网行业蓬勃发展,嵌入式系统作为物联网中的核心,显得尤为重要,微控制器的技术得到了更好的发展,新一代的微处理器性能更加强劲,这使得制作一台简易游戏机的难度和成本都大大减低。本设计基于STM32F103C8T6芯片设计一款游戏机。主要设计内容分为两部分硬件设计和软件设计。主要使用了STM32芯片、LCD显示屏模块、无源喇叭、六个独立按键、MP3模块等。本设计中开设了贪吃蛇与2048两款游戏。与此同时使用者可以根据本系统进行二次的开发。本设计经过多次调试,两大系统都可完善运行,按键信号检测灵敏,可玩性高。
目录
一、 引言 1
(一) 设计背景 1
(二) 设计意义 1
(三) 设计介绍 1
二、系统方案设计 2
(一) 系统结构 2
(二) 主控芯片介绍 2
(三) LCD显示屏介绍 3
(四) MP3模块介绍 4
(五) 按键模块介绍 4
三、系统硬件设计 5
(一) 最小系统设计 5
1. 时钟电路 5
2. 复位电路 5
(二) LCD显示电路设计 6
(三) MP3模块电路设计 6
(四) 按键电路设计 6
四、系统软件设计 8
(一) MDK(Keil 5)开发环境介绍 8
(二) 主程序设计 8
(三) LCD驱动程序设计 9
(四) 按键驱动程序设计 11
(五) 贪吃蛇游戏设计 11
(六) 2048游戏设计 12
六、调试 14
七、总结 18
致谢 19
参考文献 20
附录一 主程序代码 21
附录二 按键控制代码 23
附录三 贪吃蛇游戏代码 25
附录四 2048游戏代码 30
附录五 MP3模块代码 40
Abstract
Game cons *好棒文|www.hbsrm.com +Q: #351916072# 
oles from the early desktop console to the current portable game consoles, game consoles have been popular and attention. At present, with the development of 5 G, the Internet of things industry is booming, embedded system as the core of the Internet of things, it is particularly important, the technology of microcontrollerhas been better developed, the performance of the new generation of microprocessorsis stronger, which makes it difficult and cost to make a simple game machine greatly reduced.
Based on STM32F103C8T6 chip, this design designs a game console. The main design content is divided into two parts: hardware design and software design. Mainly used STM32 chip, LCD display module, passive horn, six independent keys, MP3 module and so on. This design set up greedy snake and 2048 two games. At the same time, users can develop the system twice. The design after many debugging, the two systems can be perfect operation, key signal detection sensitive, high playability.
Keywords:STM32 chip; game console; LCD screen; snake ;2048
目录
一、 引言 1
(一) 设计背景 1
(二) 设计意义 1
(三) 设计介绍 1
二、 系统方案设计 2
(一) 系统结构 2
(二) 主控芯片介绍 2
(三) LCD显示屏介绍 3
(四) MP3模块介绍 4
(五) 按键模块介绍 4
三、 系统硬件设计 5
(一) 最小系统设计 5
1. 时钟电路 5
2. 复位电路 5
(二) LCD显示电路设计 6
(三) MP3模块电路设计 6
(四) 按键电路设计 6
四、 系统软件设计 8
(一) MDK(Keil 5)开发环境介绍 8
(二) 主程序设计 8
(三) LCD驱动程序设计 9
(四) 按键驱动程序设计 11
(五) 贪吃蛇游戏设计 11
(六) 2048游戏设计 12
五、 调试 14
总结 错误!未定义书签。
谢辞 错误!未定义书签。
参考文献 错误!未定义书签。
附录一 主程序代码 21
附录二 按键控制代码 23
附录三 贪吃蛇游戏代码 25
附录四 2048游戏代码 30

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/199.html

好棒文