目 录
设计内容:.......................................................................................................................1
设计要求:.......................................................................................................................1
一、系统总体方案选择与说明...............................................................................................0
1.系统总体方案选择........................................................................................................0
2. 说明..............................................................................................................................0
二、系统结构框图与工作原理...............................................................................................2
1. 系统结构框图..............................................................................................................2
2.工作原理........................................................................................................................3
三、各单元硬件设计说明及计算方法..................................................................................4
1.定时器\计数器...............................................................................................................4
2 .中断系统:......................................................................................................................5
3 .键盘...............................................................................................................................5
4 .LED 数码管显示器:..................................................................................................6
5 .LED 数码显示器有两种连接方法..............................................................................6
图(1)LED 引脚排列.................................................................................................................7
四、软件设计与说明(包括流程图)..................................................................................7
1.主程序........................................................................................................................7
2.数码管显示模块.........................................................................................................8
3.定时器/计数器 T0 中断服务程序.............................................................................9
4.按键处理模块...........................................................................................................10
五 、程序清单........................................................................................................................12
1.中断子程序..................................................................................................................12
2.延时程序......................................................................................................................12
3.主程序和定时器中断子程序......................................................................................12
4.LED 显示子程序.........................................................................................................13
5.按键控制子程序..........................................................................................................15
6.数字电子时钟系统 PROTUES 仿真..........................................................................18
六、参考文献.........................................................................................................................19
致 谢........................................................................................................................................20