【正文】
沈陽理工大學(xué)學(xué)士學(xué)位論文 摘 要摘要:在日常生活及工業(yè)生產(chǎn)過程中,經(jīng)常要用到溫度的檢測及控制,溫度是生產(chǎn)過程和科學(xué)實(shí)驗(yàn)中普遍而且重要的物理參數(shù)之一。傳統(tǒng)的測溫元件有熱電偶和二電阻。而熱電偶和熱電阻測出的一般都是電壓,再轉(zhuǎn)換成對應(yīng)的溫度,這些方法相對比較復(fù)雜,需要比較多的外部硬件支持。我們用一種相對比較簡單的方式來測量。采用美國DALLAS半導(dǎo)體公司推出的一種改進(jìn)型智能溫度傳感器DS18B20作為檢測元件,溫度范圍為55~125 186。C, 186。C。DS18B20可以直接讀出被測溫度值,而且采用三線制與單片機(jī)相連,減少了外部的硬件電路,具有低成本和易使用的特點(diǎn)?;赟TC89C52單片機(jī)的溫度測量及報(bào)警電路,電路采用DS18B20作為溫度監(jiān)測元件,測量范圍0℃~50℃,使用LCD模塊顯示,能設(shè)置溫度報(bào)警上下限。著重介紹軟硬件系統(tǒng)的各部分電路,介紹了集成溫度傳感器DS18B20的原理,STC89C52單片機(jī)功能和應(yīng)用。該電路設(shè)計(jì)新穎、功能強(qiáng)大、結(jié)構(gòu)簡單。關(guān)鍵詞:溫度測量 報(bào)警 DS18B20 STC89C52 AbstractAbstract:In daily life and industrial production process, often used in the detection and control of temperature, temperature is the production process and scientific experiments in general and one of the important physical parameter. Traditional thermocouple and temperature ponents are the second resistor. The thermocouple and thermal resistance are generally measured voltage, and then replaced by the corresponding temperature, these methods are relatively plex, requiring a relatively large number of external hardware support. We use a relatively simple way to measure. Use the United States following DALLAS Semiconductor DS1820 improved after the introduction of a smart temperature sensor DS18B20 as the detection element, a temperature range of 55 186。 C ~ 125 186。 C, up to a maximum resolution of 186。 C. DS18B20 can be directly read out the temperature on the north side, and threewire system with singlechip connected to a decrease of the external hardware circuit, with lowcost and easy use.The introduction of a costbased STC89C52 MCU a temperature measurement circuits, the circuits used DS18B20 highprecision temperature sensor, measuring scope 0 186。 C~+100 186。 C, can set the warning limitation, the use of seven segments LCD 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 functions and applications of AT89C51 .This circuit design innovative, powerful, can be expansionary strong. Key words: Temperature measurement warning DS18B20 STC89C52目 錄1 緒論………………………………………………………………………………………1 引言……………………………………………………………………………………1 設(shè)計(jì)內(nèi)容及要求............................................................................................................1……………………………………………………………….22 AT89S52單片機(jī)介紹及應(yīng)用………………………………………………………………4 AT89S52的主要功能………………………………………………………………….4 引腳結(jié)構(gòu)及說明………………………………………………………………………5…………………………………………………………………………….6 引腳說明…………………………………………………………………………7 特殊功能寄存器……………………………………………………………………10 存儲器結(jié)構(gòu)..................................................................................................................13 軟件看門狗及串口…………………………………………………………………14 WDT的使用………………………………………………………………………..14 掉電和空閑方式下的WDT……………………………………………………..15 定時(shí)器2………………