1、目 录 摘 要 . 3 ABSTRACT . 4 第一章 绪论 5 1.1 本课题研究的背景和意义及发展趋势. 5 1.2 本课题的任务和系统设计目标. 7 1.3 本课题研究内容. 7 第二章 方案论证比较与选择 8 2.1 引言 8 2.2 方案设计 8 2.2.1 设计方案一 8 2.2.2 设计方案二 8 2.2.3 设计方案三 9 2.3 方案的比较与选择 . 10 2.4 方案的阐述与论证 . 10 第三章 硬件设计 12 3.1 温度传感器 . 12 3.1.1 温度传感器选用细则 . 12 3.1.2 温度传感器 DS18B20 14 3.2 单片机系统设计 . 21 3.3
2、按键及显示电路设计 . 23 3.4 报警电路设计 . 24 第四章 软件设计 26 4.1 软件开发工具的选择 . 26 4.2 系统软件设计的一般原则 . 27 4.3 系统软件设计的一般步骤 . 28 4.4 软件实现 . 28 4.4.1 系统主程序流程图 . 28 4.4.2 传感器程序设计 . 29 4.4.3 显示程序设计 . 35 4.4.4 键盘程序设计 . 41 4.4.5 报警程序设计 . 45 第五章 仿真调试及小节 47 基于单片机的多温度检测系统的设计与 protues 仿真 5.1 仿真结果 . 47 5.2 调试及小节 . 49 致谢 51 参考文献 . 52
3、附 录 . 54 附 1 原理图 . 54 附 2 源代码 54 摘摘 要要 随着社会的进步和工业技术的发展,人们越来越重视温度因素,许多产品对 温度范围要求严格,而目前市场上普遍存在的温度检测仪器大都是单点测量,同 时有温度信息传递不及时、精度不够的缺点,不利于工业控制者根据温度变化及 时做出决定。在这样的形式下,开发一种能够同时测量多点,并且实时性高、精 度高,能够综合处理多点温度信息的测量系统就很有必要。 本课题以 80C51 单片机系统为核心,能对多点的温度进行实时巡检。 DS18B20 是一种可组网的高精度数字式温度传感器,由于其具有单总线的独特优 点,可以使用户轻松地组建起传感器网
4、络,并可使多点温度测量电路变得简单、 可靠。本文结合实际使用经验,介绍了 DS18B20 数字温度传感器在单片机下的硬 件连接及软件编程,并给出了软件流程图。 关键词关键词:温度测量;单总线;数字温度传感器;单片机 基于单片机的多温度检测系统的设计与 protues 仿真 AbstractAbstract As the industry and the society developing, the temperature becomes more and more important and a lot of products are sensitive to temperature. Ho
5、wever, temperature measuring apparatus in the market now only can check and measure the temperature of one point, at the same time, the temperature information is not real time and the precision is low. It takes a great of troubles for the industry-controllers to make decision .In this situation, de
6、sign and implement one applicable system which can watch measure and control the temperature and the measuring results is real time and the precision is great is more essential. In order to meeting this application, this paper talk about The Multiple-Points temperature Measuring System. This system based on single chip computer, can inspect and control multiple temperatures in real time. As a kind of high-accuracy digital net temperature sensor, DS18 B20 can be used building a s