基于DS1302的万年历毕业论文 数码管显现 附程序 硬件电路图

2019-02-15 21:25

XX学院

毕 业 论 文

作 者: 学 号: . 学 系: 电子信息工程与技术系 . 专 业: 应用电子 . 题 目: 电子万年历

指导者:

2011 年 01月 长沙

XX学院专科生毕业论文评语

系 部: 电子信息工程与技术 专 业: 应用电子 学生姓名: 班 级 学 号

题 目: 电子万年历

指导教师评语: 指导教师(签字): 年 月 日 答辩委员会(小组)评语: 答辩委员会(小组)负责人(签字): . 年 月 日

题目: 电子万年历论文

摘 要

单片机应用技术飞速发展,纵观我们生活中广泛使用的各种智能IC卡、电子宠物等,这些都离不开单片机。单片机是集CPU ,RAM ,ROM ,定时,计数和多种接口于一体的微控制器。它体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。而51系列单片机是各单片机中最为典型和最有代表性的一种。这次毕业设计通过对它的学习和应用,从而达到学习、设计、开发软、硬的能力。

本文通过对一个基于单片机实现万年历功能电子时钟的设计,从而达到学习、了解单片机相关方面的应用。系统由主控制器AT89C51、时钟电路DS1302、显示电路、按键电路、和复位电路等部分构成,能实现时钟日历显示的功能,通过按键能对年、月、日、时、分、秒进行修改。这种实现方法的优点是电路简单,性能可靠,实时性好,时间精度高,操作简单,编程容易。

该电子时钟可以应用于一般的生活和工作中,也可通过改装,提高性能,增加新功能,从而给人们的生活和工作带来更多的方便。

关键词:万年历,AT89C51,时钟日历芯片

Title: Electronic calendar papers

Abstract

Microcomputer application technology rapid development, throughout our lives is widely used in all kinds of intelligent IC card, electronic pets, etc, these are inseparable from microcontroller. SCM is set for the CPU, RAM, ROM, time, count and multiple interface in the integration of micro controller. Its small size, low cost, the function is strong, widely used in intelligent industry and industrial automation. And 51 series microcontroller is the most typical and various microcontroller most representative one. The graduation design through to its learning and application, thus achieved the study, design, development, soft and hard ability.

This article through to one based on SCM realizing calendar function electronic clock design, so as to achieve the learning, single-chip technique related applications. System consists of the main controller AT89C51, clocking circuit DS1302, display circuit, key circuits, and reset circuit etc components, can realize the function of clock calendar displays, through the keys to date and time, minutes and seconds modified. The approach is the advantage of circuit is simple, reliable performance, good real-time, high precision time, simple operation and programming of easy.

The electronic clock can be applied to general life and work, also can improve performance by disguised himself, and adding new functions, thus to people's life and work to bring more convenient.

Keywords: calendar, AT89C51,clock calendar chip

目 录

一、设计要求与方案论证 ?????????????????????? 1 1.1 设计要求 ?????????????????????????? 1 1.2 方案设计与论证 ??????????????????????? 1

1.2.1单片机芯片的选择方案和论证??????????????? 1 1.2.2 显示模块选择方案和论证??????????????????? 1 1.2.3时钟芯片的选择方案和论证???????????????? 2 1.2.4 电路设计最终方案决定?????????????????? 2 二、基于单片机的万年历硬件设计?????????????????? 2 2.1 主要IC芯片选择 ?????????????????????? 2 2.1.1单片机????????????????????????? 2 2.1.2 DS1302????????????????????????? 4 2.2 万年历硬件电路设计 ????????????????????? 8

2.2.1时钟电路设计 ?????????????????????? 9 2.2.2显示电路 ???????????????????????? 9 2.2.3按键电路 ????????????????????????10 2.2.4复位电路???????????????????????? 11 三、万年历软件设计?????????????????????????13 3.1 主程序设计????????????????????????? 13 3.2 子程序设计????????????????????????? 14

3.2.1 实时时钟日历子程序设计?????????????????14 3.2.2 显示子程序设计?????????????????????14 3.2.3 中断0子函数设计????????????????????14 3.2.4 时间设置函数ftion0???????????????????14 3.2.5 加1修改时间功能函数cum???????????????? 15

3.2.6 日期设置函数ftion1???????????????????15 3.2.7 加1修改日期功能函数cum1????????????????15 四、系统调试??????????????????????????? 20 4.1 单片机基础电路测试????????????????????? 21 4.2 显示电路调试???????????????????????? 21 4.3 DS1302电路调试??????????????????????? 22 结论????????????????????????????????23 致谢 ???????????????????????????????24 参考文献????????????????????????????? 25 附录A 程序????????????????????????????26 附录B万年历硬件电路原理图???????????????????? 38


基于DS1302的万年历毕业论文 数码管显现 附程序 硬件电路图.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:中原城市群旅游合作问题研究

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: