c语言液晶显示当前时间,液晶显示数字时钟(C语言).doc

液晶显示数字时钟(C语言)

唐 山 学 院

毕 业 设 计

设计题目:多功能液晶显示数字时钟的设计与实现

系 别: 班 级: 姓   名:

指 导 教 师:

2010年月 日多功能液晶显示数字时钟的设计与实现

摘 要

数字时钟主要是利用电子技术将时钟电子化、数字化,拥有时钟精确、体积小、界面友好、可扩展性能强等特点,被广泛应用于生活和工作当中。另外,在生活和工农业生产中,也常常需要温度,这就需要数字时钟具有多功能性。

本设计主要为实现一款可正常显示时钟、日历、带有定时闹钟的多功能数字时钟。

本设计对当前数字时钟开发手段进行了比较和分析,最终确定了采用单片机技术实现多功能数字时钟。本设计采用STC89C52RC单片机芯片作为中央处理器,外接DS1302时钟芯片提供时钟日历信息,星期通过编程计算自动生成,并利用液晶显示屏LCD1602来显示时钟、日历、星期、闹钟等信息,通过按键来设置或校准相关信息,并通过+5V电源为此系统供电测试电路完成所有功能制成这种实现方法的优点是电路简单,性能可靠,实时性好,操作简单,编程容易。

该数字时钟可以应用于一般的生活和工作中,也可通过改装,提高性能,增加新功能,从而给人们的生活和工作带来更多的方便。

关键词:数字时钟 单片机系统 STC89C52RC DS1302 LCD1602

Design and Implementation of Multi-function LCD Digital Clock

Abstract

Digital clock is using electronic technology to clock electronic, digital, with the clock precision, small size and friendly interface, scalability and strong performance characteristics, is widely used to live and work among. In addition, living and industrial and agricultural production, are often required temperature, which requires digital clock with versatility.

The key for the realization of a design can be displayed properly clock, calendar, alarm clock with multi-functional electronic time clock.

This article discusses the development of digital clock means were compared and analyzed finally determine the function of using SCM technology digital clock. This design uses STC89C52RC single chip as the CPU, external clock DS1302 clock chip to provide calendar information, automatically generated by programming a week, and use LCD1602 LCD displays clock, calendar, week, alarm clock and other information, through the button to set or calibration information, and through the +5 V power supply for this system. When all of the features produced after the completion of prototype .This method provides the advantage of simple circuit,reliable performance, real-time, simple operation, easy programming.

The digital clock can be applied to general life and work, c

你可能感兴趣的:(c语言液晶显示当前时间)