DS1722
DS1722 FUNCTIONAL BLOCK DIAGRAM Figure 1
OPERATION-Measuring Temperature
The core of DS1722 functionality is its direct-to-digital temperature sensor. The DS1722 measures
temperature through the use of an on-chip temperature measurement technique with an operating range
from -55° to +120°C. The device powers up in a power-conserving shutdown mode. After power-up, the
DS1722 may be placed in a continuous conversion mode or in a one-shot conversion mode. In the
continuous conversion mode, the device continuously computes the temperature and stores the most
recent result in the temperature register at addresses 01h (LSB) and 02h (MSB). In the one-shot
conversion mode, the DS1722 performs one temperature conversion and then returns to the shutdown
mode, storing temperature in the temperature register. Details on how to change the setting after power-
up are contained in the “OPERATION-Programming” section.
4 of 14
The resolution of the temperature conversion is configurable (8, 9, 10, 11, or 12 bits), with 9-bit readings
the default state. This equates to a temperature resolution of 1.0°C, 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 SPI or 3-wire interface with the address set to the
temperature register, 01h (LSB) and then 02h (MSB). Table 3 describes the exact relationship of output
data to measured temperature. The table assumes the DS1722 is configured for 12-bit resolution; if the
device is configured in a lower resolution mode, those bits will contain 0s. The data is transmitted
serially over the digital interface, MSb first for SPI communication and LSb first for 3-wire
communication. 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.
DS1722
5 of 14
Temperature/Data Relationships Table 3
Address
Location
S 2
6
2
5
2
4
2
3
2
2
2
1
2
0
02h
MSb (unit = °C) LSb
2
-1
2
-2
2
-3
2
-4
0 0 0 0 01h
TEMPERATURE
DIGITAL OUTPUT
(BINARY)
DIGITAL OUTPUT
(HEX)
+120°C
0111 1000 0000 0000 7800h
+25.0625°C
0001 1001 0001 0000 1910h
+10.125°C
0000 1010 0010 0000 0A20h
+0.5°C
0000 0000 1000 0000 0080h
0°C
0000 0000 0000 0000 0000h
-0.5°C
1111 1111 1000 0000 FF80h
-10.125°C
1111 0101 1110 0000 F5E0h
-25.0625°C
1110 0110 1111 0000 E6F0h
-55°C
1100 1001 0000 0000 C900h
OPERATION-Programming
The area of interest in programming the DS1722 is the Configuration register. All programming is done
via the SPI or 3-wire communication interface by selecting the appropriate address of the desired register
location. Table 4 illustrates the addresses for the two registers (configuration and temperature) of the
DS1722.
Register Address Structure Table 4
Read Address Write Address Active Register
00h 80h Configuration
01h No access Temperature LSB
02h No access Temperature MSB
CONFIGURATION REGISTER PROGRAMMING
The configuration register is accessed in the DS1722 with the 00h address for reads and the 80h address
for writes. Data is read from or written to the configuration register MSb first for SPI communication and
LSb first for 3-wire communication. The format of the register is illustrated in Figure 2. The effect each
bit has on DS1722 functionality is described below along with the power-up state of the bit. The entire
register is volatile, and thus it will power-up in the default state.
DS1722
6 of 14
CONFIGURATION/STATUS REGISTER Figure 2
1 1 1 1SHOT R2 R1 R0 SD
MSb LSb
1SHOT = One-shot temperature conversion bit. If the SD bit is "1", (continuous temperature
conversions are not taking place), a "1" written to the 1SHOT bit will cause the DS1722 to perform one
temperature conversion and store the results in the temperature register at addresses 01h (LSB) and 02h
(MSB). The bit will clear itself to "0" upon completion of the temperature conversion. The user has
read/write access to the 1SHOT bit, although writes to this bit will be ignored if the SD bit is a "0",
(continuous conversion mode). The power-up default of the one-shot bit is "0".
R0, R1, R2 = Thermometer resolution bits. Table 5 below defines the resolution of the digital
thermometer, based on the settings of these 3 bits. There is a direct tradeoff between resolution and
conversion time, as depicted in the AC Electrical Characteristics. The user has read/write access to the
R2, R1 and R0 bits and the power-up default state is R2="0", R1="0", and R0="1" (9-bit conversions).
THERMOMETER RESOLUTION CONFIGURATION Table 5
R2 R1 R0 Thermometer Resolution Max Conversion Time
0 0 0 8-bit 0.075s
0 0 1 9-bit 0.15s
0 1 0 10-bit 0.3s
0 1 1 11-bit 0.6s
1 x x 12-bit 1.2s
x=Don’t care.
SD = Shutdown bit. If SD is "0", the DS1722 will continuously perform temperature conversions and
store the last completed result in the temperature register. If SD is changed to a "1", the conversion in
progress will be completed and stored and then the device will revert to a low-power shutdown mode.
The communication port remains active. The user has read/write access to the SD bit and the power-up
default is "1" (shutdown mode).
SERIAL INTERFACE
The DS1722 offers the flexibility to choose between two serial interface modes. The DS1722 can
communicate with the SPI interface or with a standard 3-wire interface. The interface method used is
determined by the SERMODE pin. When this pin is connected to V
DDD
SPI communication is selected.
When this pin is connected to ground, standard 3-wire communication is selected.
SERIAL PERIPHERAL INTERFACE (SPI)
The serial peripheral interface (SPI) is a synchronous bus for address and data transfer. The SPI mode of
serial communication is selected by tying the SERMODE pin to V
DDD
. Four pins are used for the SPI.
The four pins are the SDO (Serial Data Out), SDI (Serial Data In), CE (Chip Enable), and SCLK (Serial
Clock). The DS1722 is the slave device in an SPI application, with the microcontroller being the master.
The SDI and SDO pins are the serial data input and output pins for the DS1722, respectively. The CE
input is used to initiate and terminate a data transfer. The SCLK pin is used to synchronize data
movement between the master (microcontroller) and the slave (DS1722) devices.
The shift clock (SCLK), which is generated by the microcontroller, is active only when CE is high and
during address and data transfer to any device on the SPI bus. The inactive clock polarity is
programmable in some microcontrollers. The DS1722 offers an important feature in that the level of the

DS1722S

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Board Mount Temperature Sensors Digital Thermometer & Thermostat
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet