没有合适的资源?快使用搜索试试~ 我知道了~
基于AT89C52的万年历电子时钟的设计-毕业设计及基于AT89S52单片机的光电计数器设计.doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 111 浏览量
2024-05-10
23:43:41
上传
评论
收藏 8.01MB DOC 举报
温馨提示
试读
59页
基于AT89C52的万年历电子时钟的设计-毕业设计及基于AT89S52单片机的光电计数器设计.doc
资源推荐
资源详情
资源评论
摘 要
单片机应用技术飞速发展,纵观我们现在生活的各个领域,从导弹的导航装置,到飞机上各种
仪表的控制,从计算机的网络通讯与数据传输,到工业自动化过程的实时控制和数据处理,以及我
们生活中广泛使用的各种智能IC卡等,这些都离不开单片机。单片机是集CPU ,RAM ,ROM ,定时,
计数和多种接口于一体的微控制器。它体积小,成本低,功能强,广泛应用于智能产业和工业自动
化上。而51系列单片机是各单片机中最为典型和最有代表性的一种。这次毕业设计通过对它的学习
,应用,从而达到学习、设计、开发软、硬的能力。
本文以单片机为核心,采用串行时钟芯片DS1302。过去多用并行接口的时钟芯片,如
MC146818、DS12887 等。它们已能完全满足单片机系统对实时时钟的要求,但是这些芯片与单片
机接口复杂、占用地址, 数据总线接线多、芯片体积大占用空间多。显示电路采用LED动态扫描方
式,动态扫描方式节省外部接口资源。
本文通过对一个基于单片机的能实现万年历功能电子时钟的设计,从而达到学习、了解单片机
相关指令在各方面的应用。系统由主控制器 AT89C52、时钟电路 DS1302、显示电路、按键电路、
和复位电路等部分构成,能实现时钟日历显示的功能,能进行年、月、日、时、分及星期的显示。
关键词:AT89C52 芯片 DS1302 芯片 C 语言 Keil 软件 LED 动态显示;
Abstract
SCM rapid development of applied technology, we now live Looking at the various fields, from the missile's
navigation devices, to the various instruments on the aircraft control, computer network communications and data
transmission, industrial automation to the process of real-time control and data Processing, and we live in the
extensive use of the smart IC cards, these are inseparable from the SCM. SCM is set CPU, RAM, ROM, timing,
counting on one interface and a variety of microcontrollers. Its small size, low cost, feature strong, smart widely
used in industry and industrial automation. And 51 of the SCM SCM is the most typical and most representative
one. The graduation project through its study, and thereby to study, design, develop software and hardware
capabilities.
Based on SCM as the core, a serial clock chip DS1302. Past the use of parallel interface chip's clock, such as
the MC146818, DS12887, and so on. They have been able to fully meet the SCM system to the requirements of
real-time clock, but these chips and microcontroller interface complex, occupied address, data bus wiring, chip size
of the space and more. LED display circuit using dynamic scan mode, dynamic scan mode external interface save
resources.
Based on a microcontroller based on the calendar function to achieve the design of electronic clock, so as
to achieve learning and understanding of SCM related instructions in all aspects of the application. System by the
main controller AT89C52, clock circuit DS1302, show circuit, the circuit keys, and reset circuit, and other
components, to achieve the clock showed that the calendar function, capable of year, month, day, hour, minute
and weeks of shows.
Key Words:AT89C52 Chip DS1302 Chip Keil C language software LED dynamic display;
目录
摘 要...........................................................................................................................1
Abstract .......................................................................................................................2
目 录 ........................................................................................................................3
第 1 章 引 言....................................................................................................3
1.1 设计目的 ......................................................................................................................3
1.2 基本要求 ......................................................................................................................4
1.3 设计说明 ......................................................................................................................4
第 2 章 系统设计....................................................................................................5
2.1 应用软件及主要芯片介绍 ......................................................................................5
2.1.1 Protel99 软件简介.....................................................................................5
Keil 软件简介 ......................................................................................................6
2.1.3 AT89C52 芯片简介...................................................................................7
2.1.4 DS1302 芯片简介......................................................................................7
2.2 系统硬件电路的设计 .............................................................................................10
2.2.1 单片机主控制模块的设计 ...................................................................10
2.2.2 时钟电路模块的设计 ............................................................................10
2.2.3 显示模块的设计 .....................................................................................10
2.3 系统软件流程...........................................................................................................12
2.4 实验源程序 ...............................................................................................................14
2.4.1 DS1302 驱动程序....................................................................................14
结 论..................................................................................................................20
致 谢..................................................................................................................21
参 考 文 献...........................................................................................................22
第1章引 言
1.1 设计目的
(1)掌握单片机的应用方法
(2)掌握 DS1302 芯片的原理及使用方法;
(3)掌握 LED 动态显示方法;
(4)熟悉 Keil 软件的使用方法;
1.2 基本要求
(1) 显示年、月、日、时、分及星期;
(2) 可随时可以调校年、月、日、时、分及星期;
1.3 设计说明
本设计实现一个日历时钟显示系统。首先介绍系统硬件工作原理,并附以系统结构框
图加以说明,着重介绍了本系统所应用的各硬件接口技术和各个接口模块的功能及工作过
程,其次,详细阐述了程序的各个模块和实现过程。按照系统设计功能的要求,初步确定设
计系统由主控模块、时钟模块、显示模块、键盘接口模块共 4 个模块组成,电路组成框图
如图 1.3.1 所示。本设计以数字集成电路技术为基础,单片机技术为核心。本设计主导思
想是软硬件相结合,以硬件为基础,软件辅助来进行各功能模块的编写。本系统以单片机
的 C 语言进行软件设计,增加了程序的可读性和可移植性,为了便于扩展和更改,软件的
设计采用模块化结构,使程序设计的逻辑关系更加简洁明了。
硬件电路设计主要在单片机外围电路,DS1302 芯片与单片机接口和数码管的动态显示
电路。
软件设计采用 C 语言,主要在 DS1302 芯片的初始化与单片机的数据传输和数码管扫
描程序。
单
片
机
DS130 芯片
显示电路
键盘电路
剩余58页未读,继续阅读
资源评论
omygodvv
- 粉丝: 504
- 资源: 2186
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 驱动代码驱动代码驱动代码驱动代码
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
- A pure Python library for adding tables to a Tkinter application
- Vector资源文件.zip
- MobaXterm-Installer
- 88-520告白(520气球).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功