目录
1. 概述 ..........................................................................................................................4
1.1 背景知识介绍...............................................................................................4
1.2 设计内容.......................................................................................................4
1.3 计任务和要求..................................................................................................5
1.4 设计意义.....................................................................................................5
2.系统总体方案及硬件设计.........................................................................................6
2.1 系统总体方案设计.........................................................................................6
2.2 硬件电路设计...............................................................................................7
2.2.1 时钟电路模块.......................................................................................8
2.2.2 复位电路模块......................................................................................8
2.2.3 显示模块...............................................................................................9
2.2.4 报警模块............................................................................................10
2.2.5 总硬件电路设计.................................................................................10
3 软件设计..................................................................................................................11
3.1 软件总体设计方案.......................................................................................12
3.2 软件设计具体过程.......................................................................................12
3.2.1 延时模块设计.......................................................................................13
3.2.2 数码管动态刷新显示程序..................................................................13
3.2.3 T0 中断程序 .........................................................................................15
3.2.4 加分子程序......................................................................................16
3.2.5 减分子程序.........................................................................................16
3.2.6 调整时间子程序................................................................................17
3.2.7 半场交换比分子程序......................................................................19
3.2.8 比赛暂停子程序..............................................................................19
3.2.9 中场指示灯程序..........................................................................20
3.2.10 主程序..............................................................................................22
4 . PROTEUS 仿真 ......................................................................................................23
4.1 PROTEUS 简介................................................................................................23
4.2 仿真过程........................................................................................................23
6.课程设计体会..........................................................................................................26
参考文献......................................................................................................................27
附 1 源程序...............................................................................................................28
附 2 系统原理图.........................................................................................................37