文档介绍:毕业设计论文
基于51单片机的电子时钟设计
系部: 电子信息工程系
专业: 生产自动化
班级: 0901自动化
学生姓名:
学号:
指导教师:
2011年 9 月 9 日
摘要
随着单片机技术的飞速发展,在其推动下,现代的电子产品几乎渗透到了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高。
时间就是金钱、时间就是生命、时间就是胜利……,准确的掌握时间和分配时间对人们来说至关重要,时钟是我们生活中必不可少的工具。电子钟的设计方法有很多种,但是基于单片机并通过LCD显示的电子时钟具有编程灵活、精确度高、便于携带、显示直观等特点。
利用STC89C52单片机对DS1302时钟芯片进行读写操作并通过1602字符液晶显示实时时钟信息,这样便构成了一个单片机电子时钟。
关键词:单片机,电子时钟,STC89C52
ABSTRACT
With the rapid development of puter technology in its promotion, modern electronics into almost all areas of society, a strong impetus to the development of social productive forces and social improvement in the level of information, but also to further improve the performance of modern electronic products.
Time is a money, time is life, time is victory… Accurate grasp of time and allocation of time is crucial to people, The clock is necessary in our life tools . Clock Design There are many ways, however, produced by single chip electronic clock is more flexible programming, and easy expansion of electronic capabilities, high accuracy, easy to carry, display visual and so on.
In this paper, through the use of STC89C52 microcontroller by DS1302 clock chips for reading and writing operation and through 1602 character liquid crystal display real-time clock information so that forming a single chip electronic clock.
Key Words: Microcontroller,STC89C52,Electronic clock,
目录
绪论 1
概述 1
研究目的 1
第1章设计要求与方案论证 2
设计要求 2
系统基本方案选择和论证 2
单片机芯片的选择方案和论证 2
显示模块选择方案和论证 2
时钟芯片的选择方案和论证 3
电路设计最终方案决定 3
第2章主要元件介绍 4
STC89C52介绍 4
STC89C52主要功能及PDIP封装 4
STC89C52引脚介绍 4
STC89C52最小系统 5
DS1302时钟芯片介绍 6
DS1302概述 6
DS1302引脚介绍 7
DS1302使用方法 7
2. 3 1602字符液晶介绍 9
1602液晶概述 9
1602引脚介绍 10
1602字符液晶使用方法 10
第3章系统硬件设计 13
电路设计框图 13
系统硬件概述 13
第4章系统的软件设计 14
14
15
对DS1302读写操作函数 15
向DS1302写数据 15
从DS1302读数据 16
显示函数 17
17