1、 基于基于 DS18B20DS18B20 的多点温度测量系统的设的多点温度测量系统的设 计与制作计与制作 学 院: 专 业: 姓 名: 指导老师: 信息学院 测控技术与仪器 学 号: 职 称: 助教 中国珠海 二一二年五月 诚信承诺书诚信承诺书 本人郑重承诺:本人郑重承诺:本人承诺呈交的毕业设计基于 DS18B20 的多 点温度测量系统的设计与制作是在指导教师的指导下,独立 开展研究取得的成果,文中引用他人的观点和材料,均在文后 按顺序列出其参考文献,设计使用的数据真实可靠。 本人签名: 日期: 年 月 日 I 基于基于 DS18B20DS18B20 的多点温度测量系统的设计与制作的多点温度测
2、量系统的设计与制作 摘摘 要要 本文介绍了基于 DS18B20 和 STC89C52RC 的多点温度测量的方法和原理,利用 DSI8B20 单总线温度传感器和单片机与其它外围设备结合在一起实现温度的测量和显 示。该设计主要分为以下三大部分:硬件设计、软件设计和整个系统的调试与实现。其 中硬件设计主要是由 Protel99SE 软件进行电路的设计和 PCB 板的绘制; 软件设计采用 C 语言编写实现。采用该解决方案,实现了基于 DS18B20 进行的各项软硬件的设计、调 试和处理,实现了多点温度测量和显示。 关键词:关键词:温度测量;硬件;软件;温度传感器 DS18B20 II Design a
3、nd Fabrication of Multi-point Temperature Measuring System Based on DS18B20 Abstract This article describes the multi-point temperature measurement method and principle based on DS18B20 and STC89C52RC,the measurement and display of the temperatures are achieved by making use of the combination of th
4、e 1-wire temperature sensor DS18B20 and the MCU and other peripheralsThe design is mainly divided into the three parts as follows: the hardware design,the software design and the debugging and implementation of the entire systemAmong the design,the hardware design mainly is of circuits designing and
5、 PCB drawing by means of Protel99SE software and the software design is realized by using C language programmingThe DS18B20 based design,debugging and dispose of the all software and hardware items and even the multi-point temperature measuring and displaying have been realized by adopting the solut
6、ion Keywords: Temperature Measurement; Hardware; Software; Temperature sensor DS18B20 目目 录录 1 绪论 . 1 1.1 概述 . 1 1.1.2 DS18B20 温度传感器简介 . 1 1.1.3 STC89C52RC 单片机简介 3 1.1.4 LCD1602 液晶显示屏简介 . 4 1.1.5 KEIL 编程软件简介 5 1.2 系统方案设计 . 5 1.3 预期结果 . 6 2 DS18B20 温度传感器概述 . 7 2.1 DS18B20 接口电路 . 7 2.2 DS18B20 工作原理 . 7 2.3 DS18B20 工作时序 10 3 硬件电路设计 13 3.1 单片机驱动电路设计 14 3.2 温度显示模块电路设计 15 3.3 温度测量模块电路设计 16 3.4 温度报警电路设计 17 3.5 系统硬件电路设计 18 3.6 小结 19 4 软件程序设计及调试 20 4.1 系统软件程序设计 20 4.2 系统