DS18B20温度检测控制讲义.doc
文本预览下载声明
DS18B20温度检测控制
摘 要
温度是一个很重要的物理量,在现代工农业生产中,对它的测量与控制有十分重要的意义。本论文从简单实用方面介绍了由DS18B20单总线数字式温度传感器与AT89S52单片机构成温度检测控制系统。论文从五个方面介绍了这一设计:绪论部分简单介绍了课题背景及现状,并提出预期目标;第二部分对DS18B20、AT89S52、74LS244的硬件资源、功能等作了较详细的介绍;第三部分介绍了主要硬件电路的设计,包括测量电路、显示电路和电源电路;第四部分介绍软件设计。程序采用C语言在Keil软件环境下编写、调试,并用计算机并口下载到单片机;第五部分主要对设计进行调试实验,并对实验结果作总结并指出不足。
关键词:单总线 单片机 AT89S52 DS18B20
Abstract
Temperature is an important physical parameter and the measurement and control it is of great significance. This article introduced a simple and practical temperature examination control system by the DS18B20 1-wrie digital temperature sensor and AT89S52 single-chip computer. The article introduced this design from five aspects: The introduction part simply introduced the topic background and the present situation, and set the anticipated target;the second part introduced function and technique data of the AT89S52, DS18B20、74LS244; The third part introduced the design of main hardware circuits, including metering circuit, display circuit and power circuit; part four introduced the design of software . Use the C program language which writes and debugs at Keil software environment ,and download to the single-chip computer by combine of computer; The fifth part mainly to designs carries on the debugging experiment, and does to the experimental result summarizes and points out the insufficiency.
Key Words:1-wire single-chip computer AT89S52 DS18B20
目 录
摘 要 i
Abstract ii
目 录 iii
一 绪论 - 1 -
1. 1 课题背景 - 1 -
1. 2温度采集技术现状 - 1 -
1. 3预期目标 - 2 -
二 器件介绍 - 3 -
2.1 DS18B20介绍 - 3 -
2.1.1 测温原理 - 3 -
2.1.2 数据处理 - 4 -
2.1.3 多路测量 - 7 -
2.2 单片机AT89S52介绍 - 8 -
2.2.1 内部结构、资源 - 8 -
2.2.2 引脚介绍 - 10 -
2.2.3 机器周期和指令周期 - 12 -
2.2.4 最小系统 - 12 -
2.3 74LS244介绍 - 13 -
三 硬件设计 - 14 -
3.1 总体设计 - 14 -
3.2 测量电路 - 14 -
3.3 显示电路 - 15 -
3.4 电源电路设计 - 16 -
四 软件设计 - 17 -
4.1 总体程序设计 - 17 -
4.2主要子程序 - 19 -
4.2.1 初始化 - 19 -
4.2.2 写时间隙 - 20 -
4.2.3 读时间隙 - 21 -
显示全部