单片机控制LCD显示电子时钟设计方案.docx

  1. 1、本文档共32页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE PAGE # / 32 基于单片机控制 LCD 显示电子时钟设 计 摘要 本设计使用11.0592MHZ晶振与单片机 AT89C52相连接,以AT89C52芯片 为核心,采用 1602的并行操作方式显示。通过使用该单片机,实现把时间和温 度显示在 1602 液晶上,并且按秒实时更新。 STC89C52 单片机是由深圳宏晶科 技公司推出的,功耗小,电压可选用 4?6V电压供电。通过板子上的按键可随 时调节时钟的年、月、日、星期、时、分、秒,按键设计 3 个有效按键,分别 有功能选择键、数值增大键、数值减小键。在每次的按键按下时,蜂鸣器有 “滴”的提示声。再利用 DS12887 设计实现断电自动保护显示数字的功能,当 下次上电 时会 接着 上次 上电 前的 时间继 续运 行。本设计 的 +5V 电源采用 LM1117电压转换元件,将电源适配器转换得到的 12V电压直接变成5V电压供 系统使用。通过软硬件结合达到最终目的。 关键词:单片机AT89C52 1602液晶。电子时钟。DS12887芯片 Abstract The design uses a 11.0592MHz crystal with AT89C52 microcontroller is conn ected to the AT89C52 chip as the core, and 1602 parallel operati on. By using the microc on troller, the time is displayed in 1602, and updated in real time in sec on ds. STC89C52 microc on troller is laun ched by the Shen zhe n-Hong Crystal Tech no logy. Inc., low power consumption, voltage can be used to 6V voltage power supply. Through the keys on the board can always adjust the clock of the year, mon th, day, week, whe n, minu tes, sec on ds, butt on desig n 3 effective keys, fun ctio n selectio n key, in crease the value of the key, key decreases the value. Each time the butt on is pressed, the buzzer tone "drop". Re-use the DS12887 desig n power-off automatically to protect the display number, then the last time before the power to continue running when the next power. The design of the 5V power supply using LM1117 voltage conversion device, power adapter con verted directly into 12V voltage 5V voltage for system use. Through a comb in ati on of hardware and software to achieve the ultimate objective. Keywords:Microcontroller AT89C52。1602 LCD。Electronicclock。DS12887chip 目录 第 1 章绪论 1 电子时钟的研究背景 1 电子时钟的国内外研究现状 1 第 2 章设计思路与方案选择 3 系统的设计思路 3 方案选择 3 单片机芯片的选择 3 显示模块及时钟芯片的选择 4 温度系统方案选择 4 报警系统的方案比较 4 键盘控制方案选择 4 第 3 章系统的硬件设计与实现 5 电路设计框图 5 主要硬件电路的设计 5 单片机主控制模块的设计 5 显示模块的设计 9 时钟电路模块的设计 12 温度采集模块设计 17 按键调整系统模块设计 17 蜂鸣器报警模块 18 第 4 章软件设计 19 软件设计总体说明 19 程序软件的实现 19 第 5 章总结 24 参考文献 25 致谢 26 PAGE PAGE # / 32 PAGE PAGE # / 32 第 1章 绪论 1.

文档评论(0)

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

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

1亿VIP精品文档

相关文档