- 1、本文档共21页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE2 / NUMPAGES21
河南理工大学
电子技术基础课程课程设计报告
—基于DS1302与DS18B20的数字温度时钟
姓名:IvanMeng
摘要
随着电子技术的发展,人类的计时已由早期的机械装置计时发展到现今发达的电子装置计时。随着人类对计时精度的日益提高,电子计时已经成为主流的计时装置发展方向。在这种背景下,本次课程设计提出开发一款具有较高精度的同时非常廉价的电子时钟。
自从人类发明了电子计算机这一划时代的科技产品以来一直有一支与其同源的电子设备存在——单片机。本次设计将使用单片机作为主控芯片。基于单片机的电子时钟将会获得较高的可升级的特性。随着对程序算法的不断优化,时钟的性能将不断的提升。
本系统基于深圳宏晶公司生产的STC89C52RC以及由美国DALLAS Maxim公司生产的时钟芯片DS1302和温度传感器DS18B20进行设计。
关键词:STC89C52RC、DS1302、DS18B20、8051
ABSTRACT
With the development of electronic technology, the timing of the human is not the timing early mechanical device development time to todays advanced electronic device.With the increasing of human on the timing accuracy, electronic timing has become the mainstream of development direction timing device.In this context, the course design of developing an electronic clock has a high precision at the same time very cheap.Since the invention of electronic computers this epoch-making technology products has been have a homologous with the electronic equipment - single chip microcomputer.This design will use single chip microcomputer as main control chip.Based on single chip microcomputer electronic clock will gain higher upgradeable features.With continuous optimization algorithm for the program, the performance of the clock will continue to improve.This system is based on shenzhen macrocrystalline STC89C52RC and produced by our company by the United States DALLAS Maxim company produces the clock chip DS1302 and temperature sensor DS18B20.Keywords: STC89C52RC, DS1302, DS18B20, 8051
目录
TOC \o 1-3 \h \z \u 1 设计目的 4
2 功能简述 4
3 硬件设计 4
3.1 芯片选型 4
3.1.1 单片机 4
3.1.2 时钟芯片 5
3.1.3 温度传感器 5
3.2 硬件电路设计 6
3.2.1 硬件电路流程框图 6
3.2.2 电源模块 6
3.2.3 MCU模块 7
3.2.4 数码管显示模块 7
3.2.5 DS1302时钟模块 8
3.2.6 DS18B20温度传感器模块 9
3.2.7 作品硬件实物图 9
4 软件程序设计 10
4.1 整体思路 10
4.2 重点程序 10
4.2.1 DS1302信息读取 10
4.2.2 外部中断 13
4.2.3 数码管显示时间程序 14
4.2.4 按键程序 17
5 实物制作遇到的问题 20
6 参考资料 20
设计目的
锻炼动手能力。
培养解决实际问
文档评论(0)