1、 电子系统设计应用论文电子系统设计应用论文 题 目: 带有秒表功能数字时钟的设计 专 业: 电子信息工程 I 带有秒表功能数字时钟的设计带有秒表功能数字时钟的设计 摘要摘要 :本次设计以 AT89C52 芯片为核心,辅以必要的外围电路,设计了一个简易的数字电 子时钟,它由 9V 直流电源供电。在硬件方面,除了 CPU 外,使用六个七段 LED 数码管显示, LED 采用的是动态扫描显示,通过调试 LED 能够比较准确显示时、分、秒。四个个简单的按 键实现对时间的调整。软件方面采用。整个电子时钟系统能够完成时间的显示,调时,定时 闹钟,复位等功能。软件方面采用汇编语言编程,使用 keil 软件进
2、行在线的程序烧写,涉及 了单片机的定时和中断的使用 关键词关键词:数字钟;秒表;AT89C52; The Design and Manufacture of Digital Electron Clock Abstract:The AT89C2051 chip design at the core,with the necessary peripheral circuits, designed a simple digital clock, it is powered by 9V DC power supply. In terms of hardware, in addition to CPU,
3、 the use of six LED Seven-Segment LED display, LED used is a dynamic scan showed that the use of 9014 to drive the chip. Through more accurate debug LED can display hours, minutes. Three simple keys to achieve the adjustment of time. Software using assembly language programming. The entire electroni
4、c time clock system to complete the display, transfer, the timing clock and reset functions. Software using assembly language programming, the use of online keil software programmer procedures, involving a single-chip timing and the use of interruptions. Key words: electron clock;51 series MCU;AT89C
5、52; 目 录 摘要I AbstractI 第一章 绪论 . 1 1.1选题的依据及意义 1 1.2 国内外研究现状及发展趋势 1 1.3 本课题研究内容 2 第二章 数字钟的系统分析与设计 . 2 2.1 设计要求 . 2 2.2 整体方案设计 2 2.2.1 芯片的选择. 3 2.2.2 显示模块选择方案和论证 3 2.2.3 时钟芯片的选择方案 . 3 第三章 系统的硬件设计与实现 4 3.1 数字钟电路设计框图 . 4 3.2 最小系统设计 4 3.3 显示电路 . 5 3.3.1 LED 数码显示器有两种连接方法 6 3.4 按键电路及总设计图 . 6 第四章 软件设计 8 4.1
6、主程序执行流程 8 4.2时钟设置功能子程序 9 4.3 T0中断服务程序框图 9 第五章 系统调试与仿真 . 11 5.1 系统仿真 . 11 5.2 软件调试 . 11 5.3 硬件调试 . 12 5.4 测试结论 . 12 结 论. 13 参考文献 14 附 录. 15 附录一:硬件电路仿真图 15 附录二:硬件电路原理图 16 附录三:实物图 17 1 第一章 绪论 1.1 选题的依据及意义 单片机模块中最常见的是数字钟,数字时钟路技术实现时、分、秒与机械式时钟相比 具有更高的准确性和直观性,且无机械装置,具有更更长的使用寿命,因此得到了广泛的 使用。单片机应用的重要意义还在于,它从根本上改变了传统的控制系统设计思想和设计 方法。从前必须由模拟电路或数字电路实现的大部分功能,现在已能用单片机通过软件方 法来实现了。这种