基于单片机的数字时钟的设计摘 要本 次 设 计 的 数 字 时 钟 硬 件 部 分 主 要 包 括 STC89C52 单 片 机 、DS1302 时钟芯片、LCD1602 液晶显示屏、DS18B20 温度传感器等部件。STC89C52 单片机具有低功耗高性能的特点,DS1302 时钟芯片拥有高性能、低功耗、误差小、使用寿命长的特点。它不仅可以对年、月、日、时、分、秒进行记录,同时还拥有闰年补偿功能。LCD1602 液晶显示屏则可以将年、月、日、时、分、秒和温度等信息 显示出来。DS18B20 温度传感器具有实时检测温度的功能
该数字时钟最终具有时间显示、闹钟提醒、温度显示、秒表计时功能。关键词:单片机;液晶屏;数字时钟;Design of electronic clock based on single chipAbstractThe digital clock hardware part of this design mainly includes STC89C52 single-chip microcomputer, DS1302 clock chip, LCD1602 LCD screen, DS18B20 temperature sensor and other components
STC89C52 MCU has the characteristics of low power consumption and high performance, DS1302 clock chip has the characteristics of high performance, low power consumption, small error, long service life,it can not only for years, months, days, ho