1、多功能数字电子钟的设计多功能数字电子钟的设计 摘要摘要 多功能数字电子钟凭借自身优势在生活中得到了广泛的运用, 一个数字时钟 的控制核心是单片机。 通过单片机的时钟信号达到实现计时的功能, 时间数据可 以经由单片机输出,利用显示器显示出结果。校时,定时,闹钟,倒计时等功能 利用键盘实现。 本毕业设计通过 51 系列单片机 AT89C2051 来设计多功能数字电子 时钟,编程用 C 语言,能够实现秒,分,小时和日,月,年的准确显示、定时闹 钟等功能。本次毕业设计的电子时钟系统由时钟电路,LED 显示电路,定时报警 电路,按键调整电路组成。数字时钟芯片具有可编程的优点,功能扩展容易,如 在电路板上
2、留有一个温度传感器,电源输出插座等,易于功能扩展。 关键词:单片机;AT89C2051;C 语言 The design of the multi-function digital electronic clock ABSTRACT Multi-function digital electronic clock with their own advantages have been widely used in life, the control center is a single-chip digital clock. Achieve timing functions through the
3、 microcontroller clock signal is reached, the time data can be output via the MCU using the display shows the results. When the school, timing, alarm clock, countdown and other functions using the keyboard implementation. The graduation AT89C2051 through 51 series multifunction digital electronic cl
4、ock design, Using C programming language, can be achieved in seconds, minutes, hours and days, months, years to accurately display, timing alarm clock and other functions. The graduate design electronic clock system by the clock circuit, LED display circuit, timer alarm circuit, key adjustment circu
5、it. Programmable digital clock chip has the advantage of easy extensions, for leave a temperature sensor, a power outlet on the board and others,it is very easy for extensions. Keyword: MCU; AT89C2051;C programming language 目录 1 1 绪论绪论 . 1 1.1 数字钟发展史 1 1.2 研究背景 . 2 1.3 研究状况 . 3 1.4 未来发展趋势 4 1.5 数字钟设
6、计研究内容 . 4 1.6 本章小结 5 2 2 单片机单片机 6 2.1 单片机(Single Chip Microsoftcomputer,简称 MCU)简介 6 2.2 单片机的发展历程 6 2.2.1 探索阶段 . 6 2.2.2 结构体系的完善阶段 7 2.2.3 发展阶段 . 7 2.2.4MCU 的成熟阶段 8 2.351 单片机的概况 . 9 2.4 单片机的应用及前景 10 2.5 本章小结 10 3 3 各个模块的特性及结构各个模块的特性及结构 11 3.1 AT89C2051 单片机模块11 3.2 LED 显示模块. 15 3.2.1LED 数码管的原理 . 15 3.2.2LED 数码管驱动方式 . 17 3.3 多功能数字电子钟技术路线 . 18 3.3.1 多功能数字电子钟结构、流程图 18 3.3.2 功能实现路线 19 3.4 本章小结 . 19 4 4 硬件电路设计硬件电路设计 . 20 4.1 复位电路 . 20 4.2 按键电路 . 20 4.3 时钟电路 . 21 4.4 显示控制电路 22 4.5 数码管显示电路 22 4.6 电源电路设