【正文】
英文參考資料 The DS18B20 Digital Thermometer provides 9 to 12–bit centigrade temperature measurements and has an alarm function with nonvolatile userprogrammable upper and lower trigger points. The DS18B20 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。C to +125176。C and is accurate to C over the range of –10176。C to +85176。C. In addition, the DS18B20 can derive power directly from the data line (―parasite power‖), eliminating the need for an external power supply. Each DS18B20 has a unique 64bit serial code, which allows multiple DS18B20s to function on the same 1–wire bus。 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, T and configuration registers are nonvolatile (EEPROM), so H L they will retain data whe