仓库温湿度检测系统设计院 系自动化学院专 业自动化班 级学 号姓 名指导老师负责老师2024 年月摘 要本设计使用 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...