当前位置:文档之家› 多功能智能时钟系统设计

多功能智能时钟系统设计

多功能智能时钟系统设计
多功能智能时钟系统设计

多功能智能时钟系统设计作者:XXX

专业名称:XXXX

指导教师:XX讲师

摘要

随着对时间的要求越来越精确,人们创造了时钟。现在,电子时钟更是人类最基本,最必不可少的一个工具。在上个世纪,电子时钟大多数采用的是分离元件。而这样制造出来的电子时钟体积庞大,使用起来也很麻烦。随着科技和电子行业的飞速发展,现在的电路都是高度集成的。不仅节约空间资源,成本也很低。然电子产品给我们的生活带来了更多的便利。

本设计的主控系统采用的是单片机,利用它自带的定时器来进行设计。单片机具有成本低廉、体积小、操作简便等优点。它能够形成各式各样的自动控制系统。设计中将采用单片机中最为典型也是我们在课堂上学习过的51系列的单片机,本次设计以STC89C51单片机为核心,以时钟芯片DS1302为依托,借助外围少量的按键电路实时校准,通过LCD1602液晶显示器来显示日期和时间。在程序的部分,我采用的是C语言来进行编写。使用C语言更有利于我的理解,编写以及修改。

本论文主要从系统设计方案的选择,硬件、软件部分的介绍说明以及实物的演示上来详细的描述了整个设计的大致容。设计主要研究的是智能时钟以及日历显示功能。我们利用了单片机的控制能力和时钟芯片的及时通信的特点,按键来控制时间和日历在液晶显示屏上的显示。最后,在整点的时候通过蜂鸣器进行报时。

关键词:单片机电子时钟C语言

.. .

.

Abstract

With the demand for more precise, people create a clock.

Now, the electronic clock is human the most basic, most essential as a tool. In the last century, most electronic clock use is separation of components. And this produced electronic clock bulky, use is also very troublesome. Along with the rapid development of science and technology and electronic industry, now circuit are height integrated. Not only save space resource, cost is also very low. Although electronic products to our life brought more convenience.

Procedures will be used in the design of the main control system is a single chip, using its own timer design. SCM has low cost, the volume is small, easy to operate, etc.. It can form a variety of automatic control system. The design uses a microcontroller is the most typical and I were in the classroom study of 51 series microcontroller, the design STC89C51 microcontroller as the core to the clock chip DS1302 as the basis, by means of a peripheral small amounts of key circuit real-time calibration through LCD1602 LCD display to display the date and time. In part, I use C language to write. The use of C language is more conducive to my understanding, writing and revision.

This paper mainly from the selection of the design scheme of the system, hardware, software part of the description and physical demonstration up detailed describes the general content of the whole design. Design is the main research is intelligent clock and calendar display function. We use the MCU control can timely communication of power and clock

chip keys to control the time and calendar on the LCD screen display. Finally, when the whole point of the buzzer timekeeping. Keywords: single chip microcomputer, electronic clock, C language

目录

摘要 ................................................................................................ I Abstract........................................................................................ II

目录 .............................................................................................. III

前言 (1)

1 论文设计概述 (2)

1.1 设计任务 (2)

1.2 设计要求 (2)

1.3 系统整体框图 (2)

2 系统方案选择 (4)

2.1 总体方案设计 (4)

.

2.2 主要模块的方案设计 (4)

2.2.1 主控芯片方案 (4)

2.2.2 显示模块方案 (5)

3 系统模块电路介绍及设计 (6)

3.1 单片机模块 (6)

3.1.1 单片机基础知识介绍 (6)

3.1.2 STC89C51介绍 (7)

3.1.3 单片机最小系统电路 (9)

3.2 时钟模块 (11)

3.2.1 DS1302介绍 (11)

3.2.2 DS1302电路原理 (13)

3.3 液晶显示模块 (13)

3.3.1 LCD1602引脚及说明 (13)

3.3.2 LCD1602电路原理 (15)

3.4 蜂鸣器报警模块 (15)

3.5 矩形按键电路模块 (16)

4 系统软件设计 (18)

.

4.1 软件设计流程 (18)

4.2 系统设计程序 (21)

4.2.1 主程序 (22)

4.2.2 LCD1602驱动程序 (22)

4.2.3 DS1302驱动程序 (22)

5 系统仿真结果及说明 (23)

5.1 仿真软件介绍 (23)

5.1.1 Protues软件介绍 (23)

5.1.2 Keil软件介绍 (24)

5.2 时钟系统的仿真 (25)

6 系统实物调试及结果 (27)

6.1 系统实物 (27)

6.1 系统实物调试结果及说明 (27)

总结 (30)

参考文献 (31)

致 (32)

.

附件1 主程序 (33)

附件2 LCD1602驱动程序 (36)

附件3 DS1302驱动程序 (39)

.

.. .

.

前言

现在,电子产业随着科学技术的发展而变得日益强大。单片机的

集成度也越来越高,体积也越来越小。技术的进步促使人们对智能闹钟的研究和应用的重视度极度提高,这样人们对时钟设备的要求也越来越高,又加上微处理器ARM、FPGA、DSP的广泛应用,电子技术更是得到了极提高。单片机的使用是十分灵活的,可以用于很多方面,论文中用到STC89C51的优势是:功耗十分的低、成本便宜、硬件设计简单,工业控制、传感器技术,数据采集、智能控制、仪器仪表等领域中。集成电路是电子工业时代的重要发明,其中以单片机的出现最为明显,它的出现使自动控制和智能控制各方飞速的发展。

单片机智能时钟的优点是体积小、价格低、可靠性高、功能全。我们广泛的用它在各种智能控制仪器定时与时间测量中,使这些仪器到达高度的自动化,键盘取代了传统的智能仪器中那些开关和旋钮,测试人员通过选择相应的按键来测试,这样就会省掉很多麻烦的人工调试过程。智能仪器能够完成自我自动校准,自动选择合适的测量围,大部分能自动调整测试点,这样就给我们带来了极大方便,同时精度也相应的提高了几百倍。

另外,在电子科技领域,时间作为重要的参数之一,许多电参数的测量方案、结果都与他的测量有着不可分割的密切关系,所以他被广泛的应用在科研、工业控制、教学、测量仪器中。

相关主题
文本预览
相关文档 最新文档