基于MCS-51单片机实现的万年历详细!推荐.docVIP

  • 2
  • 0
  • 约2.34万字
  • 约 52页
  • 2018-04-28 发布于湖北
  • 举报

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

基于MCS-51单片机实现的万年历详细!推荐

摘 要 本设计是一个MCS-51单片机实现的万年历。 本文首先描述系统硬件工作原理,并附以系统结构框图加以说明,着重介绍了本系统所应用的各硬件接口技术和各个接口模块的功能及工作过程,其次,详细阐述了程序的各个模块和实现方法。本设计以数字集成电路技术为基础,AT8952单片机技术为核心。本文编写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。 本系统以单片机的语言进行软件设计,为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了。关键词:单片机; ;; 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 目 录 摘 要 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 设计方案论证 功能要求 方案确定 按照系统设计功能的要求,初步确定设计系统由主控模块、显示模块、键盘接口模块、电源模块5个模组成。另外再扩充个温度检测模块,:单片机为主控制器通过单片机内的定时器,得出一秒的时间,再根据秒、分、时、日、月、年之间的进制关系,完成基本的时钟功能,再通过LCD液晶显示模块显示出来。温度检测部分由热敏电阻将温度转换成模拟量的电压信号,经A/D转换器,将其转换成对应的数字量,再通过单片机把

文档评论(0)

1亿VIP精品文档

相关文档