基于單總線溫度傳感器的溫度檢測系統(tǒng)設(shè)計.doc
基于單總線溫度傳感器的溫度檢測系統(tǒng)設(shè)計,摘要:溫度是工業(yè)生產(chǎn)和自動控制中最常見的工藝參數(shù)之一。過去溫度檢測系統(tǒng)設(shè)計中,大多采用模擬技術(shù)進(jìn)行設(shè)計,這樣就不可避免地遇到諸如傳感器外圍電路復(fù)雜及抗干擾能力差等問題;而其中任何一環(huán)節(jié)處理不當(dāng),就會造成整個系統(tǒng)性能的下降。隨著半導(dǎo)體技術(shù)的高速發(fā)展,特別是大規(guī)模集成電路設(shè)計技術(shù)的發(fā)展...
內(nèi)容介紹
此文檔由會員 csfujixie 發(fā)布基于單總線溫度傳感器的溫度檢測系統(tǒng)設(shè)計
摘要:溫度是工業(yè)生產(chǎn)和自動控制中最常見的工藝參數(shù)之一。過去溫度檢測系統(tǒng)設(shè)計中,大多采用模擬技術(shù)進(jìn)行設(shè)計,這樣就不可避免地遇到諸如傳感器外圍電路復(fù)雜及抗干擾能力差等問題;而其中任何一環(huán)節(jié)處理不當(dāng),就會造成整個系統(tǒng)性能的下降。隨著半導(dǎo)體技術(shù)的高速發(fā)展,特別是大規(guī)模集成電路設(shè)計技術(shù)的發(fā)展, 數(shù)字化、微型化、集成化成為了傳感器發(fā)展的主要方向。本文介紹了檢測的基本概念,單總線數(shù)字溫度傳感器DS18B20及單片機(jī)AT89C2051的特性、內(nèi)部結(jié)構(gòu)及工作原理,給出了DS18B20與單片機(jī)AT89C2051接口的應(yīng)用實例,以及由兩者組成溫度檢測系統(tǒng)的方法,并給出了對DS18B20進(jìn)行各種操作的軟件流程圖及操作程序。
關(guān)鍵詞:溫度檢測 ;單總線溫度傳感器DS18B20;單片機(jī)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 單總線系統(tǒng)概述.........................................................6
1.5 智能溫度傳感器發(fā)展的新趨勢................................................7
2 數(shù)字溫度傳感器DS18B20....................................................9
2.1 DS18B20概述...........................................................9
2.1.1 性能特點..........................................................9
2.1.2 內(nèi)部結(jié)構(gòu) 9
2.1.3 管腳排列.........................................................10
2.1.4 工作方式 10
2.2 DS18B20存儲器及設(shè)置寄存器 11
2.3 DS18B20測溫原理......................................................13
2.4 DS18B20 測溫過程.....................................................15
2.5 DS18B20使用注意事項..................................................17
3 單片機(jī)AT89C2051.........................................................19
3.1 AT89C2051概述........................................................19
3.2 AT89C2051外部單元....................................................20
3.2.1 引腳.............................................................20
3.2.2 電源.............................................................21
3.3 AT89C2051內(nèi)部單元....................................................22
3.3.1 結(jié)構(gòu)框圖.........................................................22
3.3.2 運(yùn)算器...........................................................22
3.3.3 控制器...........................................................23
3.3.4 存儲器...........................................................24
3.4 AT89C2051程序保密性能................................................24
3.5 AT89C2051軟硬件的開發(fā)................................................25
4 溫度檢測系統(tǒng)設(shè)計........................................................26
4.1方案比較.............................................................26
4.2總體設(shè)計.............................................................26
4.3詳細(xì)設(shè)計.............................................................27
4.3.1硬件原理圖.......................................................27
4.3.2 DS18B20與89C2051連線圖.........................................27
4.3.3顯示電路.........................................................28
4.3.4復(fù)位電路.........................................................28
5 軟件調(diào)試................................................................29
5.1系統(tǒng)流程..............................................................29
5.1.1對DS18B20操作流程圖..............................................29
5.1.2初始化流程圖......................................................30
5.1.3讀操作流程圖......................................................31
5.1.4寫操作流程圖......................................................32
5.1.5 溫度轉(zhuǎn)換流程圖...................................................33
5.2 系統(tǒng)部分程序設(shè)計及分析...............................................33
5.2.1 初始化子程序.....................................................33
5.2.2 讀子程序.........................................................34
5.2.3 寫子程序.........................................................35
5.2.4延時子程序........................................................36
6 結(jié)論....................................................................37
致 謝....................................................................38
結(jié)束語....................................................................39
參考文獻(xiàn)..................................................................40
附錄:硬件、監(jiān)控主程序、實物照片..........................................41
1基于DS18B20的溫度檢測系統(tǒng)原理圖........................................41
2監(jiān)控主程序..............................................................41
3基于DS18B20的溫度檢測系統(tǒng)印刷板圖......................................51
4實物照片................................................................52
TA們正在看...
- 清華大學(xué)1998碩士研究生入學(xué)生物化學(xué).doc
- 清華大學(xué)1998碩士研究生入學(xué)物理化學(xué).doc
- 清華大學(xué)1998碩士研究生入學(xué)細(xì)胞生物學(xué).doc
- 清華大學(xué)1999碩士研究生入學(xué)有機(jī)化學(xué).doc
- 清華大學(xué)2000碩士研究生入學(xué)生理學(xué).doc
- 清華大學(xué)2002碩士研究生入學(xué)考試傳播學(xué).doc
- 清華大學(xué)2002碩士研究生入學(xué)考試傳播學(xué)綜合.doc
- 清華大學(xué)2002碩士研究生入學(xué)考試寫作與編輯.doc
- 清華大學(xué)2002碩士研究生入學(xué)考試新聞理論.doc
- 清華大學(xué)2002碩士研究生入學(xué)考試新聞史.doc