基于mcs-51单片机实现的万年历详细!.doc

  1. 1、本文档共73页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要 本设计是一个基于MCS-51单片机实现的万年历。 本文首先描述系统硬件工作原理,并附以系统结构框图加以说明,着重介绍了本系统所应用的各硬件接口技术和各个接口模块的功能及工作过程,其次,详细阐述了程序的各个模块和实现方法。本设计以数字集成电路技术为基础,AT89S52单片机技术为核心。本文编写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。 本系统以单片机的汇编语言进行软件设计,为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了。系统通过LED显示数据,所以具有人性化的操作和直观的显示效果。可以显示时间、阳历日期、星期,并有闹铃及检测温度的功能。 关键词:单片机; DS1302;DS18B20;LED Abstract The design is a based on the MCS-51 perpetual calendar. This article first describes the system hardware principle of work,and attaches by the system structure diagram performs to explain,emphatically introduced this system applies various hardware connection technology and each interface module function and the workprocess, next, it is elaborated the procedure of each module and how they realized. This design is based on the digital IC, and the core of AT89C52 MCU technique. This article writed with the guiding of software and hardware unifies, take the hardware as thefoundation, writing each programme for each functions module. This system’s software design whth the MCU HUIBIAN language, in order to be advantageous for theexpansion and change, the software design uses the design of modularization, so that the logical of the programmer become clear and it is easy to understand .This system LED to show the data,so it has the humanize operation and the intuitionistic show effect. It can show the time, Gregorian calendar, week, bell, pronunciation of time and the temperature examination. Key Words:MCU; DS1302; DS18B20; LED 目 录 TOC \o 1-3 \h \z \u 摘 要 I Abstract II 1 设计方案论证 1 1.1 功能要求 1 1.2 方案确定 1 2 主控制器和外围器件 4 2.1AT89S52单片机 4 2.2温度芯片DS18B20 5 2.3日历时钟芯片DS1302 6 2.4数码管LED 9 2.5译码器74HC138 9 3 硬件设计 10 3.1 电源设计 10 3.2 主电路设计 11 4 软件设计 13 4.1 主程序设计 13 4.2 键盘子程序设计 15 4.3 温度子程序设计 17 4.4 日历时钟子程序设计 19 4.5 显示子程序设计 21 4.6 闹钟子程序设计 21 5 系统调试 23 5.1 软件调试 23 5.2 硬件调试 23 结论 25 致谢 26 附录一 原理图 27 附录二 PCB图 28 附录三 程序清单 29 主要参考文献 48 1 设计方案论证 1.1 功能要求 1、能显示年、月、日、星期、时、分、秒。 2、能对时间进行手

文档评论(0)

yurixiang1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档