资源预览内容
第1页 / 共70页
第2页 / 共70页
第3页 / 共70页
第4页 / 共70页
第5页 / 共70页
第6页 / 共70页
第7页 / 共70页
第8页 / 共70页
第9页 / 共70页
第10页 / 共70页
亲,该文档总共70页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
仓库温湿度检测系统设计仓库温湿度检测系统设计摘要摘要本设计使用 STC89C52 单片机作为主控制模块,利用简单的外围电路来驱动 1-Wire 总线,利用 1-Wire 总线协议,实现了多点温度和湿度的精确测量。利用STC89C52 单片机本身强大的功能和内部 RAM 资源,可以很方便的实现单片机与PC 机间的数据传输,并能利用软件方便的逻辑判断实现了 1-Wire 总线的 ROM 搜索,实现了测温器件 18B20 的枚举,实现了无人干预的测温点的动态裁剪,所以本设计具有很强的现实应用性。另外,本系统的湿度检测没有完成。本文从 1-Wire 总线的原理入手,详细阐述了 1-Wire 总线的 ROM 搜索过程,以及硬件电路的设计、计算和软件的算法。关键词:DS18B20;单片机 MCU;串行传输 Serial Data Transfer;单总线 1-wire interfaceAbstractThis design as the main STC8952 of single-chip control module, using a simple external circuit to drive the 1-Wire bus, the use of 1-Wire bus protocol, to achieve a more accurate measurement of temperature. The use of MCS STC89C52 powerful features and its own internal RAM resources, it is easy to achieve single-chip and PC data transfer between aircraft and the use of software to facilitate the realization of the logic to determine the 1-Wire bus ROM search, the realization of the temperature measurement device enumeration 18B20, no intervention to achieve a dynamic temperature measurement point cut, so the design of practical application. In addition,the system did not complete humidity testing.This article from the 1-Wire bus starting with the principle, described in detail 1-Wire bus ROM search process, as well as the design of hardware circuits, computing and software algorithms. Keywords :DS18B20; Single-chip MCU ;Serial transmission Serial Data Transfer;monobus 1-wire interface目目 录录摘要 .IAbstract.II目 录.III第 1 章 绪 论.11.1 选题背景 .11.2 设计过程及工艺要求.21.2.1 基本功能.21.2.2 主要技术参数.2第 2 章 系统总体设计.32.1 温度传感器的选择 .32.2 信号采集 .42.2.1 DS18B20 基本知识.42.2.2 DS18B20 产品的特点.42.2.3 DS18B20 的引脚介绍.42.3 信号分析与处理 .52.3.1 单总线的实现.52.3.2 DS18B20 的使用.72.3.3 DS18B20 的应用电路.112.3.4 单片机 89C52.142.3.5 MAX232 电平转换芯片特点 .182.3.6 单片机与 PC 间通信接口电路设计.202.3.7 过限指示.20第 3 章 软件设计.223.1 1-Wire 总线协议处理.223.2 1-Wire CRC 校验处理.283.3 1-Wire 器件的 ROM 搜索.293.4 FIRST操作.383.5 NEXT操作.383.6 数据传输 .39第 4 章 总结.41社
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号