【正文】
............................14 DS18B20的特性 .................................................................................................14 DS18B20的外形和內(nèi)部結(jié)構(gòu) ................................................................................15 DS18B20的使用方法 ..........................................................................................16 第 5章 溫度檢測(cè)系統(tǒng)的硬件設(shè) 計(jì) ................................................................................................19 III 系統(tǒng)總 體構(gòu)成 ............................................................................................................19 單片機(jī) 復(fù)位電路 .........................................................................................................19 常 用的兩種復(fù)位電路 .........................................................................................19 單片 機(jī)復(fù)位后的狀態(tài) .........................................................................................20 時(shí) 鐘電路 ...................................................................................................................20 溫度 采集電路 ............................................................................................................21 LED顯 示電路 .............................................................................................................21 報(bào)警電 路 ...................................................................................................................22 鍵盤(pán)電路 ...................................................................................................................23 鍵盤(pán) 接口電路 ....................................................................................................23 鍵盤(pán) 使用說(shuō)明 ....................................................................................................23 電源接 口電路 ............................................................................................................24 第 6章 溫 度檢測(cè)系統(tǒng)的軟件設(shè)計(jì) ................................................................................................25 系統(tǒng)軟 件的整體設(shè)計(jì) ..................................................................................................25 系統(tǒng) 的主程序 ............................................................................................................26 溫度 采集程序 ............................................................................................................27 LED顯 示程序 .............................................................................................................29 第 7章 系統(tǒng) 軟件的匯編與調(diào)試 ....................................................................................................31 ................................................................................................................31 KEIL UVISION2...........................................................................................................32 仿真結(jié)果 分析 ............................................................................................................33 硬件 焊接及系統(tǒng)調(diào)試 ..................................................................................................36 第 8章 結(jié) 束語(yǔ) ............................................................................................................................38 致 謝 ..........................................................................................................................................40 參考文獻(xiàn) .....................................................................................................................................41 附錄 1 系 統(tǒng)硬件電路圖 ...............................................................................................................43 附錄 2 實(shí) 物圖 .............................................................................................................................44 附錄 3 PCB圖 ..............................................................................................................................45 附錄 4 程序 清單 ..........................................................................................................................46 1 第 1 章 緒論 課題背景及意義 在科學(xué)技術(shù)突飛猛進(jìn)的今天, 溫度檢測(cè)與 控制起 到不可忽視的作用。 Temperature collect。該系統(tǒng) 使用起來(lái)相當(dāng)方 便,尤其是它的 抗 干擾能力強(qiáng),適合于惡劣環(huán)境下進(jìn)行現(xiàn)場(chǎng)溫度測(cè)量 , 有著 廣泛的應(yīng)用前景 。 溫度采集電路 采用單總線型數(shù)字式的溫度傳感器 DS18B20,DS18B20 與 AT89S52 單片機(jī) 結(jié)合實(shí)現(xiàn)最簡(jiǎn)單的溫度檢測(cè)與報(bào)警系統(tǒng) 。溫度測(cè)量是溫度控制系統(tǒng)中的基礎(chǔ)。 I 基于單片機(jī)的溫度檢測(cè)系統(tǒng)設(shè)計(jì) 摘要 : 當(dāng)今時(shí)代,單片 機(jī)技術(shù)已經(jīng)普及到我 們的 生活、工作 等 方方面面, 已經(jīng)成為 了 一種比較成熟的技術(shù) 。 溫度是生產(chǎn)過(guò)程和日常生活中普遍而且很重要的影響因素,經(jīng)常要進(jìn)行溫度的檢測(cè)和控制,而 利用單片機(jī)去進(jìn)行溫度檢測(cè) 與控制則給我們提供了方便。 本文 介紹了一個(gè)基于 AT89S52單片機(jī)的 溫度檢測(cè)系統(tǒng) , 該系統(tǒng)是以 AT89S52單片機(jī)為核心元 件,外加溫度采集電路、顯示電路和報(bào)警電路 等 。 該系統(tǒng) 可以方便的實(shí)現(xiàn)溫度采集、溫度顯示、報(bào)警,并可根據(jù)需要任意設(shè)定上下限報(bào)警溫度 。 關(guān)鍵詞 : AT89S52單片機(jī); 溫度采集 ; DS18B20; 報(bào)警 Design of Temperature Detection System Based on Microcontroller Abstract:Nowadays,microcontroller technology has be popular in our lives,works and so on,which has bee a relatively mature is a very mon and important element during the production process and people’s daily lives,so we often need to check temperature and control it,but it is more convenient for us that using microcontroller to check and control temperature. Temperature measurement is the basis of temperaturecontrolling. This paper describes a microcontroller AT89S52 which based on temperature detection system is based on AT89S52 microcontroller which is a core ponent,and including temperature collect circuit,display circuit and alarm temperature collect circuit uses a singlebus digital temperature sensor and AT89S52 bined to achieve the most simple temperature detection and alarm system can easily achieve to collect temperature ,disply temperature,alarm,and also can arbitrarily set upper and lower alarm temperature. The system is very convenient to use,especially its antiinterference ability is very strong so that it suit to measure temperature in very hard environments,which has a wide range of applications. Key words:AT89S52 microcontroller。 DS18B20。 溫度控制不 論