中国矿业大学成人教育学院 2017 届毕业设计(论文)
目 录
前 言 .............................................................................................................................1
第一章 工作原理 ..........................................................................................................2
1.1 设计目标 ...........................................................................................................2
1.1.1 基本功能 ................................................................................................2
1.1.2 主要技术参数 .........................................................................................2
第二章 硬件设计与原理 ...............................................................................................3
2.1 总设计框图 .......................................................................................................3
2.2 硬件设计分析 ...................................................................................................3
2.2.1 电源的设计 ...........................................................................................3
2.2.2 单片机最小系统 ....................................................................................4
2.2.3 数码管显示电路 ..................................................................................10
2.2.4 按键输入电路 ......................................................................................11
2.2.5 报警与指示电路 ..................................................................................14
第三章 软件设计与分析 .............................................................................................15
3.1 软件设计的组成 .............................................................................................15
3.2 各部分软件分析 ...........................................................................................15
3.2.1 延时子函数 ........................................................................................15
3.2.2 初始化子函数 ....................................................................................15
3.2.3 开始键扫描子函数 .............................................................................16
3.2.4 选手抢答按键扫描子函数..................................................................17
3.2.5 显示子函数 ........................................................................................20
3.2.6 调整时间键扫描子函数 .....................................................................24
3.2.7 定时器 0 中断子函数 .........................................................................26
3.2.8 定时器 1 中断子函数 .........................................................................27
3.2.9 主函数 ...............................................................................................28
3.3 总源程序.......................................................................................................30
第四章 软件仿真 ........................................................................................................46
4.1 PROTEUS 简介 ..................................................................................................46
4.2 仿真图 .............................................................................................................48
4.3 原理图 .............................................................................................................49