基于单片机的电子万年历
- 格式:doc
- 大小:837.05 KB
- 文档页数:25
1
论文题目 基于单片机的电子万年历
(英 文) Design of Electronic Calendar based
on single Chip Microcomputer
摘 要
现今信息技术飞速发展,时间和每一个人都有非常密切的相互联系,时间对任何人都有着非常重要的影响。随着科技的快速发展,流逝的时间,我们从根据太阳来判断时间,发展到了用钟摆看时间,到现在又有了各种电子表等。当各类电子表在我们生活中广泛应用的时候,电子万年历的的出现又把我们引入到一个全新的时代。电子万年历是一种使用非常广泛的日常计时工具,对现代社会越来越流行。它可以对年、月、日、周日、时、分、秒进行计时,还具有闰年补偿等多种功能,还具有时间校准等功能。
本设计是基于51系列的单片机进行的电子万年历设计,主要由时钟芯片DS1302采集数据到单片机进行处理再通过LCD1602显示出来。电子万年历的软件部分是使用c语言编写,主要用到的硬件电路有时钟芯片DS1302、液晶显示LCD1602,主控制芯片AT89C51,还有按键。
关键词:单片机, LCD602, AT89C51 ,DS302
2
Abstract
Nowadays information technology develops rapidly, and time and everyone have
very close interconnections, and time has a very important influence on anyone. With
the rapid development of science and technology, the time elapsed, we judge the time
according to the sun, develop to use the pendulum to watch the time, and now have all
kinds of electronic watches and so on. When all kinds of electronic watches are
widely used in our lives, the advent of electronic calendar brings us to a whole new
era. Electronic calendar is a kind of widely used daily timing tool, which is becoming
more and more popular in modern society. It can time the year, month, day, Sunday,
hour, minute, second, also have leap year compensation and so on many functions,
still have time calibration and so on function.
This design is based on the electronic calendar design of 51 series of single-chip
microcomputer, mainly by the clock chip DS1302 collecting data to the single chip
microcomputer for processing and then through LCD1602. The software part of the
electronic calendar is written in c language. The main hardware circuits used are clock
chip DS1302, liquid crystal display LCD1602, master control chip AT89C51, and
buttons.
Key words: Microcontroller;LCD1602;AT89C51;DS1302
3
目录
目录 ..................................................................................................... 3
第1章 绪论 ...................................................................................... 4
1.1背景及目的.............................................................................................. 4
1.1.1课题研究背景.............................................................................
4
1.1.2选题的意义及目的..................................................................... 4
1.2 国内外发展现状及水平......................................................................... 4
第2章 系统的方案选择及论证 ...................................................... 6
2.1 单片机芯片选择..................................................................................... 6
2.2 时钟芯片的选择与论证......................................................................... 6
2.3 显示模块的选择与论证......................................................................... 6
2.4 电路设计最终方案................................................................................. 7
第3章 系统的硬件设计与实现 ...................................................... 8
3.1 电路设计框图......................................................................................... 8
3.2系统硬件概述.......................................................................................... 8
3.3 系统的电路设计..................................................................................... 8
3.3.1 系统总体电路设计图.................................................................. 9
3.3.2单片机主控制模块....................................................................... 9
3.3.3 时钟电路模块............................................................................ 12
3.3.4 显示模块.................................................................................... 16
第4章 系统的软件设计 ................................................................ 19
4.1 程序流程框图:................................................................................... 19
第5章 Proteus软件仿真与测试 ................................................... 22
5.1 仿真软件介绍....................................................................................... 22
5.2 Proteus 仿真效果.................................................................................. 22
第6章 总结与体会 ...................................................................... 24
参考文献........................................................................................... 25
附录1:程序 ..................................................... 错误!未定义书签。
4 第1章 绪论
1.1背景及目的
1.1.1课题研究背景
在当代繁忙的工作与生活中,时间与我们每一个人都有非常密切的关系,每个人都受到时间的影响,随着社会、科技的发展,人类得知时间,从观太阳、摆钟到现在电子钟,不断研究、创新。为了在观测时间的同时,能够了解其它与人类密切相关的信息,比如温度、星期、日期等,电子万年历诞生了,它集时间、日期、星期和温度功能于一身,具有读取方便、显示直观、功能多样、电路简洁等诸多优点,符合电子仪器仪表的发展趋势。伴随着电子技术的迅速发展,特别是随大规模集成电路出现,给人类生活带来了根本性的改变。由其是单片机技术的应用产品已经走进了千家万户。电子万年历的出现给人们的生活带来的诸多方便,作为一种附加功能,现在越来越广泛的被应用于各种电子产品中,具有广阔的市场前景。