基于51单片机的简易电子时钟设计摘 要今日,电子时钟是生活中不可或缺的一部分.电子时钟通过数码管显示,具有整点报时等功能,可以使得我们的生活变得更加有序.电子时钟也通过不断地改进,变得功能越来越强大。本次设计的电子时钟利用单片机STC89C51进行控制的,利用单片机自身的定时器功能,采纳数码管显示,可对电子时钟进行调整校准。此设计具有相当重要的现实意义和有用价值。基于单片机STC89C51的电子时钟,采纳数码管显示“时“分“秒”而且可用按键进行调整校准。此次设计与传统的机械表相比,它具有走的更精准,显示更直观等特点,而且单片机的数字时钟具有灵活编程,便于功能扩充等特点.本次所设计主要有三个模块:显示模块,按键模块,闹铃模块。该时钟采纳STC89C51单片机自身定时器进行计时,按键模块采纳独立式键盘(4个按键),闹铃部分由8550三极管和蜂鸣器构成,显示时、分、秒用两个四位共阴极数码管显示,具有可调整时间功能和设定闹钟功能,在设计过程中硬件和软件应同时进行。关键词:电子时钟,单片机,闹钟,蜂鸣器SIMPLE ELECTRONIC CLOCK DESIGN BASED ON 51 MCUABSTRACTToday , the electronic clock is an integral part of life 。 Through the digital display electronic clock , with the whole point timekeeping function , can make our life more orderly . The electronic clock also through continuous improvement , has become more and more powerful .The design of the electronic clock using STC89C51 MCU to control the use of single—chip , self timer function , the use of digital tube display , can adjust the calibration of the electronic clock . Has very important realistic significance and practical value of this design .The electronic clock based on MCU STC89C51 , using digital tube display ” when " ” seconds ” and the button can be used to adjust the calibration 。 And the design of the traditional mechanical watch , it has to go more accurate , more intuitive display characteristics , and the digital clock has flexible programming , easy to function expansion an...