目 录
摘 要 ........................................................................................................................................................2
Abstract.........................................................................................................................................................3
第一章 概述 .......................................................................................................................5
第二章 方案论证与比较 ...................................................................................................6
2.1 数字时钟方案................................................................................................................................6
2.2 数码管显示方案............................................................................................................................6
2.3 闹铃方案…………………………………………………………………………………………6
2.4 校准方案......................................................................................................................................7
第三章 系统设计 ...............................................................................................................7
3.1 总体设计........................................................................................................................................7
3.1.1 系统说明.............................................................................................................................7
3.2 模块设计........................................................................................................................................7
3.2.1 电源部分.............................................................................................................................8
3.2.2 复位电路.............................................................................................................................8
3.2.3 程序下载接口.....................................................................................................................8
3.2.4 位选部分.............................................................................................................................9
3.2.5 数码管的连接电路.............................................................................................................9
3.2.6 控制部分...........................................................................................................................10
3.2.7 蜂鸣器驱动电路………………………………………………………………………………………………………….11
第四章 原理......................................................................................................................12
4.1 系统总体方案选择与说明……………………………………………………………………………………………………12
4.2 工作原理…………………………………………………………………………………………………………………………….…13
4.3 各单元硬件设计说明及计算方法…………………………………………………………………………………………14
4.4 软件设计与说明……………………………………………………………………………………………………………………14
第五章 软件设计 ...............................................................................................................15
5.1 主程序流程..................................................................................................................................15
5.2 闹铃程序......................................................................................................................................16
5.3 中断程
序………………………………………………………………………………………………………………………………..16
第六章 调试过程………………………………………………………………………………………………………………………….23
6.1 使用的元件与元件特性………………………………………………………………………………………………………..23
6.2 电路连接……………………………………………………………………………………………………………………………….25
6.3 使用 Keil uVision3 编写程序…………………………………………………………………………………………………26
6.4 运行程序………………………………………………………………………………………….......……………………………..32
第七章 总结........................................................................................................................................20