基于单片机的LCD时钟的设计.doc
文本预览下载声明
本科生毕业论文
基于单片机的LCD时钟的设计
THE DESIGN OF
LCD CLOCK BASED ON SINGLE-CHIP MICROCOMPUTER
系 别:
专 业:
班 级:
学生姓名:
指导老师:
完成日期:
摘要
随着人类科技文明的发展,人们对于时钟的要求在不断地提高。时钟已不仅仅被看成一种用来显示时间的工具,在很多实际应用中它还需要能够实现更多其它的功能。高精度、多功能、小体积、低功耗,是现代时钟发展的趋势。本文正是基于这种方向设计一个符合指标要求的时钟。本设计是基于单片机技术原理,以单片机芯片AT89S51作为核心控制器,通过硬件电路的制作以及软件程序的编制,设计出的一个LCD时钟系统。该时钟系统包括了实时控制电路、校时定时电路、显示电路、报时电路等几部分的设计。设计以硬件和软件相结合为指导思想,通过软件编程实现系统大部分功能,电路简单明了,系统稳定性高。主要硬件有:AT89S51单片机、实时时钟芯片DS1302、字符型液晶显示器LCD1602和若干按键等。软件采用C语言编写实现,并依据程序应用Keil软件进行了仿真调试,对出现的问题进行分析和反复修改,最终得到正确并符合设计要求的结果。
设计完成的LCD时钟能达到本设计的要求。能够准确显示时间(显示格式为“TIME:时时:分分:秒秒”),并具有可随时进行时间调整、定时时间设置、闹铃开/关等功能。本系统计时精确、体积小、功耗低,具有很强的实用性,可以广泛应用在生活,学习和工作等领域。
关键词:单片机;LCD时钟;时钟芯片DS1302;Keil
ABSTRACT
With the development of human’s scientific and technological civilization, the demands for the clock are improving constantly. The clock has already not been merely regarded as a kind of tool used for showing time. It needs to integrate more other functions in many practical applications. Modern clocks have the characteristic of high-precision, multi-functional, small and low power dissipation. The paper is based on this direction to design a clock in line with requirements.
This design is the system of LCD clock based on SCM of AT89S51 as the center controller, there is detailed introduction to the realization of hardware circuit and software procedure’s establishment of this LCD clock in the article. In the clock system, the main contents are designs of real-time clock control circuit, correcting and timing circuit, display circuit, time signal circuit. The hardware and software integration are used in the design which has the simple circuit and stabile system. The main hardware includes SCM of AT89S51, DS1302 clock chip, character LCD1602 and a number of buttons. Software design uses C la
显示全部