【正文】
本 科 生 畢 業(yè) 設 計(論 文)論文題目:基于單片機的智能溫度報警系統(tǒng)姓名:張靖學號:09022210班級:090222年級:2009級專業(yè):測控技術與儀器學院:核工程與地球物理學院指導教師:饒利民 (講師)完成時間:2013年6月5日作 者 聲 明本人以信譽鄭重聲明:所呈交的學位畢業(yè)設計(論文),是本人在指導教師指導下由本人獨立撰寫完成的,沒有剽竊、抄襲、造假等違反道德、學術規(guī)范和其他侵權行為。文中引用他人的文獻、數據、圖件、資料均已明確標注出,不包含他人成果及為獲得東華理工大學或其他教育機構的學位或證書而使用過的材料。對本設計(論文)的研究做出重要貢獻的個人和集體,均已在文中以明確方式標明。本畢業(yè)設計(論文)引起的法律結果完全由本人承擔。本畢業(yè)設計(論文)成果歸東華理工大學所有。特此聲明。畢業(yè)設計(論文)作者(簽字): 簽字日期: 年 月 日 本人聲明:該學位論文是本人指導學生完成的研究成果,已經審閱過論文的全部內容,并能夠保證題目、關鍵詞、摘要部分中英文內容的一致性和準確性。 學位論文指導教師簽名: 年 月 日基于單片機的智能溫度報警系統(tǒng)張靖Based on single chip microputer intelligent temperature alarm systemZhang, Jing2013年6月5日 摘 要本論文介紹了一種以STC89C52RC單片機為核心的智能溫度報警系統(tǒng)。以STC89C52單片機為主控制單元,以DS18B20為溫度傳感器的溫度控制系統(tǒng)。該控制系統(tǒng)可以實時存儲相關的溫度數據。系統(tǒng)設計了相關的硬件電路和相關應用程序。硬件電路主要包括STC89C52單片機最小系統(tǒng),測溫電路、按鍵處理電路、數碼管顯示電路以及狀態(tài)顯示電路等。系統(tǒng)程序主要包括主程序,讀出溫度子程序,計算溫度子程序、按鍵處理程序、數碼管顯示程序以及數據存儲程序等。STC89C52RC單片機可以在寬范圍的性能要求下實現高度集成,低成本的解決方案。而且該系統(tǒng)可由用戶通過鍵盤自行設置所需要的溫度,并由數碼管顯示電路實時顯示被控溫度及設定溫度,使系統(tǒng)應用更加方便、直觀。關鍵詞:STC89C52單片機; DS18B20; 顯示電路Abstract Along with the puter measurement and control technology of the rapid development and wide application, based on singlechip temperature gathering and control system development and application greatly improve the production of temperature in life level of control. This design STC89C52 describes a kind of mainly by MCU control unit, for temperature sensor DS18B20 temperature control system. The control system can realtime storage temperature data and record related to the current time. System design related hardware circuit and related applications. STC89C52 microcontroller hardware circuit include temperature detection circuit smallest system, and key processing circuit, digital tube display circuit and state display circuit etc. System programming mainly include main program, read temperature subroutine, the calculation of temperature subroutines, key processing procedures, Segment display procedures and data storage procedures, etc. STC89C52RC singlechip microputer can be realized in a wide range of performance requirements under the highly integrated, low cost solution. And the system could be used by the user through the keyboard to set the required temperature, and the digital tube display circuit realtime display was charged with temperature and set temperature, make system more convenient and intuitive.Key words: STC89C52 singlechip microputer。 DS18B20。 Display circuit東華理工學院畢業(yè)設計(論文) 目錄目 錄緒論 11.1 課題研究的背景 11.2 本課題所研究的內容 1第二章 系統(tǒng)硬件設計 32.1設計方案: 32.1.1方案列舉 32.1.2方案論證: 42.2 STC89C52RC單片機簡介 42.3 STC89C52RC芯片的特性 52.4 基于STC89C52RC的溫度控制系統(tǒng)的總體設計 62.4.1 系統(tǒng)硬件基本結構 62.4.2 STC89C52的復位電路 72.4.3鍵盤電路 82.4.4 溫度傳感器電路 92.4.5 系統(tǒng)電源電路的設計 102. 4. 6報警電路 112.4.7 電路狀態(tài)顯示電路 122.4.8數碼管顯示電路 122.4.9 設計總電路 13第三章 系統(tǒng)軟件設計 143.1應用程序模塊整體設計 14 系統(tǒng)資源分配 14 主程序及循環(huán) 15 溫度讀取子程序 153.3 按鍵與溫度處理 163.3.1 按鍵處理子程序 16 計算溫度子