基于单片机实时显示系统(终稿).docVIP

  • 1
  • 0
  • 约1.85万字
  • 约 32页
  • 2018-06-02 发布于福建
  • 举报
基于单片机实时显示系统(终稿)

┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 连云港职业技术学院 毕业设计(论文) 题目名称: 基于单片机的实时显示系统 学生姓名: 朱慧敏 学 号: 090104109 专 业: 电子信息工程技术 班 级: 电子091 指导教师: 李红军 2012年5月 目 录 绪论……………………………………………………………………1 1 实时显示系统的设计方案………………………………………………2 1.1实时显示系统的设计意义…………………………………………………2 1.2实时显示的工作原理………………………………………………………2 2主要芯片介绍 ……………………………………………………………4 2.1实时时钟芯片的介绍与比较………………………………………………4 2.2 STC89C51RC单片机介绍…………………………………………………5 2.3 1602液晶模块介绍………………………………………………………6 3系统硬件设计……………………………………………………………10 3. 1主控制器电路设计………………………………………………………10 3. 2其余各电路设计…………………………………………………………11 4系统软件设计……………………………………………………………16 4.1显示时、分、秒子程序流程图……………………………………………16 4.2显示年、月、日子程序流程图……………………………………………17 总结……………………………………………………………18 致谢…………………………………………………………………19 参考文献………………………………………………………………20 附录…………………………………………………………………21 摘 要 本文介绍了以STC89C51RC单片机,DS1302实时时钟芯片为基础的实时显示系统的设计。主要介绍了实时显示的意义及其工作原理,系统设计所用到的主要芯片的介绍,以及设计的系统的软件和硬件的组成。其中DS1302是实时显示的主体。它是美国DALLAS公司推出的一种高性能、低功耗、带RAM的实时时钟电路,它可以对年、月、日、周日、时、分、秒进行计时。本设计可以由上位机通过串口给其提供数据,当独立于上位机存在时,可由8位按键控制年、月、日、周日、时、分、秒的显示。这样本设计既能满足人们对实时控制的需求,又能独立的进行时间的显示,满足人们对计时的需求。 关键词:单片机 DS1302 LCD1602 Abstract This system is divided into seven parts, the microcontroller is the core of the whole system.When the system after power, 220V of electricity through transformer, rectifier, filter and regulator and converted into 5V DC voltage to the MCU, RTC and LCD1602 power, the power light indicates normal power supply at this time.Another indicator is set in the program flashes once every two seconds, if the flicker frequency normal, then the system is working.DS1302 at 5V, this time to work from time, MCU followed by self-inspection, self-correct in the circumstances, the loop reads the data in the DS1302, and constantly refresh the LCD1602 time data.In the first, when the system power, DS1302 will register all of its initialization, for which we set the seven keys to facilitate the calibration of the RTC for time. There are t

文档评论(0)

1亿VIP精品文档

相关文档