1、 I 摘 要.II Abstract . III 第一章 绪论. 1 第二章 方案论证与比较. 2 2.1 数字时钟方案. 2 2.2 数码管显示方案. 2 第三章 系统设计. 3 3.1 总体设计. 3 3.1.1 系统说明 3 3.1.2 系统框图 3 3.2 模块设计. 4 3.2.1 电源部分 4 3.2.2 复位电路 4 3.2.3 程序下载接口 5 3.2.4 位选部分 5 3.2.5 数码管的连接电路 6 3.2.6 控制部分 7 第四章 汇编语言编程. 9 设计总结. 19 附录 1 20 附录 2 21 参考文献. 24 II 摘 要 单片机自 20 世纪 70 年代问世以来
2、,以其极高的性能价格比,受到人们的重视和 关注,应用很广、发展很快。单片机体积小、重量轻、抗干扰能力强、环境要求不高、 价格低廉、可靠性高、灵活性好、开发较为容易。由于具有上述优点,在我国,单片 机已广泛地应用在工业自动化控制、自动检测、智能仪器仪表、家用电器、电力电子、 机电一体化设备等各个方面,而 51 单片机是各单片机中最为典型和最有代表性的一 种。 这次毕业设计通过对它的学习、 应用, 以 AT89S51 芯片为核心, 辅以必要的电路, 设计了一个简易的电子时钟,它由 4.5V 直流电源供电,通过数码管能够准确显示时 间,调整时间,从而到达学习、设计、开发软、硬件的能力。 关键字 单片
3、机;数码管 III Abstract SCM since the advent of nineteen seventies, with its high price performance ratio, attention and concern, a very wide application, development is very fast. SCM small size, light weight, strong anti-interference ability, environmental requirements is not high, low price, high reli
4、ability, flexibility is good, develop more easily. Because of these advantages, in our country, SCM has been widely used in industrial automation control, automatic detection, intelligent instruments, household appliances, power electronics, electromechanical integration equipment and other aspects,
5、 and 51 SCM is the most typical and the most representative one. The graduation design through the study, the application of it, to AT89S51 chip as the core, with the necessary circuit, design a simple electronic clock, it is powered by 4.5V DC power supply, through the digital tube can display time
6、, adjust the time, so as to achieve the study, design, development of soft, hardware can Keywords microcontroller; digital tube 1 第一章 绪论 时钟,自从它发明的那天起,就成为人类的朋友,但随着时间的推移,科学技术 的不断发展,人们对时间计量的精度要求越来越高,应用越来越广。怎样让时钟更好 的为人民服务,怎样让我们的老朋友焕发青春呢?这就要求人们不断设计出新型时 钟。 现今,高精度的计时工具大多数都使用了石英晶体振荡器,由于电子钟,石英表, 石英钟都采用了石英技术,因此走时精度高,稳定性好,使用方便,不需要经常调校, 数字式电子钟用集成电路计时时,译码代替机械式传动,用 LED 显示器代替显示器 代替指针显示进而显示时间,减小了计时误差,这种表具有时,分,秒显示时间的功 能,还可以进行时和分的校对,片选的灵活性好。 时钟电路在计算机系统中起着非常重要的作用,是保证系统正常工作的基础。在 一个单片机应用系统中,时钟有两方面的含义:一是指为保障系统正常工作的