- -
目录
第一章绪论..................................................................................................................................................2
1.1 课题背景及意义............................................................................................................................2
1.2 课题容............................................................................................................................................2
1.2.1 题目及要求.........................................................................................................................2
1.2.2 主要局部.............................................................................................................................3
第二章方案..................................................................................................................................................4
2.1 功能要求........................................................................................................................................4
2.3 数码管显示方案............................................................................................................................5
第三章电子时钟的硬件设计......................................................................................................................6
3.1 电子时钟的组成............................................................................................................................6
3.2 单片机最小系统图........................................................................................................................6
3.3 STC89C51 引脚功能.....................................................................................................................7
3.4 数码管显示模块............................................................................................................................8
3.5 闹铃局部........................................................................................................................................9
3.6 按键模块........................................................................................................................................9
第四章电子时钟的软件设计....................................................................................................................10
4.1 电子时钟程序流程框图..............................................................................................................10
4.2 按键调整流程图..........................................................................................................................11
4.3 子程序的设计..............................................................................................................................13
4.3.1 数码管显示模块...............................................................................................................13
4.3.2 按键子模块.......................................................................................................................13
4.3.3 主程序...............................................................................................................................15
第五章 硬件的制作与测试分析...............................................................................................................15
5.1 电子时钟的硬件制作..................................................................................................................15
5.2 硬件测试......................................................................................................................................15
5.3 软件调试......................................................................................................................................16
5.4 测试结果分析与结论..................................................................................................................17
5.4.1 数码管测试结果分析.......................................................................................................17
5.4.2 按键测试结论...................................................................................................................17
5.4.3 测试结论...........................................................................................................................17
总结与致....................................................................................................................................................19
参考文献....................................................................................................................................................21
附录............................................................................................................................................................23
附录一分组表....................................................................................................................................23
附录二程序........................................................................................................................................24
附录三电子时钟实物图....................................................................................................................35
- - word.zl-