【正文】
evice is particularly important. temperature controlling by single chip microputer , not only the circuit is simple , but also can you control conveniently, collect data more accurately so that to meet the many demands in life. The core ponents of this design is AT89S52 , plus with the temperature acquisition circuit, display circuit and outoflimit alarm circuit etc. With one main line digital temperature sensor DS18B20, the system has a temperature measurement error is small, high resolution, strong antiinterference ability, etc. This design can either to test the current temperature and the temperature digital display, using four digital tube display method has high precision, if beyond the limit temperature is triggered buzzer alarm. Using the powerful Keil software and DXP the preparation of the program and schematic drawing. Keywords: temperature; measuring; AT89S52; DS18B20; alarm III 目錄 第 1 章 緒論 ........................................................................................................................... 1 選題背景 .................................................................................................................. 1 研究意義 .................................................................................................................. 1 國內(nèi)外相關(guān)研究情況 ................................................................................................ 2 本文研究的主要內(nèi)容 ................................................................................................ 2 重點、難點及研究的方法 ......................................................................................... 2 重點 ............................................................................................................... 2 難點 ............................................................................................................... 2 研究方法 ........................................................................................................ 3 第 2 章 總體設(shè)計方案 ............................................................................................................. 3 設(shè)計方案 .................................................................................................................. 3 方案一 ............................................................................................................ 3 方案二 ............................................................................................................ 3 系統(tǒng)的組成與工作原理 ............................................................................................. 4 第 3 章 系統(tǒng)硬件設(shè)計 ............................................................................................................. 4 系統(tǒng)硬件電路的構(gòu)成及測量原理 ............................................................................... 4 系統(tǒng)硬件電路構(gòu)成 .......................................................................................... 4 系統(tǒng)工作原理 ................................................................................................. 5 單片機 AT89S52 ....................................................................................................... 6 單片機功能特性概述 ....................................................................................... 6 AT89S52 引腳功能介紹 ................................................................................... 6 單片機的最小系統(tǒng) .................................................................................................... 8 晶振電路 ........................................................................................................ 9 復(fù)位電路 .......................................................................................................10 測溫電路設(shè)計 ..........................................................................................................10 顯示電路的設(shè)計 ...................................................................................................... 11 四位一體數(shù)碼管簡介 ...................................................................................... 11 四位一體數(shù)碼管共陰陽極的區(qū)分方法 .............................................................12 IV 四位一體數(shù)碼管的驅(qū)動方式 ...........................................................................12 靜態(tài)驅(qū)動也稱直流驅(qū)動 ........................................................................12 動態(tài)驅(qū)動方式 ......................................................................................13 應(yīng)用 74LS164 驅(qū)動數(shù)碼管 ..............................................................................13 閃光燈設(shè)計 .............................................................................................................14 報警電路 .................................................................................................................14 第 4 章 系統(tǒng)軟件的設(shè)計 .........................................................................................................15 系統(tǒng)的總體設(shè)計思路 ...............................................................................................15 系統(tǒng)的程序設(shè)計 ......................................................................................................15 主程序 ...........................................................................................................15 系統(tǒng)主流程圖 ................................................................................................16 系統(tǒng)開發(fā)環(huán)境 ...................................................