【正文】
thermometer was designed with low power consumption based on MSP430 single chip microputer, the control system of DS18B20 read the temperature through the singlechip MSP430F149, the use of digital tube display, temperature sensor DS18B20 and single chip microputer for data transmission through the serial port, MSP430 Series MCU with low power consumption the periphery, 基于 msp430 單片機(jī)和 DS18B20 使用數(shù)碼管顯示的溫度測(cè)量 2 and high integration, DS18B20 only needs one port to realize the data munication, the connection is convenient, through many experiments, the test results of the system and the actual environment temperature is the same, except with the interface circuit is simple, high precision, small error, high reliability, low cost, low power consumption it has a wider application 1 Keywords: temperature measurement MSP430 temperature sensor DS18B20 ultra low2 power consumption 目錄 一.溫度測(cè)量器的總體設(shè)計(jì) ............................................................... 3 二.溫度測(cè)量器的硬件選擇 ............................................................... 4 1 主控器件: MSP430F149 ........................................................... 4 2 溫度信息采集單元: DS18B20 .................................................. 5 DS18B20 ....................................................................... 5 DS18B20 管腳排列 ......................................................... 6 :數(shù)碼管及其驅(qū)動(dòng) ...................................................... 7 數(shù)碼管 ............................................................................... 7 驅(qū)動(dòng)芯片: 74HC573......................................................... 7 三 . 系統(tǒng)軟件程序 ............................................................................... 8 系統(tǒng)的程序流圖 ...................................................................... 8 DS18B20 的子程序 ............................................................ 9 基于 msp430 單片機(jī)和 DS18B20 使用數(shù)碼管顯示的溫度測(cè)量 3 1 初始化時(shí)序 ..................................................................10 2 寫(xiě)時(shí)序 .......................................................................12 3 讀時(shí)序 .........................................................................14 溫度計(jì)算子程序 .....................................................................16 處理數(shù)碼管顯示的子程序 ......................................................19 四、系統(tǒng)調(diào)試 ....................................................................................20 硬件檢測(cè)和調(diào)試 .....................................................................20 軟件程序調(diào)試 .........................................................................22 整體調(diào)試 ................................................................................22 五、結(jié)論分析 ....................................................................................23 參考文獻(xiàn): ........................................................................................24 附錄一: ............................................................................................24 附錄二: ............................................................................................24 附錄三: ............................................................................................31 一 .溫度測(cè)量器的總體設(shè)計(jì) 生活中最常見(jiàn)的應(yīng)該是利用物體的熱脹冷縮測(cè)溫度,比如家里用的溫度計(jì)、體溫計(jì)等等,這種很好做但是精密程度不