【正文】
江西理工大學(xué)應(yīng)用科學(xué)學(xué)院畢業(yè)設(shè)計(jì) I 基于單片機(jī)的數(shù)字溫度計(jì)的設(shè)計(jì)與實(shí)現(xiàn) 摘要 采用單片機(jī)來(lái)對(duì)他們控制不僅具有控制方便,簡(jiǎn)單和靈活性大等優(yōu)點(diǎn),而且可以大幅度提高被控溫度的技術(shù)指標(biāo),從而能夠大大的提高產(chǎn)品的質(zhì)量和數(shù)量。在生產(chǎn)過(guò)程中,為了高效地進(jìn)行生產(chǎn),必須對(duì)它的主要參數(shù),如溫度、壓力、流量等進(jìn)行有效的控制。傳統(tǒng)的測(cè)溫元件有熱電偶和二電阻。而熱電偶和熱電阻測(cè)出的一般都是電壓,再轉(zhuǎn)換成對(duì)應(yīng)的溫度,這些方法相對(duì)比較復(fù)雜,需要比較多的外部硬件支持。我們用一種相對(duì)比較簡(jiǎn)單的方式來(lái)測(cè)量。溫度范圍為 55~125 186。C,最高分辨率可達(dá) 186。C。 DS18B20 可以直接讀出溫度值,而且采用三線制與單片機(jī)相連,減少了外部的硬件電路,具有低成本和易使用的特點(diǎn)。 本文介紹一種基于 AT89C51 單片機(jī)的一種溫度測(cè)量及報(bào)警電路 ,該電路采用 DS18B20作為溫度監(jiān)測(cè)元件,測(cè)量范圍 0℃ ~ +100℃ ,使 用七級(jí)數(shù)碼管 LED 模塊顯示,能設(shè)置溫度報(bào)警上下限。正文著重給出了軟硬件系統(tǒng)的各部分電路,介紹了集成溫度傳感器DS18B20 的原理, AT89C51 單片機(jī)功能和應(yīng)用 , 該電路設(shè)計(jì)新穎、功能強(qiáng)大、結(jié)構(gòu)簡(jiǎn)單。 關(guān)鍵詞:溫度測(cè)量 。DS18B20 。 AT89C51 趙賜明:基于單片機(jī)的數(shù)字溫度計(jì)的設(shè)計(jì)與實(shí)現(xiàn) II Design of Digital Thermomer Based on SCM ABSTRACT Controlled by singlechip microputer to control not only to them, advantages of simplicity and flexibility, and can significantly increase the temperature specifications, which can significantly increase the quality and quantity of the products. In the process of production, in order to efficiently produce, it must be the main parameters, such as temperature, pressure, flow, and other effective control. Traditional temperature measuring ponent thermocouple and resistance. Are generally voltage of thermocouple and thermal resistance measured, then converted to the corresponding temperature, these methods are relatively plex and requires more external hardware support. We are in a relatively simple way to ~125 186。 c temperature range, maximum resolution up to 186。c. DS18B20 can read temperature value, and wire connected to the microcontroller, reduced external hardware circuits, low cost and ease of use features. The introduction of a costbased AT89C51 MCU a temperatur measurement circuits, the circuits used DS18B20 highprecision temperatur sensor, measuring scope 0℃ ~ +100℃ ,can set the warning limitation, the use of Seven digital tube seven segments LED that can be display the current temperature. The paper focuses on providing a software and hardware system ponents circuit, introduced the theory of DS18B20, the founctions and applications of AT89C51 .This circuit design innovative, powerful, can be expansionary strong. Keywords: Temperature measurement ; DS18B20 ; AT89C51江西理工大學(xué)應(yīng)用科學(xué)學(xué)院畢業(yè)設(shè)計(jì) III 目錄 摘要 ........................................................................................................................ I ABSTRACT.......................................................................................................... II 第一章 緒論 .......................................................................................................... 1 引言 .......................................................................................................... 1 國(guó)內(nèi)外現(xiàn)狀 .................................................................................... 1 課題背景及研究意義 ..................................................................... 2 設(shè)計(jì)內(nèi)容及性能指標(biāo) .............................................................................. 2 系統(tǒng)概述 .................................................................................................. 3 系統(tǒng)方案論證與比較 ..................................................................... 3 系統(tǒng)設(shè)計(jì)原理與組成 ..................................................................... 5 第二章 開發(fā)工具 Proteus 與 Keil......................................................................... 6 Proteus 軟件 .............................................................................................. 6 Proteus 簡(jiǎn)介 .................................................................................... 6 4大功能模塊 .................................................................................. 6 Proteus 簡(jiǎn)單應(yīng)用 ............................................................................. 8 Keil 軟件 ................................................................................................... 8 Keil軟件簡(jiǎn)介 .................................................................................. 8 Keil軟件調(diào)試功能 .......................................................................... 9 第三章 系統(tǒng)硬件設(shè)計(jì) ........................................................................................ 10 單片機(jī)的選擇 ........................................................................................ 10 AT89C51單片機(jī)的介紹 ................................................................ 10 趙賜明:基于單片機(jī)的數(shù)字溫度計(jì)的設(shè)計(jì)與實(shí)現(xiàn) IV AT89C51單片機(jī)主要特性 ................................................................11 溫度傳感器的選擇 ................................................................................... 13 硬件電路設(shè)計(jì) ........................................................................................... 17 第四章 系統(tǒng)軟件設(shè)計(jì) ........................................................................................ 20 各模塊的程序設(shè)計(jì) ................................................................................... 20 Protues 測(cè)溫仿真 ....................................................................................... 25 系統(tǒng)調(diào)試 ................................................................................................... 28 結(jié)果分析 ................................................................................................... 30 結(jié)論 ..................................................................................................................... 31 致謝 ..................................................................................................................... 32 參考文獻(xiàn) ............................................................................................................. 33 附錄 1 全部程序清單 ......................................................................................... 34 附錄 2 系統(tǒng)總體設(shè)計(jì)圖 ..................................................................................... 41 江西理工大學(xué)應(yīng)用科學(xué)學(xué)院畢業(yè)設(shè)計(jì) 1 第一章 緒論 引言 國(guó)內(nèi)外現(xiàn)狀 溫度控制系統(tǒng)在國(guó)內(nèi)各行各業(yè)的應(yīng)用雖然已經(jīng)十分廣泛,但從國(guó)內(nèi)生產(chǎn)的溫度控制器來(lái)講,總體發(fā)展水平仍然不高,同日本、美國(guó)、德國(guó)等先進(jìn)國(guó)家相比,仍然有著較大的差距。成熟的溫控產(chǎn)品主要