- 1、本文档共55页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多功能液晶电子时钟附程序概要
摘 要
随着单片机技术的飞速发展,在其推动下,现代的电子产品几乎渗透到了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高。本设计的内容是液晶多功能电子钟,该设计实现了时钟的基本功能,除了显示及调节年、月、日时间之外,可设定音乐闹铃,还对环境温度进行检测并显示,并带有自定义LOGO。
本设计采用AT89C58单片机做为控制芯片,用DS18B20做为温度采集器,DS1302做为时钟芯片,用于获取温度和计时,并在LCD1602上进行显示。
该设计易于实现,功能齐全,显示简洁明了,具有很高的实用性。
关键:数字时钟,51单片机,DS18B20,DS1302,LCD1602
Abstract
With the rapid development of microcomputer technology in its promotion, modern electronics into almost all areas of society, a strong impetus to the development of social productive forces and social improvement in the level of information, but also to further improve the performance of modern electronic products. The contents of this design is a multi-function LCD electronic clock, the design and implementation of the basic functions of the clock, in addition to display and adjust the year, month, day time, you can set the music alarm, but also detect and display the temperature of the environment, andwith self-definition of the LOGO.
This design uses AT89C58 microcontroller as a control chip, as the temperature logger using the DS18B20, DS1302 as a clock chip, used to obtain the temperature and timing, and on the LCD1602 display.
The design is easy to implement, fully functional, showing clear and concise, with high practicality.
Keywords: digital clock, microcontroller 51, ??DS18B20, DS1302, LCD1602目 录
1.课题研究意义及背景 1
1.1时钟简介 1
1.2课程设计的主要任务 1
2.硬件电路设计 2
2.1 设计方案论证 2
2.2 硬件总体设计 2
2.3 元件简介 3
3.系统的软件设计 10
3.1 程序设计 10
4.课题调试方法及实验结果 12
4.1课题调试方法 12
4.2实验结果 17
参考文献 18
附件一 硬件原理图 19
附件二 液晶多功能电子钟程序 20
附件四 实物图 52
附件五 课程设计小结 53
1.课题研究意义及背景
1.1时钟简介
1.2课程设计的主要任务
2.硬件电路设计
2.1 设计方案论证
2.1.1方案一
2.1.2 方案二
2.2 硬件总体设计
2.2.1硬件结构图
图2-1硬件结构图
2.2.2硬件原理图
2.3 元件简介
2.3.1 STC89C52主要功能及PDIP封装
表2.1 STC89C52主要功能
主要功能特性 兼容MCS51指令系统 8K可反复擦写Flash ROM 32个双向I/O口 256x8bit内部RAM 3个16位可编程定时/计数器中断 时钟频率0-24MHz 2个串行中断 可编程UART串行通道 2个外部中断源 共6个中断源 2个读写中断口线 3级加密位 低功耗空闲和掉电模式 软件设置睡眠和唤醒功能 2.3.2 STC89C52引脚介绍
图2.2 STC89C52 PDIP封装图
2.3.3 STC89C52最小系统
图2.3 STC89C
文档评论(0)