English
Language : 

DS1721 Datasheet, PDF (4/16 Pages) Dallas Semiconductor – 2-Wire Digital Thermometer and Thermostat
DS1721
OPERATION-Measuring Temperature
The core of DS1721 functionality is its direct-to-digital temperature sensor. The DS1721 measures
temperature through the use of an on-chip temperature measurement technique with an operation range
from -55°C to +125°C. The device can be configured to perform continuous conversions with the most
recent result being stored in the thermometer register. The device can also be configured to perform a
single conversion, store the result, and return to a standby mode. Regardless of the mode used, the digital
temperature is retrieved from the temperature register using the Read Temperature (AAh) command, as
described in detail in the “Command Set” section. The DS1721 power-up default has the sensor set to
automatically perform 12-bit conversions continuously once the Start Convert T (51h) command is
issued. Details on how to change the settings after power-up are contained in the “OPERATION-
Programming” section.
The resolution of the temperature conversion can be configured as 9, 10, 11, or 12 bits, with 12-bit
readings as the default state. This equates to a temperature resolution of 0.5°C, 0.25°C, 0.125°C, or
0.0625°C. Following each conversion thermal data is stored in the thermometer register in two’s
complement format; the information can be retrieved over the 2-wire interface by issuing a Read
Temperature (AAh) command. Table 2 describes the exact relationship of output data to measured
temperature. The table assumes the DS1721 is configured for 12-bit resolution; if the device is configured
in a lower resolution mode, insignificant bits will contain zeros. The data is transmitted serially over the
2-wire serial interface, MSb first. The MSb of the temperature register contains the “sign” (S) bit,
denoting whether the temperature is positive or negative. For Fahrenheit usage, a lookup table or
conversion routine must be used.
TEMPERATURE/DATA RELATIONSHIPS Table 2
S
26
25
24
23
22
MSb
(UNIT = °C)
2-1
2-2
2-3
2-4
0
0
21
20
MSB
LSb
0
0
LSB
TEMP
+125°C
+25.0625°C
+10.125°C
+0.5°C
+0°C
-0.5°C
-10.125°C
-25.0625°C
-55°C
DIGITAL OUTPUT
(Binary)
0111 1101 0000 0000
0001 1001 0001 0000
0000 1010 0010 0000
0000 0000 1000 0000
0000 0000 0000 0000
1111 1111 1000 0000
1111 0101 1110 0000
1110 0110 1111 0000
1100 1001 0000 0000
DIGITAL OUTPUT
(Hex)
7D00h
1910h
0A20h
0080h
0000h
FF80h
F5E0h
E6F0h
C900h
OPERATION-Thermostat Control
In its operating mode, the DS1721 functions as a thermostat with programmable hysteresis, as shown in
Figure 2. The thermostat output updates as soon as a temperature conversion is complete. When the
DS1721’s temperature meets or exceeds the value stored in the high temperature trip register (TH), the
output becomes active, and will stay active until the temperature is equal to or below the temperature
stored in the low temperature trigger register (TL). In this way, any amount of hysteresis may be
obtained.
4 of 16