基 于 单 片 机 的 同 步 电 子 时 钟 设计 摘 要 单片计算机既单片微型计算机。由RAM,ROM,CUP 构成,定时,计数和多种接口与一体的微型控制器。他体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。而51/52系列单片机是各单片机中最为典型和最有代表性的一种。这次毕业设计通过对它的学习,应用,从而达到学习,设计的能力。单片机模块中最常见的是数字钟,数字钟是一种用数字电路技术实现时、分、秒计时的装置,与机械式时钟相比具有更高的准确性和直观性,且无机械装置,具有更更长的使用寿命,因此得到了广泛的使用。数字钟是采纳数字电路实现对“时”、“分”、“秒”数字显示的计时装置。数字钟的精度、稳定度远远超过老式机械钟。本设计使用12MHZ晶振与单片机AT89C52 相连接,以AT89C52 芯片为核心,DS1302为时钟芯片,实现在LCD上显示日期、时间、定时,通过5个按键实现设置日期、进行调时、设定闹铃等功能,在实现各功能时LCD进行相应显示,闹铃或定时时间到时蜂鸣器响。软件部分用C 语言实现,分为显示、延迟、调时、闹铃、定时、调整日期等部分。通过软硬件结合达到最终目的。 关键词:单片机,数字钟,DS1302,LCD,C 语言 SYNCHRONOUS ELECTRONIC CLOCK DESIGN BASED ON SCM ABSTRACT A monolithic computer is single chip microcomputer. By RAM, ROM, CUP, timing, counting and multiple interfaces and the integration of the micro controller. He has the advantages of small volume, low cost, strong function, widely used in smart industries, and industrial automation. And 51 Series SCM is the most typical and the most representative one. The graduation design through the study, application, to achieve the study, design ability. SCM module are the most common digital clock, a digital clock is a kind of digital circuit technology implementation, minutes and seconds timing device, and the mechanical clock compared with higher accuracy and intuitive, and without a mechanical device, has more longer service life, so it has been widely used. A digital clock is adopting digital circuit implement...