【正文】
........... 10 AT89C51 芯片主要性能 .................................................................. 11 AT89C51 芯片的內(nèi)部結(jié)構(gòu)框圖 ...................................................... 12 AT89C51 芯片的引腳說明 ............................................................. 12 使用 AT89C51 編程時需注意事項 ................................................ 16 顯示電路的組成器件 ............................................................................. 17 LED 顯示器的介紹 .......................................................................... 17 74LS164 芯片的介紹 ....................................................................... 17 本章小結(jié) ................................................................................................. 19 第 3章 系統(tǒng)硬件電路設(shè)計 .............................................................................. 20 系統(tǒng)硬件電路構(gòu)成 ................................................................................. 20 系統(tǒng)整體電路及測溫原理 .............................................................. 20 DS18B20 的控制方法 ...................................................................... 22 顯示電路的連接 .............................................................................. 24 系統(tǒng)主要技術(shù)指標 ................................................................................. 24 本章小結(jié) ................................................................................................. 25 第 4章 系統(tǒng)軟件的設(shè)計 .................................................................................. 26 主程序設(shè)計 ............................................................................................. 26 測溫子程序 ............................................................................................. 27 xx 大學(xué)學(xué)士 學(xué)位論文 IV 顯示子程序 ............................................................................................. 27 本章小結(jié) ................................................................................................. 29 結(jié)論 .................................................................................................................... 30 致謝 .................................................................................................................... 31 參考文獻 ............................................................................................................ 32 附錄 A ................................................................................................................ 33 附錄 B ................................................................................................................ 38 附錄 C ................................................................................................................ 41 附錄 D ................................................................................................................ 42 xx 大學(xué)學(xué)士 學(xué)位論文 1 第 1章 緒論 課題背景 在工農(nóng)業(yè)生產(chǎn)中,溫度檢測及其控制占有舉足輕重的地位,隨著現(xiàn)代信息技術(shù)的飛速 發(fā)展和傳統(tǒng)工業(yè)改造的逐步實現(xiàn) ,能夠獨立工作的溫度檢測和顯示系統(tǒng)已經(jīng)應(yīng)用于諸多領(lǐng)域。 research in various fields has bee a relatively mature technology. Singlechip temperature testing is widely used. This article will introduce the singlechip microputerbased control of a digital thermometer, and a singlechip digitalbased temperature measurement and control system used in the design of room temperature detection program, which is the use of the indoor temperature sensor to temperature change, transform into changes in voltage, and its value from singlechip processing, and finally by the singlechip microputer to control the digital display shows actual room temperature. The system has a temperature, the lower limit alarm function. In this paper, both hardware and software described in detail the temperature AT89C51based detection system to DS18B20 device for temperature detection and temperature display and an additional overtemperature alarm function. Acquisition sensors temperature DS18B20 connect directly to the way oneway signal transmission, the use of digital data transmission system greatly enhanced the antiinterference. Therefore, the number of singlebus device DS18B20 environment suitable for all kinds of temperature measurements at the scene. In the temperature measurement accuracy, conversion time, transmission distance, resolution, etc. than before the temperature sensor has a lot of improvement, the system has a simple structure, reliable operation, the error small, and characteristics of lowcost. In this paper, AT89C51 and DS18B20 also carried out a detailed description of the system conducted a careful analysis of Principle. Keywords Singlechip。 本文 還 對 AT89C51 及 DS18B20 進行了詳細的敘述,并 對 系統(tǒng) 原理進行了 仔細分析。因此,數(shù)字化單總線器件 DS18B20 適合于各種環(huán)境的現(xiàn)場溫度測量。 本文從硬件和軟件兩方面詳細敘述了基于 AT89C51 的溫度檢測系統(tǒng),該系統(tǒng)以 DS18B20 為溫度檢測裝置,并附加了溫度顯示和超溫報警 功能。 本文將介紹一種基于單片機控制的數(shù)字溫度計,提出一種基于單片機并采用數(shù)字化溫度測控系統(tǒng)應(yīng)用于室溫檢測 的 設(shè)計方案,該方案是利用溫度傳感器將室內(nèi)溫度的變化,變換成電壓的變化,其值由單片機處理,最后由單片機去控制數(shù)字顯示器,顯示室內(nèi)的實際溫度。 xx 大學(xué)學(xué)士 學(xué)位論文 I 基于單片機的溫度檢測系統(tǒng) 摘要 隨著時代的進步和發(fā)展,單片機技術(shù)已經(jīng)普及到我們生活,工作,科研,各個領(lǐng)域,已經(jīng)成為一種比較成熟的技術(shù) 。單片機在溫度檢測方面得到廣泛應(yīng)用。 該系統(tǒng)具有溫度 上、下限報警 功能 。溫度采集傳感器 DS18B20 直接以 單線連接 的方式 進行信號 傳輸, 采用數(shù)字化數(shù)據(jù)傳送方式 大大提高了系統(tǒng)的抗干擾性。它在測溫精度、轉(zhuǎn)換時間、傳輸距離、分辨率等方面較以前的溫度傳感器都有了很大的改進, 系統(tǒng)具有結(jié)構(gòu)簡單,運行可靠,誤差小,且成本低廉等特點。 關(guān)鍵詞 單片機 ; 傳感器 ; 溫度測量 xx 大學(xué)學(xué)士 學(xué)位論文 II Based on singlechip temperature detection system Abstract With the progress and development, singlechip technology has spread to our lives, work。Sensor。傳統(tǒng)的溫度檢測以熱敏電阻為溫度敏感元件、多路模擬開關(guān)、 A/D 轉(zhuǎn)換器及單片機等組成的系統(tǒng)。要達到較高的測量精度需要很好的解決引線誤差補償問題、多點測量切換誤差問題和放大電路零點漂移誤差等問題,使溫度檢測復(fù)雜化。 今天,我們的生活環(huán)境和工作環(huán)境有越來越多稱之為單片機的小電腦在為我們 服 務(wù)。時下,家用電器和辦公設(shè)備的智能化、遙控化、基于單片機的溫度測控系統(tǒng)在室內(nèi)的設(shè)計與實現(xiàn)模糊控制化己成為世界潮流,而這些高性能無一不是靠單片機來實現(xiàn)的。單片機以其功能強、體積小、可靠性高、造價低和開發(fā)周期短等優(yōu)點,為自動化和各個測控領(lǐng)域中必不可少且廣泛應(yīng)用的器件,尤其在日常生活發(fā)揮越來越大的作用?;诖耍菊n題圍繞應(yīng)用于室內(nèi)的基于單片機的溫度檢測系統(tǒng)展開應(yīng)用研究工作 [1]。數(shù)字化過程中,檢測儀表變化比較大,經(jīng)過幾個階段,近來多采用 ASIC 專用集成電路,而且把傳感器和微處理器及網(wǎng)絡(luò)接口封裝在一個器件中,完成信息獲取、處理、傳輸、存貯等功能。隨著國內(nèi)外工業(yè)的日益發(fā)展,溫度檢測技術(shù)也有了不斷的進步,目前的溫度檢測使用的方法種類繁多 ,應(yīng)用范圍也較 xx 大學(xué)學(xué)士 學(xué)位論