【正文】
電偶和二電阻。 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)行有效的控制。而熱電偶和熱電阻測(cè)出的一般都是電壓,再轉(zhuǎn)換成對(duì)應(yīng)的溫度,這些方法相對(duì)比較復(fù)雜,需要比較多的外部硬件支持。溫度范圍為 55~125 186。C。 本文介紹一種基于 AT89C51 單片機(jī)的一種溫度測(cè)量及報(bào)警電路 ,該電路采用 DS18B20作為溫度監(jiān)測(cè)元件,測(cè)量范圍 0℃ ~ +100℃ ,使 用七級(jí)數(shù)碼管 LED 模塊顯示,能設(shè)置溫度報(bào)警上下限。 關(guān)鍵詞:溫度測(cè)量 。 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. 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 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 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ó)家相比,仍然有著較大的差距。隨著我國(guó)經(jīng)濟(jì)的發(fā)展及加入 WTO,我國(guó)政府及企業(yè)對(duì)此都非常重視,對(duì)相關(guān)企業(yè)資源進(jìn)行了重組,相繼建立了一些國(guó)家、企業(yè)的研發(fā)中心,開展創(chuàng)新性研究,使我國(guó)儀表工業(yè)得到了迅速的發(fā)展。盡管他的大部分功能集成在一塊小芯片上,但是它具有 一個(gè)完整計(jì)算機(jī)所需要的大部分部件: CPU、內(nèi)存、內(nèi)部和外部總線系統(tǒng),目前大部分還會(huì)具有外存。而現(xiàn)在最強(qiáng)大的單片機(jī)系統(tǒng)甚至可以將聲音、圖像、網(wǎng)絡(luò)、復(fù)雜的輸入輸出系統(tǒng)集成在一塊芯片上。單片機(jī)由芯片內(nèi)僅有 CPU 的專用處理器發(fā)展而來(lái)。 INTEL 的 Z80 是最早按照這種思想設(shè)計(jì)出的處理器,從此以后,單片機(jī)和專用處理器的發(fā)展便分道揚(yáng)鑣。其中最成功的是 INTEL 的 8031,