【正文】
erature 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。DS18B20可以直接讀出被測溫度值,而且采用三線制與單片機相連,減少了外部的硬件電路,具有低成本和易使用的特點。我們用一種相對比較簡單的方式來測量。沈陽理工大學學士學位論文 摘 要摘要:在日常生活及工業(yè)生產(chǎn)過程中,經(jīng)常要用到溫度的檢測及控制,溫度是生產(chǎn)過程和科學實驗中普遍而且重要的物理參數(shù)之一。采用美國DALLAS半導體公司推出的一種改進型智能溫度傳感器DS18B20作為檢測元件,溫度范圍為55~125 186?;赟TC89C52單片機的溫度測量及報警電路,電路采用DS18B20作為溫度監(jiān)測元件,測量范圍0℃~50℃,使用LCD模塊顯示,能設(shè)置溫度報警上下限。 C ~ 125 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è)計內(nèi)容及要求............................................................................................................1……………………………………………………………….22 AT89S52單片機介紹及應(yīng)用………………………………………………………………4 AT89S52的主要功能………………………………………………………………….4 引腳結(jié)構(gòu)及說明………………………………………………………………………5…………………………………………………………………………….6 引腳說明…………………………………………………………………………7 特殊功能寄存器……………………………………………………………………10 存儲器結(jié)構(gòu)..................................................................................................................13 軟件看門狗及串口…………………………………………………………………14 WDT的使用………………………………………………………………………..14 掉電和空閑方式下的WDT……………………………………………………..15 定時器2………………………………………………………………………..15 其他功能介紹………………………………………………………………………163 系統(tǒng)軟件的設(shè)計................................................................................................................23 程序設(shè)計語言………………………………………………………………………..23 主程序………………………………………………………………………………..23 顯示子程序…………………………………………………………………………..24 定時器T0中斷服務(wù)程序……………………………………………………………25 T1中斷服務(wù)程序……………………………………………………………………..25 調(diào)時功能程序……………………………………………………………………….25 時鐘/秒表功能程序…………………………………………………………………254 硬件電路的操作和顯示……………………………………………………………….26 硬件工作過程………………………………………………………………………26 LED的性能特點………………………………………………………………….275 其他外圍電路設(shè)計………………………………………………………….28 時鐘電路……………………………………………………………………………28 復位電路……………………………………………………………………………29 鍵盤電路……………………………………………………………………………30結(jié) 論………………………………………………………………………………………….32致 謝………………………………………………………………………………………….33參考文獻……………………………………………………………………………………..34附錄A 英文和翻譯………………………………………………………………………….35附錄B 電路原理圖....................