基于单总线温度传感器的温度检测系统设计.doc
基于单总线温度传感器的温度检测系统设计,摘要:温度是工业生产和自动控制中最常见的工艺参数之一。过去温度检测系统设计中,大多采用模拟技术进行设计,这样就不可避免地遇到诸如传感器外围电路复杂及抗干扰能力差等问题;而其中任何一环节处理不当,就会造成整个系统性能的下降。随着半导体技术的高速发展,特别是大规模集成电路设计技术的发展...
内容介绍
此文档由会员 csfujixie 发布基于单总线温度传感器的温度检测系统设计
摘要:温度是工业生产和自动控制中最常见的工艺参数之一。过去温度检测系统设计中,大多采用模拟技术进行设计,这样就不可避免地遇到诸如传感器外围电路复杂及抗干扰能力差等问题;而其中任何一环节处理不当,就会造成整个系统性能的下降。随着半导体技术的高速发展,特别是大规模集成电路设计技术的发展, 数字化、微型化、集成化成为了传感器发展的主要方向。本文介绍了检测的基本概念,单总线数字温度传感器DS18B20及单片机AT89C2051的特性、内部结构及工作原理,给出了DS18B20与单片机AT89C2051接口的应用实例,以及由两者组成温度检测系统的方法,并给出了对DS18B20进行各种操作的软件流程图及操作程序。
关键词:温度检测 ;单总线温度传感器DS18B20;单片机AT89C2051 ;汇编语言
The Temperature Detection System Design based one wire bus temperature sensor
Abstract: Temperature is the most common one of process parameters in automatic control and industrial production. In the traditional temperature measurement system design, often using simulation technology to design, and this will inevitably encounter error compensation, such as lead,complex outside circuit,poor anti-jamming and other issues, and part of a deal with them Improperly, could cause the entire system of the decline. With modern science and technology of semiconductor development, especially large-scale integrated circuit design technologies, digital, miniaturization, integration sensors are becoming an important direction of development. This paper presents the basic concept of detection, a single digital temperature sensor DS18B20 the characteristics and working principle is given DS18B20 with 89 C2051 MCU interface application examples, and the composition of DS18B20 temperature detection system, and gives the various operations of the DS18B20 Software flow chart and operation programs.
Keyword: Temperature Detection;DS18B20;AT89C2051;Assembler language
目 录
中文摘要
英文摘要
1引言......................................................................5
1.1 前言..................................................................5
1.2 检测概述..............................................................5
1.3 智能传感器概述........................................................5
1.4 单总线系统概述.........................................................6
1.5 智能温度传感器发展的新趋势................................................7
2 数字温度传感器DS18B20....................................................9
2.1 DS18B20概述...........................................................9
2.1.1 性能特点..........................................................9
2.1.2 内部结构 9
2.1.3 管脚排列.........................................................10
2.1.4 工作方式 10
2.2 DS18B20存储器及设置寄存器 11
2.3 DS18B20测温原理......................................................13
2.4 DS18B20 测温过程.....................................................15
2.5 DS18B20使用注意事项..................................................17
3 单片机AT89C2051.........................................................19
3.1 AT89C2051概述........................................................19
3.2 AT89C2051外部单元....................................................20
3.2.1 引脚.............................................................20
3.2.2 电源.............................................................21
3.3 AT89C2051内部单元....................................................22
3.3.1 结构框图.........................................................22
3.3.2 运算器...........................................................22
3.3.3 控制器...........................................................23
3.3.4 存储器...........................................................24
3.4 AT89C2051程序保密性能................................................24
3.5 AT89C2051软硬件的开发................................................25
4 温度检测系统设计........................................................26
4.1方案比较.............................................................26
4.2总体设计.............................................................26
4.3详细设计.............................................................27
4.3.1硬件原理图.......................................................27
4.3.2 DS18B20与89C2051连线图.........................................27
4.3.3显示电路.........................................................28
4.3.4复位电路.........................................................28
5 软件调试................................................................29
5.1系统流程..............................................................29
5.1.1对DS18B20操作流程图..............................................29
5.1.2初始化流程图......................................................30
5.1.3读操作流程图......................................................31
5.1.4写操作流程图......................................................32
5.1.5 温度转换流程图...................................................33
5.2 系统部分程序设计及分析...............................................33
5.2.1 初始化子程序.....................................................33
5.2.2 读子程序.........................................................34
5.2.3 写子程序.........................................................35
5.2.4延时子程序........................................................36
6 结论....................................................................37
致 谢....................................................................38
结束语....................................................................39
参考文献..................................................................40
附录:硬件、监控主程序、实物照片..........................................41
1基于DS18B20的温度检测系统原理图........................................41
2监控主程序..............................................................41
3基于DS18B20的温度检测系统印刷板图......................................51
4实物照片................................................................52