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