Slave Address
A control byte is the first byte received following the
START condition from the master device. The control byte
consists of a four bit control code; for the DS1624, this
is set as 1001 binary for read and write operations. The
next three bits of the control byte are the device select
bits (A2, A1, A0). They are used by the master device to
select which of eight devices are to be accessed. These
bits are in effect the three least significant bits of the slave
address. The last bit of the control byte (R/W) defines
the operation to be performed. When set to a “1”, a read
operation is selected, when set to a “0”, a write operation
is selected. Following the START condition the DS1624
monitors the SDA bus checking the device type identifier
being transmitted. Upon receiving the 1001 code and
appropriate device select bits, the slave device outputs an
acknowledge signal on the SDA line.
Measuring Temperature
Figure 1 shows a block diagram of the DS1624. The
DS1624 measures the temperature using a bandgap-
based temperature sensor. A delta-sigma analog-to-digital
(ADC) converts the temperature to a 12-bit digital value
that is calibrated in °C; for °F applications a lookup table
or conversion routine must be used. Throughout this data
sheet the term “conversion” is used to refer to the entire
temperature measurement and ADC sequence.
The temperature reading is stored as a 16-bit two’s
complement number in the 2-byte temperature register as
shown in Figure 4.
Since data is transmitted over the 2-wire bus MSB first,
temperature data can be written to/read from the DS1624
as either a single byte (with temperature resolution of
1°C) or as 2 bytes, the second byte containing the value
of the four least significant bits of the temperature reading
as shown in Figure 4. Note that the remaining 4 bits of this
byte are set to all zeros.
Figure 3. 2-Wire Serial Communication with DS1624
Figure 4. Temperature Register Format
WRITE TO DS1624
BUS ACTIVITY:
START
1
0
0
1
A2
A1
A0
R/W = 0
ACK
ACK
ACK
CONTROL
BYTE
COMMAND
PROTOCOL
DATA
BYTE
STOP
BUS ACTIVITY
SDA LINE
READ FROM DS1624
START
MASTER
BUS ACTIVITY:
BUS ACTIVITY
SDA LINE
MASTER
1
0
0
1
A2
A1
A0
R/W = 0
1
0
0
1
A2
A1
A0
R/W = 1
ACK
CONTROL
BYTE
COMMAND
PROTOCOL
START
CONTROL
BYTE
DATA
BYTE 0
DATA
BYTE 1
ACK
ACK
ACK
NACK
STOP
BIT 15 BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8
MS BYTE S 2
6
2
5
2
4
2
3
2
2
2
1
2
0
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
LS BYTE 2
-1
2
-2
2
-3
2
-4
0 0 0 0
DS1624 Digital Thermometer and Memory
www.maximintegrated.com
Maxim Integrated
7
Temperature is represented in the DS1624 in terms of a 0.0625°C LSB, yielding the following 12-bit example:
Operation and Control
A configuration/status register is used to determine the method of operation the DS1624 will use in a particular application
as well as indicating the status of the temperature conversion operation.
The configuration register is defined as follows:
where:
DONE = Conversion Done bit, “1” = Conversion complete, “0” = conversion in progress.
1SHOT = One Shot Mode. If 1SHOT is “1,” the DS1624 performs one temperature conversion upon receipt of the Start
Convert T protocol. If 1SHOT is “0,” the DS1624 continuously performs temperature conversions. This bit is nonvolatile
and the DS1624 is shipped with 1SHOT = “0.”
Since the configuration register is implemented in E
2
, writes to the register require 10ms to complete. After issuing a
command to write to the configuration register, no further accesses to the DS1624 should be made for at least 10ms.
Table 1. Temperature/Data Relationships
TEMP (°C)
DIGITAL OUTPUT
(BINARY)
DIGITAL OUTPUT
(HEX)
+125 01111101 00000000 7D00h
+25.0625 00011001 00010000 1910h
+0.5 00000000 10000000 0080h
0 00000000 00000000 0000h
-0.5 11111111 10000000 FF80h
-25.0625 11100110 11110000 E6F0h
-55 11001001 00000000 C900h
MSB LSB
0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 0
= +25.0625°C
CONFIGURATION/STATUS REGISTER
DONE 0 0 0 1 0 1 1SHOT
DS1624 Digital Thermometer and Memory
www.maximintegrated.com
Maxim Integrated
8
Memory
Byte Program Mode
In this mode, the master sends addresses and one data
byte to the DS1624.
Following a START condition, the device code (4-bit), the
slave address (3-bit), and the R/W bit (which is logic-low)
are placed onto the bus by the master. The master then
sends the Access Memory protocol. This indicates to the
addressed DS1624 that a byte with a word address will fol-
low after it has generated an acknowledge bit. Therefore,
the next byte transmitted by the master is the word address
and will be written into the address pointer of the DS1624.
After receiving the acknowledge of the DS1624, the mas-
ter device transmits the data word to be written into the
addressed memory location. The DS1624 acknowledges
again and the master generates a STOP condition. This
initiates the internal programming cycle of the DS1624. A
repeated START condition, instead of a STOP condition,
will abort the programming operation.
During the programming cycle the DS1624 does not
acknowledge any further accesses to the device until the
programming cycle is complete (no longer than 50ms.)
Page Program Mode
To program the DS1624 the master sends addresses and
data to the DS1624, which is the slave. This is done by
supplying a START condition followed by the 4-bit device
code, the 3-bit slave address, and the R/W bit which
is defined as a logic-low for a write. The master then
sends the Access Memory protocol. This indicates to the
addressed slave that a word address will follow. The slave
outputs the acknowledge pulse to the master during the
ninth clock pulse. When the word address is received
by the DS1624 it is placed in the address pointer defin-
ing which memory location is to be written. The DS1624
generates an acknowledge after every 8 bits received and
store them consecutively in an 8-byte RAM until a STOP
condition is detected which initiates the internal program-
ming cycle.
A repeated START condition, instead of a STOP con-
dition, aborts the programming operation. During the
programming cycle the DS1624 does not acknowledge
any further accesses to the device until the programming
cycle is complete (no longer than 50ms).
If more than 8 bytes are transmitted by the master, the
DS1624 rolls over and overwrites the data beginning with
the first received byte. This does not affect erase/write
cycles of the EEPROM array and is accomplished as a
result of only allowing the address register’s bottom 3 bits
to increment while the upper 5 bits remain unchanged.
The DS1624 is capable of 20,000 writes (25,000 erase/
write cycles) before EEPROM wear out can occur.
If the master generates a STOP condition after trans-
mitting the first data word, byte programming mode is
entered.
Read Mode
In this mode, the master is reading data from the DS1624
E
2
memory. The master first provides the slave address
to the device with R/W set to “0.” The master then sends
the Access Memory protocol and, after receiving an
acknowledge, then provides the word address, which is
the address of the memory location at which it wishes to
begin reading. Note that while this is a read operation the
address pointer must first be written. During this period
the DS1624 generates acknowledge bits as defined in the
appropriate section.
The master now generates another START condition and
transmits the slave address. This time the R/W bit is set
to “1” to put the DS1624 in read mode. After the DS1624
generates the acknowledge bit it outputs the data from
the addressed location on the SDA pin, increments the
address pointer, and, if it receives an acknowledge from
the master, transmits the next consecutive byte. This
auto-increment sequence is only aborted when the mas-
ter sends a STOP condition instead of an acknowledge.
When the address pointer reaches the end of the 256-
byte memory space (address FFh) it increments from the
end of the memory back to the first location of the memory
(address 00h).
Command Set
Data and control information is read from and written to
the DS1624 in the format shown in Figure 3. To write
to the DS1624, the master issues the slave address of
the DS1624 and the R/W bit is set to 0. After receiving
an acknowledge the bus master provides a command
protocol. After receiving this protocol the DS1624 issues
an acknowledge, and then the master can send data
to the DS1624. If the DS1624 is to be read, the master
must send the command protocol as before then issue a
repeated START condition and the control byte again, this
time with the R/W bit set to 1 to allow reading of the data
from the DS1624. The command set for the DS1624 as
shown in Table 2 is as follows.
DS1624 Digital Thermometer and Memory
www.maximintegrated.com
Maxim Integrated
9

DS1624

Mfr. #:
Manufacturer:
Description:
SENSOR DIGITAL -55C-125C 8DIP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet