【正文】
傳感器作為測溫元件,通過 4 位共 陰 極 LED 數(shù)碼顯示管并行傳送數(shù)據(jù),實現(xiàn)溫度顯示。熱敏電阻的成本低,需要外加信號處理電路,而且可靠性相對較差,測溫準(zhǔn)確度低,檢測系統(tǒng)也有一定的誤差。單片機原理及系統(tǒng)課程設(shè)計報告 1 1 摘 要 隨著現(xiàn)代信息技術(shù)的飛速發(fā)展和傳統(tǒng)工業(yè)改造的逐步實現(xiàn),能夠獨立工作的溫度檢測與顯示系統(tǒng)應(yīng)用于諸多領(lǐng)域。傳統(tǒng)的溫度檢測以熱敏電阻為溫度敏感元件。與傳統(tǒng)的溫度計相比,這次設(shè)計的是基于DS18B20 的數(shù)字溫度計,它具有讀數(shù)方便,測溫范圍廣,測溫精確,數(shù)字顯示,適用范圍寬等特點。本設(shè)計的內(nèi)容主要分為兩部分,一是對系統(tǒng)硬件部分的設(shè)計,包括溫度采集電路和顯示電路;二是對系統(tǒng)軟件部分的設(shè)計,應(yīng)用 C 語言實現(xiàn)溫度的采集與顯示。其系統(tǒng)構(gòu)成簡單,信號采集效果好,數(shù)據(jù)處理速度快,便于實際檢測使用。s swift development and traditional industry transformation39。s cost is low, needs the sur signal processing electric circuit, moreover the reliability is relatively bad, the temperature measurement accuracy is low, the examination system also has certain error. the digit demonstrated that applicable scope wide and so on characteristics. Used in the design AT89C51 MCU as the main control including temperature gathering electric circuit and display circuit。s design, realizes temperature gathering and the demonstration using the C language. DS18B20 measured by direct reading temperature values,and transfer Data into MCU,and output to show,this is the design of the Digital Thermometer. Its system constitution is simple, the effect of signal gathering is good, the speed of data processing is quick,at al it is advantageous for the actual examination use. Keywords: MCU AT89S51。 LED Digital tube Digital Thermometer 單片機原理及系統(tǒng)課程設(shè)計報告 1 3 3 目 錄 1 引言 ...................................................................................................... 4 2 總體方案設(shè)計 ...........................................................................錯誤 !未定義書簽。 總體設(shè)計框圖 ..................................................................錯誤 !未定義書簽。 溫度傳感器 ......................................................................................................7 顯示電路 ..........................................................................................................7 系統(tǒng)總電路圖 ..................................................................................................7 4 系統(tǒng) 軟件設(shè)計 ...........................................................................................................8 主程序 ..............................................................................................................8 讀溫度 子程序 ..................................................................................................8 溫度轉(zhuǎn)換命令子程序 ......................................................................................8