【正文】
器選擇信號(hào),并在外部程序存儲(chǔ)器讀取指令時(shí)產(chǎn)生,指令內(nèi)容讀到數(shù)據(jù)總線上。 VSS:電源地線。該器件采用 ATMEL搞密度非易失存儲(chǔ)器制造技術(shù)制造,與工業(yè)標(biāo)準(zhǔn)的 MCS51 指令集和輸出管腳相兼容。 本設(shè)計(jì)的課題是 基于 單片機(jī)串口 通信的信息監(jiān)測(cè)系統(tǒng)的研制。 系統(tǒng)組成框圖 本設(shè)計(jì)是基于單片機(jī)對(duì)數(shù)字信號(hào)的高敏感和可控性、溫濕度傳感器可以產(chǎn)生模擬信號(hào),和 A/D模擬數(shù)字轉(zhuǎn)換芯片的性能,此設(shè)計(jì)以 STC89C52基本系統(tǒng) 為核心的一套檢測(cè)系統(tǒng),其中包括 A/D轉(zhuǎn)換、單片機(jī)、復(fù)位電路、溫度檢測(cè)、濕度檢測(cè)、鍵盤及顯示、報(bào)警電路、系統(tǒng)軟件等部分的設(shè)計(jì)。 3) 使用 CRH01 阻抗型 濕度傳感器對(duì)現(xiàn)場(chǎng)時(shí)讀數(shù)據(jù)采集,由單片機(jī)進(jìn)行數(shù)據(jù)處理, 濕度誤差≤ 5。 系統(tǒng)主要由以上元器件組成,通過(guò)硬件電路和軟件程序的設(shè)計(jì),實(shí)現(xiàn)系統(tǒng)的基本功能。因此,在本次設(shè)計(jì)中選用了 STC89C52 單片機(jī)。 課題設(shè)計(jì)的主要內(nèi)容 單片機(jī)是系統(tǒng)的控制核心,所以單片機(jī)的性能關(guān)系到整個(gè)系統(tǒng)的好壞。溫濕 度 傳感器正從結(jié)構(gòu)復(fù)雜、功能簡(jiǎn)單向集成化、智能化、多參數(shù)檢測(cè)的方向迅速發(fā)展,為開發(fā)新一代溫濕度測(cè)控系統(tǒng)創(chuàng)造了有利條件,也將溫度、濕度測(cè)量技術(shù)提高到新的水平。借助計(jì)算機(jī)軟件技術(shù),溫控器具有對(duì)控制對(duì)象控制參數(shù)及特性進(jìn)行自動(dòng)整定的功能。同時(shí)我們也必須要記錄大氣的溫濕度的變化,這樣 我們才更能對(duì)我們的生活的環(huán)境的變化有個(gè)直觀的了解! 7 國(guó)內(nèi)外研究概括及發(fā)展趨勢(shì) 國(guó)內(nèi)外溫度控制系統(tǒng)發(fā)展迅速,并在智能化、自適應(yīng)、參數(shù)自整定等方面取得成果。工程師在設(shè)計(jì)電器產(chǎn)品的時(shí)候必須要考慮設(shè)計(jì)出的產(chǎn)品將來(lái)工作環(huán)境中溫濕度的大小,使用過(guò)程中散熱通風(fēng)的問(wèn)題。對(duì)濕度和溫度進(jìn)行合理有效的調(diào)控不僅可以節(jié)約能源還更有利各行業(yè)安全健康的發(fā)展。 現(xiàn)代人類對(duì)生活環(huán)境的要求越來(lái)越高,尤其是溫濕度的影響,溫度高了或者低了都直接影響著這個(gè)社會(huì),而濕度低了或高了也同樣影響著我們的生活以及其他物種的生存條件。 the use of HD7279A as a keyboard and display module。 經(jīng)過(guò) 精心的 設(shè)計(jì)和 制作, 整個(gè)系統(tǒng) 完成了對(duì)溫度 和濕度 的采集、傳輸、接收和 顯示等功能,該系統(tǒng)具有 系統(tǒng)結(jié)構(gòu)簡(jiǎn)單 、電路成本低、 數(shù)據(jù)傳輸距離長(zhǎng),傳輸精度高、抗干擾強(qiáng) 等特點(diǎn)。 該系統(tǒng)的 測(cè)溫范圍: 25℃ — +55℃ ,采集精度為 177。 雖然紅外,藍(lán)牙等無(wú)線通信技術(shù)得到了很大的發(fā)展,但是有線通信仍然是占據(jù)著當(dāng)今通信領(lǐng)域的半壁江山, 其 在各種信息監(jiān)測(cè)和通信方面也占有著 重要的作用 。 本文采用 STC89C52 單片機(jī)為 主控微處理器,設(shè)計(jì)了一個(gè)能夠同時(shí)監(jiān)測(cè)溫度和濕度的單片機(jī)系統(tǒng) ?!?, 濕度范圍: 20%— 80%, 采 集精度為 177。 關(guān)鍵詞 : 溫度傳感器 濕度傳感器 STC89C52 單片機(jī) 指導(dǎo)老師簽名: 3 The software design of Temperature and humidity system Student name : Zhou Yun Class: 08041232 Supervisor: Liu Qingping Abstract: With microelectronic technology, puter technology, testing technology, puter munication and information monitoring technology in daily life increasingly widespread use. Although the infrared, Bluetooth and other wireless munication technology has got great development, but is still occupying the wired munication munication field in the half of the country, all kinds of information monitoring and munication also plays an important role in. In this paper, using STC89C52 microcontroller to control the microprocessor, the design of a can simultaneously monitor the temperature and humidity of the single chip microputer system. The design is based on STC89C52 single chip puter as the core, with the temperature sensor DS1820 and CHR01 humidity sensor, and related peripheral circuits of the detection system, which receives the measurement of environmental temperature and humidity signals, the testing personnel can through the digital tube display data, real time monitor of environment temperature and humidity conditions. The system includes the design of hardware and software, high reliability, simple structure, realizes the automatic regulation of temperature and humidity. The system of temperature measurement range: 25℃ +55 ℃ , acquisition accuracy is 177。 the use of singlechip serial port data transmitting, receiving module. Carefully design and production, the whole system for temperature and humidity of the collection, transmission, reception and display functions, the system has the advantages of simple structure, low cost, data transmission circuit for long distance, high transmission precision, strong antiinterference. 4 Keyword: Temperature sensor Humidity sensor STC89C52 single chip microputer Signature of Supervisor: 5 目 錄 1 緒 論 ............................................................................................................... 6 課題研究背景及意義 ..................................................................................... 6 國(guó)內(nèi)外研究概括及發(fā)展趨勢(shì) ......................................................................... 7 課題設(shè)計(jì)的主要內(nèi)容 ..................................................................................... 7 2 系統(tǒng)總體設(shè)計(jì)方案 ........................................................................................ 8 課題設(shè)計(jì)的主要內(nèi)容 ..................................................................................... 9 系統(tǒng)組成框圖 ................................................................................................. 9 3 系統(tǒng)硬件 電路設(shè)計(jì) ...................................................................................... 10 單片機(jī)最小系統(tǒng) ........................................................................................... 10 溫度采集電路的設(shè)計(jì) ................................................................................... 13 濕度采集電路的設(shè)計(jì) ................................................................................... 15 A/D 轉(zhuǎn)換電路的設(shè)計(jì) .................................................................................... 19 鍵盤顯示電路的設(shè)計(jì) ................................................................................... 21 報(bào)警電路的設(shè)計(jì) ........................................................................................... 22 4 系統(tǒng)的軟件設(shè)計(jì) ........................................................................................... 23 系統(tǒng)主程序設(shè)計(jì) ........................................................................................... 23 中斷模塊 ....................................................................................................... 25 鍵盤顯示模塊 ............................................................................................... 27 采樣轉(zhuǎn)換模塊 ............................................................................................... 29 溫度采樣模塊 ............................................................................................... 30 濕度采樣模塊 ............................................................................................... 30 報(bào)警模塊 ....................................................................................................... 31 5 系統(tǒng)調(diào)試 .......................................................................................................... 32 單片機(jī)最小系統(tǒng)的調(diào)試 .....................................................................