【正文】
引用的內(nèi)容外,本論文不包含其他個(gè)人已經(jīng)發(fā)表或撰寫過的研究成果。它以 AT89S51 單片機(jī)為主控制芯片,采用數(shù)字溫度傳感器 DS18B20 實(shí)現(xiàn)溫度的檢測,測量精度可以達(dá)到 攝氏度。 【關(guān)鍵詞】: AT89S51 DS18B20 溫度測控 ABSTRACT This paper mainly introduced based on AT89S51 microcontroller and digital temperature sensor DS18B20 temperature control system. The system uses AT89S51 chip were collected in each temperature point temperature, temperature display, alarm and other functions. It takes AT89S51 MCU as the main control chip, the use of digital temperature sensor DS18B20 to realize the temperature measurement, the measurement precision can reach degrees celsius. The system adopts LED display, intuitive display of the image of measured temperature values. In this paper, function design objectives include the following several aspects: temperature acquisition part, a clock circuit, reset circuit, an alarm circuit, a relay control circuit, a key input part and a digital display part. Based on the AT89S51 MCU single bus temperature measurement and control system has simple hardware position, reading convenience, high precision, wide measuring range and other characteristics, are widely used in practical engineering. 【 KEY WORD】 : AT89S51 DS18B20 temperature control 目 錄 引言 ............................................................................................................................................ 1 一、系統(tǒng)總體方案 .................................................................................................................... 1 二、單片機(jī) AT89S51 ................................................................................................................ 2 (一)單片機(jī)的發(fā)展概況 ........................................................................................................ 2 (二) AT89S51 簡介 ................................................................................ 錯(cuò)誤 !未定義書簽。 如在日趨發(fā)達(dá)的工業(yè)之中,利用測量與控制溫度來保證生產(chǎn)的正常運(yùn)行。單片機(jī) AT89S51 能夠根據(jù)溫度傳感器 DS18B20 所采集的溫度在數(shù)碼管上實(shí)時(shí)顯示,通過控制從而把溫度控制在設(shè)定的范圍之內(nèi)。 一、系統(tǒng)總體方案 本方案使用單片機(jī) AT89S51 作為控制 核心,以智能溫度傳感器 DS18B20 為溫度測量元件,對(duì)各點(diǎn)溫度進(jìn)行檢測,設(shè)置溫度上下限,超過其溫度值就報(bào)警。 1976 年 Intel 公司首 先推出能稱為單片機(jī)的 MCS48 系列單片微型計(jì)算機(jī)。該器件將半導(dǎo)體溫敏器件、 A/D 轉(zhuǎn)換器、存儲(chǔ)器等做在一個(gè)很小的集成電路芯片上。該反向放大器可 被配制成 片內(nèi)振蕩器 , 石晶振蕩和陶瓷振蕩均可采用 這種反向放大器 。在使用外部時(shí)鐘時(shí),外部時(shí)鐘從 XTAL1 輸入,而 XTAL2必須 懸空。其中的數(shù)據(jù)信息不會(huì)丟失,也 就是說 即復(fù)位 3 后,只 會(huì) 影響 SFR 中的內(nèi)容,內(nèi)部 RAM 中的數(shù)據(jù) 將 不受 任何 影響。按鍵復(fù)位電路如圖 5 所示。鍵盤的連接方式采用獨(dú)立連接式,這樣的連接方式能夠簡化程序的編寫。 LED顯示方式有靜態(tài)顯示、動(dòng)態(tài)顯示和串口顯示。由單片機(jī) P00, P01, P2, P03, P04, P05, P06 控制數(shù)碼管的段碼顯示,決定數(shù)碼管顯示的字符,由 , , , 控制輸出數(shù)碼管的位碼,決定哪個(gè)數(shù)碼管顯示。本次設(shè)計(jì)采用繼電器作為控制電路的主要器件,通過繼電器可以實(shí)現(xiàn)直流信號(hào)控制交流負(fù)載的功能,從而實(shí)現(xiàn)單片機(jī)系統(tǒng)的控制功能。如圖 9 所示。 5 (二)