1、 学院单片机课程设计 基于 51 单片机的数字时钟的设计 学生姓名: 学生学号: 院(系) : 年级专业: 指导教师: 二一一年六月 摘 要 本文设计的是一个基于单片机 AT89C51 的数字钟自动计时器,附有复位电路, 显示电路,按键电路等。复位电路是单片机的初始化操作,除了正常的初始化外, 为摆脱困境,通过复位电路可以重新开始。 时钟电路采用 12MHz 的晶振,作为系统 的时钟源,具有较高的准确性。 在上电时 LED 显示器开始显示时间并自动计时, 在按键电路中只设置了三个按 键,通过检测第一个按键按下的次数来实现调时、调分、调秒按键的作用,再通 过 LED 显示器显示时、分、秒的改变。
2、并且在 P1 端口处接了一个指示灯,指示 按键的按下。在这里主要是以 AT89C51 单片机为核心控制器,P0 口接 LED 显示 模块,P1 口接按键的,通过按键输入来控制显示器的显示。 关键字 AT89C51,LED 显示器,数字时钟 ABSTRACT This design is based on AT89C51 single-chip digital clock auto-timer, with a reset circuit, display circuit, the key circuit. Reset circuit is a microcontroller initializa
3、tion, in addition to the normal initialization, for the bail out through the reset circuit can begin again. 12MHz crystal clock circuit, as the system clock source, with high accuracy. LED display on power began to show time and automatic timing, set in the key circuit only three buttons, a button p
4、ressed by detecting the number of the first to achieve the transfer, the transfer points, transfer second key role, through the LED display hours, minutes, seconds to change. And then at the P1 port of a light to indicate the button press. Here is AT89C51 microcontroller as the core of the main controller, P0 port access the LED display module, P1 port access keys, keystrokes to control the monitor display. Keywords AT89C51, LED display, digital clock 1 目 录 摘要摘要 . ABSTR