摘 要设计用 AT89C51 芯片的单片机作为控制部件的核心,显示方式使用动态扫描的方式,通过 AT89C51 单片机的控制,并结合 7407 驱动电路来作为显示电路的驱动部分,利用发光二极管来作为显示器件。从而实现显示日期、定时、显示时间、闹铃等功能的显示通过 6 个发光二极管显示出来,同时,倒计时、进行调时、设置日期、设定闹铃等功能利用6 个按键来实现。各功能的实现都通过数码管相应的显示出来,定时时间或闹铃时间到时 ,蜂鸣器会自动响起,当按下定时键或闹铃键时,蜂鸣器声音会停止。利用汇编语言来编写软件部分的程序,分为闹铃、延迟、调时、显示等部分。通过软硬件结合来实现整体功能,从而,达到设计目的。关键词:电子钟;单片机;动态扫描;汇编语言AbstractDesign using AT89C51 chip microcontroller as the core of the control unit, display mode using dynamic scanning way, by AT89C51 single chip microcomputer control, and combined with 7407 driven part of the driving circuit for use as a display circuit, using light-emitting diodes as a display device. So as to realize display date time, time, alarm display through 6 led display, at the same time, the countdown, adjusting, set date, set the alarm functions such as using six keys to implementation. The realization of each function is through digital tube display the corresponding, timer or alarm time arrives, buzzer rang, automatically when press the timer button or alarm button, buzzer sound will stop. Using assembly language to write the software part of the program, is divided into alarm, such as delay, adjustment, display part. Combining software and hardware to achieve the overall function, thereby, to meet the design purpose. Keywords:Electric clock; MCU; Dynamic state scanning; assembler language目 录1 绪论.............................................................................................................................................11.1 电子时钟的讨论背景...................