摘 要
DALLAS公司單線數字溫度傳感器DS18B20具有體積小、適用電壓寬等特點。由于其具有單總線的獨特優點,可以使用戶輕松地組建起傳感器網絡,并可使多點溫度測量電路變得簡單、可靠。本文介紹了單線數字溫度傳感器DS18B20的特點和工作原理以及DS18B20數字溫度傳感器在單片機下的硬件連接,并給出了軟件流程圖。
該系統采用ATMEL公司的AT89C51單片機和DALLAS公司的DS18B20數字溫度傳感器。單片機軟件編程的自由度大,可通過編程實現各種各樣的算術算法和邏輯控制。[1]最后通過數碼管顯示所測的溫度數據。
關鍵字: 溫度測量;單總線;數字溫度傳感器;單片機
ABSTRACT
1-wire interface digital sensor DS18B20 of DALLAS company is small in size, wide application in voltage and so on. It can also make the net simple and reliable with it's special 1-wire interface. This paper introduces the characteristics and working principle of a 1-wire interface digital sensor DS18B20 and the application of DS18B20 with single chip processor and gives the software flow chart.
The system uses AT89C51 of ATMEL company and DS18B20 of DALLAS company .It’s freely of SCM’s software programming. We can program to achieve a variety of arithmetic algorithms and logic control. Finally it uses numerical code tube to display the temperature data.
Keywords: temperature measure; single bus; digital thermometer; single chip processor