【正文】
be more simple, and more each DS18B20 contains a unique silicon serial number, multiple DS18B20s can exist on the same 1Wire bus. This allows for placing temperature sensors in many different places. Applications where this feature is useful include HVAC environmental controls, sensing temperatures inside buildings, equipment or machinery, and process monitoring and control. II. Structural of the DS18B20 The DS18B20 has four main data ponents: (1) 64bit lasered ROM (2) temperature sensor (3) nonvolatile temperature alarm triggers TH and TL ( 4) a configuration register. The device derives its power from the 1Wire munication line by storing energy on an internal capacitor during periods of time when the signal line is high and continues to operate off this power source during the low times of the 1Wire line until it returns high to replenish the parasite (capacitor) supply. As an alternative, the DS18B20 may also be powered from an external 3V supply. III. The DS18B20 how to measure temperature The core functionality of the DS18B20 is its directtodigital temperature sensor. The resolution of the DS18B20 is configurable (9, 10, 11, or 12 bits),with 12bit readings the factory default state. This equates to a temperature resolution of , , or . Following the issuance of the Convert T [44h] mand, a temperature conversion is performed and the thermal data is stored in the scratchpad memory in a 16bit, signextended two’s plement format. The temperature information can be retrieved over the 1Wire interface by issuing a Read Scratchpad [BEh] mand once the conversion has been performed. The data is transferred over the 1Wire bus, LSB first. The MSB of the temperature register contains the “sign” (S) bit, denoting whether the temperature temperature is positive or negative. If the DS18B20 is configured for a lower resolution,