【正文】
、靈敏度高、體積小、功耗低等優(yōu)點(diǎn),適合于我們?nèi)粘I詈凸?、農(nóng)業(yè)生產(chǎn)中的溫度測量,也可以當(dāng)作溫度處理模塊嵌入其它系統(tǒng)中,作為其他主系統(tǒng)的輔助擴(kuò)展。[關(guān)鍵詞] 單片機(jī)。溫度傳感器。 Design of temperature measurement system based on single chip microputer[Abstract] With the era of progress and development, singlechip technology has spread to our lives, work, research and in various fields, has bee a relatively mature technology. This paper introduces a temperature measuring system based on AT89C52, a detailed description of the use of digital temperature sensor DS18B20 measurement system development process, focusing on the sensor in SCM hardware connection, software programming and system flow of each module in detail, especially the digital temperature sensor DS18B20 data acquisition process. On the part of the circuit and one one were introduced, the system can facilitate the realization of the realization of temperature acquisition and display, and can be arbitrarily set the alarm temperature. it is very convenient to use, has high accuracy, wide measuring range, high sensitivity, small volume and low power consumption, suitable for our daily life and work in agricultural production and temperature measurement, but also can be used as a temperature processing module embedded in other systems, as the other main system aided bined with AT89C52 to achieve the most simple temperature detection system, the system has the advantages of simple structure and strong antiinterference ability, suitable for harsh environment onsite temperature measurement, and has wide application prospect.[Keywords] Singlechip。Temperature sensor。目錄1 概述………………………………………………………………………………4 課程設(shè)計(jì)的意義 …………………………………………………………4 設(shè)計(jì)的任務(wù)和要求…………………………………………………………42 系統(tǒng)總體方案及硬件設(shè)計(jì)………………………………………………………5 數(shù)字溫度計(jì)設(shè)計(jì)方案論證…………………………………………………5 方案一…………………………………………………………………5 方案二…………………………………………………………………5 系統(tǒng)總體設(shè)計(jì)………………………………………………………………5 系統(tǒng)模塊……………………………………………………………………6 主控制器………………………………………………………………6 顯示電路………………………………………………………………7 溫度傳感器……………………………………………………………7 報(bào)警溫度調(diào)整按鍵……………………………………………………83 系統(tǒng)軟件算法分析………………………………………………………………9 主程序流程圖………………………………………………………………9 讀出溫度子程序……………………………………………………………9 溫度轉(zhuǎn)換命令子程序………………………………………………………9 計(jì)算溫度子程序……………………………………………………………10 顯示數(shù)據(jù)刷新子程序………………………………………………………10 按鍵掃描處理子程序………………………………………………………104 實(shí)驗(yàn)仿真…………………………………………………………………………125 總結(jié)