【正文】
B20 municates over a 1Wire bus that by definition requires only one data line (and ground) for munication with a central microprocessor. It has an operating temperature range of –55176。可以把多個 DS18B20 連接在一根數(shù)據(jù)線上,通過這個序列號可以 操作響應(yīng)的溫度傳感器。該溫度傳感器是可以用戶設(shè)置的,有 9 位、 10 位、 11 位和 12 位的分辨率,分別對應(yīng) C, C, C,和 C,的增量,也就是說數(shù)字每增加一溫度增加的值。而當 DS18B20 進行溫度轉(zhuǎn)換或?qū)?shù)據(jù)從易失性存儲介質(zhì)中拷貝到 EEPROM 中時,操作需要的電流高達 這樣大的電流必然導(dǎo)致不可接受的電壓的下降,而且這樣的電流也不是電容能夠提供的。為了能夠初始化溫度傳感器和使其內(nèi)部的模數(shù)轉(zhuǎn)換電路工作,主設(shè)備也就是單片機需要給 DS18B20 發(fā)出轉(zhuǎn)換命令(即向 DS18B20 傳送 44H)。 HVAC 環(huán)境控制器和溫度控制器系統(tǒng)都應(yīng)用該傳感器實現(xiàn)了很好的功能。C and is accurate to C over the range of –10176。 C。而當 DQ為低電平時,傳 感器就不工作了?當然不是了,在溫度傳感器的內(nèi)部有一個電容,當 DQ 為高電平時充電,當 DQ 為低電平時放電,放出來的電給傳感器供電。溫度傳感器的寄生電源是在 DQ管腳為高電壓的時候存儲電量來為以后 DQ 為低的時候供電。如果 DS18B20 是寄生供電的話,由于在傳感器轉(zhuǎn)換期間需要比較大量的電能,所以就不能夠支持上訴的功能了。此外,暫時寄存器還和一個字節(jié)的上限、下限寄存器相連,同時也和一個字節(jié)的配置字相連。 thus, it is simple to use one microprocessor to control many DS18B20s distributed over a large area. Applications that can benefit from this feature include HVAC environmental controls, temperature monitoring systems inside buildings, equipment or machinery, and process monitoring and control systems. OVERVIEW The 64bit ROM stores the device’s unique serial code. The scratchpad memory contains the 2byte temperature register that stores the digital output from the temperature sensor. In addition, the scratchpad provides access to the 1byte upper and lower alarm trigger registers (T and T ), and the 1byte configuration H L register. The configuration register allows the user to set the resolution of the temperaturetodigital conversion to 9, 10, 11, or 12 bits. The T,