【正文】
分類號 TP274 單位代碼 11395 密 級 公開 學(xué) 號 0805270103 學(xué)生畢業(yè)設(shè)計(論文) 題 目 基于單片機的多路溫度采集系統(tǒng)設(shè)計 作 者 張京 院 (系 ) 能源工程學(xué)院 專 業(yè) 測控技術(shù)與儀器 指導(dǎo)教師 趙鵬 答辯日期 2021年 5月 27日 II 榆 林 學(xué) 院 畢業(yè)設(shè)計(論文) 誠信責(zé)任書 本人鄭重聲明:所呈交的畢業(yè)設(shè)計(論文),是本人在導(dǎo)師的指導(dǎo)下獨立進行研究所取得的成果。畢業(yè)設(shè)計(論文)中凡引用他人已經(jīng)發(fā)表或未發(fā)表的成果、數(shù)據(jù)、觀點等,均已明確注明出處。盡我所知,除文中已經(jīng)注明引用的內(nèi)容外,本論文不包含任何其他個人或集體已經(jīng)公開發(fā)表或撰寫過的研究成果 。對本文的研究做出重要貢獻的個人和集體,均已在文中以明確方式標(biāo)明。 本人畢業(yè)設(shè)計(論文)與資料若有不實,愿意承擔(dān)一切相關(guān)的法律責(zé)任。 論 文 作者簽名 : 年 月 日榆林學(xué)院本科畢業(yè)設(shè)計(論文) I 摘 要 單片機是一種集 CPU、 RAM、 ROM、 I/O 接口和中斷系統(tǒng)等部分于一體的器件,只需要外加電源和晶振就可實現(xiàn)對數(shù)字信息的處理和控制。單片機由于其微小的體積和極低的成本, 而 廣泛的應(yīng)用于家用電器、工業(yè)控制等領(lǐng)域中。多路溫度采集系統(tǒng)是利用 溫度傳感器 DS18B20 檢測溫度,并由單片機處理顯示。 本設(shè)計利用 AT89S52 單片機為處理器,結(jié)合溫度采集電路、鍵盤電路、顯示電路、報警電路等實現(xiàn)對多路溫度的實時檢測與顯示。通過設(shè)計實物并調(diào)試,對系統(tǒng)存在的問題進行了分析和總結(jié),并提出了改進措施。 實驗證明:該信號采集系統(tǒng)性能穩(wěn)定,采集精度高,具有極高的性價比。 關(guān)鍵詞 :單片機 ; DS18B20;溫度采集 基于單片機的多路溫度采集系統(tǒng)設(shè)計 II Design of Multichannel Temperature Acquisition System Based on AT89S52 MCU ABSTRACT Singlechip is a device which consists of a set of CPU, RAM, ROM, I/O interface, interrupt system and other parts. You only need external power supply and clock then the digital information processing and control can be achieved on. Because of the small scale, low price and high efficiency of MCU, it is widely used in home appliances and industrial control. Multichannel temperature acquisition system is used temperature thermometer DS18B20 to detect the temperature, process and display by the singlechip. This design uses AT89S52 as microprocessor to realize design goal this design including temperature gathering circuit, keyboard circuit, display circuit, alarm circuit etc. to achieve the temperature detection and the display. To introduce the problems during the debugging are analyzed and summarized, some measure about the system improvement are proposed. The result of experiments indicated that signal sampling system has good performance, high precision, and has a very high pertormancetoprice ration. Key words: MCU; DS18B20; temperature acquisition 榆林學(xué)院本科畢業(yè)設(shè)計(論文) III 目 錄 摘 要 ...............................................................................................................................I ABSTRACT .........................................................................................................................II 1 緒論 ...............................................................................................................................1 選題背景 ..............................................................................................................1 本設(shè)計國內(nèi)外狀況 ..............................................................................................1 本設(shè)計的任務(wù)和主要內(nèi)容 ..................................................................................2 2 系統(tǒng)總體設(shè)計 ...............................................................................................................3 系統(tǒng)概述 ..............................................................................................................3 系統(tǒng)工作原理分析 ..............................................................................................3 3 系統(tǒng)的硬件設(shè)計 ...........................................................................................................4 溫度采集系統(tǒng)的開發(fā)過程 .................................................................................4 單片機的最小 系統(tǒng)設(shè)計 .....................................................................................4 單片機的選型 ...........................................................................................4 AT89S52 的性能及應(yīng)用 .........................................................................5 時鐘電路設(shè)計 ...........................................................................................7 復(fù)位電路設(shè)計 ...........................................................................................7 溫度采集接口電路設(shè)計 ......................................................................................8 DS18B20 簡介 ...........................................................................................8 DS18B20 與單片機的接口設(shè)計 .............................................................12 顯示器與鍵盤電路的設(shè)計 ................................................................................13 顯示電路設(shè)計 .........................................................................................13 鍵盤電路設(shè)計 .........................................................................................14 報警電路設(shè)計 ...................................................................................................15 4 多路溫度采集系統(tǒng)的軟件設(shè)計 .................................................................................16 主程序流程設(shè)計 ...............................................................................................16 程序設(shè)計及巡檢子程序設(shè)計 ...........................................................................17 巡檢鍵盤及數(shù)碼管多通道顯示 ........................................................................19 溫度報警程序設(shè)計 ...........................................................................................22 5 系統(tǒng)仿真 .....................................................................................................................23 6 總 結(jié) ...........................................................................................................................26 參考文獻 .........................................................................................................................27 基于單片機的多路溫度采集系統(tǒng)設(shè)計 IV