1、无锡职业技术学院毕业设计说明书 I 摘 要 现代生活的人们越来越重视起了时间观念,可以说是时间和金钱划上了等号。对于那些对时间把握非常严格和准确的人或事来说,时间的不准确会带来非常大的麻烦,所以以数码管为显示器的时钟比指针式的时钟表现出了很大的优势。本次设计主要对电子时钟进行设计,采用 AT89C51 单片机来保证电子时钟的工作,并用 LED数码管时、分、秒,以 24小时计时方式,根据数码管动态显示原理来进行显示,用 12MHz的晶振产生振荡脉冲,定时器计数。在此次设计中,电路具有显示时间的其本功能,还可以实现对时间的调整。 Abstract Modern life of people mor
2、e and more attention to the concept of time, can be said to be the time and money is a sign. For those who hold the person or thing is very strict in time and accurately, the time of inaccurate will bring great trouble, so as to control the display of digital clock than the clock pointer showed a bi
3、g advantage. The design of the main design of the electronic clock, use AT89C51 microcontroller to ensure the electronic clock, and the LED digital tube, FENs and MIAOs, 24 SHIs timer mode, according to digital control theory to dynamic display to display, use the 12MHz crystal oscillation pulse, th
4、e timer count. In this design, the circuit has its time the function, but also can achieve the adjustment of time. 无锡职业技术学院毕业设计说明书 II 目录 第一章 绪论 . 错误!未定义书签。 1.1 设计背景 . 错误!未定义书签。 1.2 单片机的 发展 . 1 第二章 设计方案 . 4 2.1任务要求 . 4 2.2设计 原理 . 4 2.3设计 方案的确定 . 4 第 三 章 硬件设计 . 5 3.1 单片机的选型 . 5 3.2 时钟电路 . 7 3.3 复位电路 . 7 3.4显示 电路 . 7 3.5按键电路 . 9 3.6 74LS245驱动器 . 10 3.7系统原理图 . 11 第 四 章 软件设计 . 13 4.1主程序 . 13 4.2调时子 程序 . 14 4.3定时中断子程序 . 15 4.4 软件消抖 . 错误!未定义书签。 第 五 章 调试与运行 . 错误!未定义书签。 5.1 PROTEUS ISIS 的介绍 . 18 5.2 仿真结果 . 错误!未定义书签。 第六章 总结 . 21 参考文献 . 22 致谢 . 23