1、题 目:电子时钟的设计与实现 摘摘 要要 电子时钟主要是利用电子技术将时钟电子化、 数字化, 拥有时钟精确、 体积 小、 界面友好、可扩展性能强等特点,被广泛应用于生活和工作当中。另外,在生活和 工农业生产中,也常常需要温度,这就需要电子时钟具有多功能性。 本设计主要为实现一款可正常显示时钟/日历、测量环境温度、带有定时闹铃 的多功能电子时钟。 本文对当前电子钟开发手段进行了比较和分析,最终确定了采用单片机技术实 现多功能电子时钟。本设计应用 AT89C51 芯片作为核心,7 位 LED 数码管显示,使 用 DS1302 实时时钟日历芯片完成时钟/日历的基本功能,同时利用 DS18B20 温度
2、传 感器测量环境温度。这种实现方法的优点是电路简单,性能可靠,实时性好,时间 和温度精度高,操作简单,编程容易。 该电子时钟可以应用于一般的生活和工作中,也可通过改装,提高性能,增加 新功能,从而给人们的生活和工作带来更多的方便。 关键词关键词:电子时钟;多功能;AT89C51;时钟日历芯片;温度传感器 AbstractAbstract The electronic clock mainly uses the electronic technology make the clock computerization, the digitization, with the clock precis
3、ion, small size, friendly interface, scalable performance and other characteristics, was widely used in life and work. Measuring temperature, in life, industry and agricultural production, so electronic clock need multi-function. The design for the main implementing a clock/calendar can be displayed
4、 normal, collecting personal ambient temperature, with the timing alarm of the multi-function electronic clock. Comparing and analysising the development technology of the electron clock, the design determines to use the MCU technology to realize the multi-functional electron clock. This design application AT89C51 as a core chips, 7 LED digital displaying, using DS1302 real-time clock chip to complete the basic function of the clock/calendar. At the same time the design use of DS18B20 temp