DALLAS DS620U/TR

DS620
Low-Voltage, ±0.5°C Accuracy
Digital Thermometer and Thermostat
www.maxim-ic.com
FEATURES
GENERAL DESCRIPTION
The DS620 digital thermometer and thermostat
provides low-voltage (1.7V £ VDD £ 3.5V) temperature
measurements with ±0.5°C accuracy from 0°C to
+70°C and an operating temperature range of -55°C
to +125°C. The DS620 communicates over a 2-wire
digital interface. For distributed-sensing applications,
it is multidroppable with three address pins that allow
up to eight DS620s to operate on a single bus.
The DS620 has thermostat functionality with userdefined thresholds stored in EEPROM registers, and
it can be configured for standalone thermostat
operation. The programmable output (PO) pin serves
as the thermostat output, and this pin can also be
configured to function as an active-low control for
peripheral devices.
§
§
§
§
§
§
§
§
APPLICATIONS
Portable Applications
Low-Voltage Temperature-Sensitive Applications
Computers/Servers
Test Equipment
Medical Instruments
Industrial Applications
Low-Voltage Operation: 1.7V to 3.5V
±0.5°C Accuracy from 0°C to +70°C
Operating Temperature Range: -55°C to +125°C
(-67°F to +257°F)
Temperature Measurements Require No
External Components
Resolution is User-Selectable to 10-, 11-, 12-, or
13-Bits (0.5°C, 0.25°C, 0.125°C, and 0.0625°C
LSb Weight, Respectively)
Multidroppable
Fast (200ms max) Temperature-to-Digital
Conversion Time
Thermostatic Settings are User-Definable and
Nonvolatile
Standalone Thermostat Capability
Data is Read/Written Through a 2-Wire Serial
Interface
Package: 8-Pin mSOP
ORDERING INFORMATION
PART
TEMP RANGE
DS620U
-55°C to +125°C
DS620U/T&R
-55°C to +125°C
PIN-PACKAGE
8 µSOP,
Exposed Pad
8 µSOP
Exposed Pad
Tape-and-Reel
PIN CONFIGURATION
TYPICAL OPERATING CIRCUIT
1.7V to 3.5V
§
§
§
1.7V to 3.5V
DS620
SDA
SCL
HOST
VDD
SDA
SCL PO
DS620
A0
A1
A2
GND
SDA
1
8
VDD
SCL
2
7
A0
PO
3
6
A1
GND
4
5
A2
Thermostat
8-Pin mSOP Package
Exposed Pad
Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device
may be simultaneously available through various sales channels. For information about device errata, click here: www.maxim-ic.com/errata.
1 of 15
081004
DS620 Digital Thermometer and Thermostat
PIN DESCRIPTION
PIN
NAME
1
2
3
4
5
6
7
8
SDA
SCL
PO
GND
A2
A1
A0
VDD
FUNCTION
Data Input/Output Pin for serial communication. Open drain. (No diode connection to VDD).
Clock Input Pin for 2-wire serial communication.
Programmable Output Pin. Open drain. (No diode connection to VDD).
Ground Pin.
Address Input Pin.
Address Input Pin. Also serves as an input to trigger one-shot conversions during standalone use.
Address Input Pin.
Supply Voltage Pin. +1.7V to +3.5V power supply pin.
Figure 1. Block Diagram
DS620
Temp. Core
Digital Control
Bandgap
POR
ADC
Memory Array
Configuration Register
Conversion Control
Address/Command
Decode
TH, TL Registers
Digital Comparator
PO Pin
Control
PO
Temperature Register
Address Counter
Temperature Counter
User EEPROM Registers
SCL
2-Wire Interface
SDA
Memory Interface Logic
A0
A2
A1
2 of 15
Charge Pump
DS620 Digital Thermometer and Thermostat
ABSOLUTE MAXIMUM RATINGS
Voltage Range on Any Pin, Relative to Ground
Operating Temperature Range
Storage Temperature Range
Soldering Temperature
ESD rating on all pins
-0.5V to +4.5V
-55°C to +125°C
-55°C to +125°C
See IPC/JEDEC J-STD-020A Specification
4KV HBM
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only,
and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is
not implied. Exposure to the absolute maximum rating conditions for extended periods may affect device.
RECOMMENDED DC OPERATING CONDITIONS
(3.5V ≥ VDD ≥ 1.7V, TA = -55°C to +125°C.)
PARAMETER
Voltage Range on Any Pin,
Relative to Ground
Supply Voltage for EEPROM
Writes
SYMBOL
CONDITIONS
MIN
TYP
MAX
UNITS
VDD
(Note 1)
1.7
3.5
V
VDD
(Note 1)
2.0
3.5
V
DC ELECTRICAL CHARACTERISTICS
(3.5V ≥ VDD ≥ 1.7V, TA = -55°C to +125°C.)
PARAMETER
Thermometer Error
SYMBOL
TERR
CONDITIONS
MIN
0°C to +70°C
-55°C to +125°C
±2
VIH
(Note 1)
0.7 x
VDD
Input Logic Low
VIL
(Note 1)
- 0.5
3mA sink current (Note 1)
6mA sink current (Note 1)
4mA sink current (Note 1)
0.4 < VI/O < 0.9 x VDD
0
0
0
-10
PO Saturation Voltage
Input Current for each I/O pin
I/O Capacitance
Standby Current
Active Supply Current
Temperature Conversion Time
VOL1
VOL2
VOL
CI/O
ISTBY
IDD
TTC
0°C to +70°C (Note 2)
Temperature conversion, 55°C to +85°C (Note 3)
Temperature conversion,
+85°C to +125°C (Note 3)
2
E write (Note 3)
10 bit
11 bit
12 bit
13 bit
Note 1: All voltages are referenced to GND.
Note 2: Specified with SDA = VDD; A0, A1, A2 = 0V or VDD.
Note 3: Specified with A0, A1, A2 = 0V or VDD.
3 of 15
MAX
±0.5
Input Logic High
SDA Output Logic Low Voltage
TYP
VDD +
0.5
0.3 x
VDD
0.4
0.6
0.4
+10
10
2
UNITS
°C
V
V
V
V
µA
pF
µA
800
µA
900
500
25
50
100
200
µA
ms
DS620 Digital Thermometer and Thermostat
AC ELECTRICAL CHARACTERISTICS
EEPROM AC Electrical Characteristics
PARAMETER
SYMBOL
CONDITIONS
TWR
-40°C to +85°C
-40°C ≤ TA ≤ +85°C
(Note 1)
TA = +25°C (Note 1)
-40°C to +125°C (Note 2)
EEPROM Write Cycle Time
EEPROM Writes
EEPROM Data Retention
NEEWR
tEEDR
MIN
TYP
10k
20k
40k
10
80k
MIN
TYP
MAX
UNITS
10
ms
writes
years
2-Wire AC Electrical Characteristics
PARAMETER
SCL Frequency
Bus Free Time Between a
STOP and START Condition
START and Repeat START
Hold Time from Falling SCL
Low Period of SCL
High Period of SCL
Repeated START Condition
Setup Time to Rising SCL
Data-Out Hold Time from
Falling SCL
Data-In Setup Time to Rising
SCL
SYMBOL
CONDITIONS
UNITS
400
KHz
fSCL
0
tBUF
1.3
µs
(Note 3, 4)
0.6
µs
tLOW
tHIGH
(Note 3)
(Note 3)
1.3
0.6
µs
µs
tSU:STA
(Note 3)
0.6
µs
tHD:DAT
(Note 3)
0
tSU:DAT
(Note 3)
100
tHD:STA
Rise Time of SDA and SCL
tR
(Note 3, 5)
Fall Time of SDA and SCL
tF
(Note 3, 5)
STOP Setup Time to Rising
SCL
Capacitive Load for Each BUS
Line
Input Capacitance
Spike Pulse Width that can be
Suppressed by Input Filter
MAX
TSU:STO
0.9
ns
20 +
0.1xCB
20 +
0.1xCB
1000
ns
300
ns
0.6
µs
CB
400
CI
10
0
Note 1: VDD must be 2.0V to 3.5V.
Note 2: Write done at 25°C.
Note 3: All values referenced to 0.9 VDD and 0.1 VDD.
Note 4: After this period the first clock pulse is generated.
Note 5: For example, if CB = 300pF, then tR(MIN) = tF(MIN) = 50ns.
4 of 15
µs
pF
pF
50
ns
DS620 Digital Thermometer and Thermostat
Figure 2. Timing Diagram
Table 1. Register Summary
Parameter
Information
TH and TL Registers
Size: 2-Bytes
Note that the 3 LSbs are always “don’t cares” for writes
(i.e., they are not saved) and always read out as 0s.
Configuration Register
Size: 2-Bytes
Temperature Register
Size: 2-Bytes
EEPROM
Factory State:
TH = 15ºC (0000 0111 1000 0000) [0780h]
TL = 10ºC (0000 0101 0000 0000) [0500h]
SRAM and EEPROM. See Figure 4 and Table 5 for
detailed information and power-up/factory state.
SRAM Power-Up State: -60ºC
(1110 0010 0000 0000) [E200h]
TEMPERATURE MEASUREMENT
The DS620 measures temperature using a bandgap-based temperature sensor. A delta-sigma, analog-to-digital
converter (ADC) converts measured temperature to a 10-, 11-, 12-, or 13-bit (user-selectable) 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 DS620 can be configured to power up either automatically converting temperature or in a low-power standby
state. The preferred power-up mode can be set using the AUTOC bit in the configuration register as explained in
the Configuration Register section of this data sheet.
The DS620 can be programmed to perform continuous consecutive conversions (continuous conversion mode) or
to perform single conversions on command (one-shot mode). The conversion mode is programmed through the
1SHOT bit in the configuration register as explained in the Configuration Register section of this data sheet. In
continuous conversion mode, conversions are performed after a Start Convert command is issued (or upon powerup if the AUTOC bit in the configuration register is set to 1) until a Stop Convert command is issued, at which time
the device goes into a low-power standby state. Continuous conversions can be restarted at any time using the
Start Convert command. In one-shot mode, the DS620 performs a single temperature conversion either at powerup (if AUTOC = 1) or when a Start Convert command is issued (if AUTOC = 0). When the conversion is complete,
5 of 15
DS620 Digital Thermometer and Thermostat
the device enters a low-power standby state and remains in that state until a temperature conversion is again
initiated by a Start Convert command.
The R0 and R1 bits in the configuration register allow the user to set the conversion resolution to be 10, 11, 12, or
13 bits (0.5°C, 0.25°C, 0.125°C, and 0.0625°C LSb weight, respectively) as shown in Table 6. The default
resolution at power-up is 13-bits. Note that the conversion time doubles for each additional bit of resolution.
After each conversion, the digital temperature is stored as a 16-bit two’s complement number in the 2-byte
temperature register as shown in Figure 3. The temperature register is located in address spaces AAh (MSB) and
ABh (LSB) of the DS620 memory. The sign bit (S) indicates if the temperature is positive (S = 0) or negative (S =
1). Bits 2, 1, and 0 of the temperature register are hardwired to 0. When the device is configured for 13-bit
resolution, the 13 MSbs (bits 15 through 3) of the temperature register will contain temperature data. For 12-bit
resolution, the 12 MSbs (bits 15 through 4) of the temperature register will contain data, and bit 3 will be 0.
Likewise, for 11-bit resolution, the 11 MSbs (bits 15 through 5) will contain data, and for 10-bit the 10 MSbs (bits 15
through 6) will contain data, and all unused LSbs will contain 0s. Table 2 gives examples of 13-bit resolution output
data and the corresponding temperatures.
Figure 3. Temperature, TH, And TL Register Format
MS Byte
LS Byte
bit 15
bit 14
bit 13
Bit 12
bit 11
bit 10
bit 9
bit 8
S
27
26
25
24
23
22
21
bit 7
bit 6
bit 5
Bit 4
bit 3
bit 2
bit 1
bit 0
0
0
0
0
2
-1
2
-2
2
-3
2
-4
2
Table 2. 13-Bit Resolution Temperature/Data Relationship
Temperature (°C)
+125
+25.0625
+10.125
+0.5
0
-0.5
-10.125
-25.0625
-55
Digital Output (binary)
Digital Output (hex)
0011 1110 1000 0000
0000 1100 1000 1000
0000 0101 0001 0000
0000 0000 0100 0000
0000 0000 0000 0000
1111 1111 1100 0000
1111 1010 1111 0000
1111 0011 0111 1000
1110 0100 1000 0000
3E80h
0C88h
0510h
0040h
0000h
FFC0h
FAF0h
F378h
E480h
WRITING TO THE TEMPERATURE REGISTER
The user is given access to write to the DS620 temperature register. This feature can be used for system test and
debugging by allowing the user to force the temperature reading above or below fault thresholds without having to
heat or cool the device.
If data is written to the temperature register while conversions are in progress, the result of the next completed
conversion will overwrite any data that was written to the temperature register. Additionally, no update of the flag
bits in the configuration register, nor an update of the PO pin occur as a result of the temperature being written if a
conversion is taking place. To avoid this from happening, conversions should first be stopped before writing to the
temperature register. When writing to the temperature register, both the MSB and the LSB should be written. An
update of the flag bits and PO pin will only occur after the LSB has been written. See Writing to the DS620 for more
information.
6 of 15
DS620 Digital Thermometer and Thermostat
THERMOSTAT OPERATION
The PO pin on the DS620 operates as the thermostat output when it is configured as PO-HIGH or PO-LOW through the
P01 and P02 bits of the configuration register. In both of these configurations, PO is updated after every
temperature conversion or write to the temperature register, and remains at the updated value until the next
conversion or write completes. PO-HIGH and PO-LOW are active-low and are activated and deactivated based on
user-defined upper and lower trip-points. PO-HIGH is activated when the measured temperature meets or exceeds
the value stored in the upper trip-point register (TH), and stays active until the temperature meets or falls below the
value stored in the lower trip-point register (TL) (see Figure 4a). This allows the user to program any amount of
hysteresis into the output response. Similarly, PO-LOW is activated when the measured temperature meets or goes
below the value stored in the low trip-point register (TL), and stays active until the temperature meets or exceeds
the value stored in the upper trip-point register (TH) (see Figure 4b). The TH register is located in address spaces
A0h (MSB) and A1h (LSB) and the TL register is located in address spaces A2h (MSB) and A3h (LSB) of the
DS620 memory.
The TH and TL registers (see Table 1) contain centigrade temperature values in two’s complement format and are
stored in EEPROM; therefore, they are nonvolatile (NV) and can be programmed prior to installation of the DS620
for use in standalone applications. All bits in the TH and TL registers are used in the comparison to the temperature
value in the temperature register for the thermostat operation, regardless of the number of bits used for the
temperature conversions as decided by the R0 and R1 bits in the configuration register. Therefore, to ensure
proper thermostat operation, any bits not used for the temperature measurement should be set to 0 in the TH and
TL registers. For example, for 11-bit temperature conversions, bits 3 and 4 in the TH and TL register should be set to
0 prior to comparison to the measured temperature. (Bits 0 to 2 are automatically set to 0).
Another thermostat feature is the temperature high and low flags (THF and TLF) in the configuration register.
These bits provide a record of whether the temperature has ever been equal to or greater than TH or equal to or
less than TL at anytime since power up or since the bits were last cleared. If the temperature ever meets or
exceeds the TH register value, the THF bit in the configuration register is set to 1, and if the temperature ever
meets or falls below the TL value, the TLF bit in the configuration register is set to 1. Once THF or TLF has been
set, it remains set until the power is cycled or it is overwritten with a 0 by the user.
Figure 4. Thermostat Operation
a) PO-high
b) PO-low
Logic 1
Logic 1
Logic 0
TL
TH
Tem
Temp
Logic 0
TL
p
TH
Tem
Temp
p
STANDALONE THERMOSTAT OPERATION
The DS620 can function as a standalone thermostat, i.e., it can provide thermostat functionality without requiring
communication with a microcontroller. For standalone thermostat operation, the TH, TL, and configuration registers
must be programmed to the desired values prior to installation. For standalone operation, the AUTOC bit in the
configuration register must be set to 1 so that measurements begins automatically at power up. This also
configures the A1 pin as an input pin that can trigger a conversion. In addition, PO must be configured as PO-HIGH
or PO-LOW . The 1SHOT bit in the configuration register is used to enable the DS620 to perform continuous
conversions at power up (1SHOT = 0) or a single conversion (one-shot) at power up or upon request (1SHOT = 1).
In one-shot mode, one conversion is performed at power-up and then the device enters a low-power standby state
until A1 is toggled high. The A1 pin must be toggled low and back high again to start another conversion.
7 of 15
DS620 Digital Thermometer and Thermostat
PO PIN
The PO pin is a user-programmable open-drain output, which is configured through the PO1 and PO2 bits in the
configuration register. PO can operate as a thermostat output (PO-HIGH or PO-LOW), or it can be forced low for control
of peripheral devices. When PO is configured as PO-HIGH or PO-LOW , this pin operates as described in the
Thermostat Operation section. This pin can be reconfigured at anytime to switch between functions. Table 3
defines the various configuration options for this pin.
Table 3. PO Configuration
Function
Thermostat Output (PO-high)
Thermostat Output (PO-low)
Force PO Low
PO2
1
1
0
PO1
1
0
X
EEPROM REGISTERS AND MEMORY MAP
The DS620 has a 14-byte linear address space with registers for temperature, thermostat thresholds, and control
as well as four bytes of user EEPROM for general use. All address space is shadowed by RAM. The DS620
Memory Map is shown in Table 4.
See the Writing to the DS620 and the Reading from the DS620 sections for details in writing to and reading from
the DS620 EEPROM registers and memory map.
Table 4. Memory Map
Address (hex)
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
AA
AB
AC
AD
Description
TH MSB
TH LSB
TL MSB
TL LSB
User
User
User
User
Undefined
Undefined
Temperature MSB
Temperature LSB
Configuration MSB
Configuration LSB
CONFIGURATION REGISTER
The configuration register allows the user to program various DS620 options such as conversion resolution,
operating mode, and thermostat capability. It also provides information to the user about conversion status,
EEPROM activity, device address, and thermostat activity. The configuration register is arranged as shown in
Figure 5 and detailed descriptions of each bit are provided in Table 5. It is located in address spaces ACh (MSB)
and ADh (LSB) in the DS620 memory. Note that the R0, R1, AUTOC, 1SHOT, and PO1 bits are stored in
EEPROM so they can be programmed prior to installation if desired. All other configuration bits are SRAM and
power up in the state shown in Table 5.
8 of 15
DS620 Digital Thermometer and Thermostat
Figure 5. Configuration Register
Address ACh
MS Byte
bit 15
bit 14
bit 13
bit 12
bit 11
DONE
NVB
THF
TLF
R1
R0
AUTOC
*
bit 10
*
bit 9
bit 8
*
1SHOT
Address ADh
LS Byte
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
PO2
PO1*
A2
A1
A0
M*
M*
M*
*
Stored in EEPROM
Table 5. Configuration Register Bit Descriptions
Bit Name
User Access
Read Only
DONE
Read Only
NVB
Read/Write
THF
Read/Write
TLF
*
Read/Write
*
Read/Write
R1
R0
*
Read/Write
*
Read/Write
AUTOC
1SHOT
Functional Description
At power-up, DONE = 1. (Unless AUTOC = 1)
DONE = 0—Temperature conversion is in progress.
DONE = 1—Temperature conversion is complete.
At power-up, NVB = 0
2
NVB = 1—Write to an E memory cell is in progress
NVB = 0—Nonvolatile memory is not busy.
At power-up, THF = 0
THF = 1—The measured temperature has reached or exceeded the value
stored in the TH register at anytime since power-up or since the bit was last
cleared. THF remains a 1 until the power is cycled or it is overwritten with a
0 by the user.
At power-up, TLF = 0
TLF = 1—The measured temperature has met or fallen below the value
stored in the TL register at anytime since power-up or since the bit was last
cleared. TLF remains a 1 until the power is cycled or it is overwritten with a
0 by the user.
Used to set conversion resolution (see Table 6).
Factory state = 1
Used to set conversion resolution (see Table 6).
Factory state = 1
Determines whether the DS620 powers up idle or converting.
Factory state = 0
AUTOC = 1—DS620 powers-up converting temperature.
AUTOC = 0—DS620 powers-up idle.
Configures temperature conversion mode. Factory state = 0
1SHOT = 1: One-shot mode
§ For AUTOC = 0, the device powers up idle The Start Convert
command causes a single temperature conversion and then the
device returns to a low-power standby state.
§ If AUTOC = 1, the A1 pin is reconfigured as a conversion trigger for
standalone operation and the device powers up and performs 1
conversion. Single conversions can be initiated using the Start
Convert command or by toggling A1 high.
1SHOT = 0: Continuous conversion mode
§ For AUTOC = 0, the Start Convert command initiates continuous
conversions.
§ For AUTOC = 1, the device powers up performing continuous
conversions. Note: Changing the 1SHOT bit to 1 while continuous
conversions are in progress does not stop the conversions. A Stop
Convert command must first be issued after which one-shot
9 of 15
*
DS620 Digital Thermometer and Thermostat
PO2
PO1*
*
A2
A1
A0
M*
Read/Write
Read/Write
Read Only
Read Only
Read Only
Read/Write
conversions can be performed.
See Writing the 1SHOT Bit Command Sequence section for writing more
information on writing the 1SHOT bit.
At power-up, PO2 = 1.
PO2 = 0 forces the PO pin low (see Table 3)
PO2 = 1 configures PO as the thermostat output (PO-HIGH or PO-LOW , as
determined by PO1).
When PO2 = 1, PO1 configures the PO pin as either PO-HIGH or PO-LOW (see
Table 3)
When PO2 = 0, PO1 is a “don’t care”.
Factory state = 0
Shows address bit A2, as determined by pin A2.
Shows address bit A1, as determined by pin A1.
Shows address bit A0, as determined by pin A0.
User memory for general-purpose data storage.
Stored in EEPROM
Table 6. Resolution Configuration
R1
R0
Resolution
LSb Weight (°C)
0
0
1
1
0
1
0
1
10-bit
11-bit
12-bit
13-bit
0.5
0.25
0.125
0.0625
Max Conversion
Time (ms)
25
50
100
200
2-WIRE SERIAL DATA BUS
The DS620 communicates over a standard bidirectional 2-wire serial data bus that consists of a serial clock (SCL)
signal and serial data (SDA) signal. The DS620 interfaces to the bus through the SCL input pin and open-drain
SDA I/O pin. All communication is MSb first.
The following terminology is used to describe 2-wire communication:
Master Device: Microprocessor/microcontroller that controls the slave devices on the bus. The master device
generates the SCL signal and START and STOP conditions.
Slave: All devices on the bus other than the master. The DS620 always functions as a slave.
Bus Idle or Not Busy: Both SDA and SCL remain high. SDA is held high by a pullup resistor when the bus is idle,
and SCL must either be forced high by the master (if the SCL output is push-pull) or pulled high by a pullup resistor
(if the SCL output is open-drain).
Transmitter: A device (master or slave) that is sending data on the bus.
Receiver: A device (master or slave) that is receiving data from the bus.
START Condition: Signal generated by the master to indicate the beginning of a data transfer on the bus. The
master generates a START condition by pulling SDA from high to low while SCL is high (see Figure 6). A
“repeated” START is sometimes used at the end of a data transfer (instead of a STOP) to indicate that the master
will perform another operation.
STOP Condition: Signal generated by the master to indicate the end of a data transfer on the bus. The master
generates a STOP condition by transitioning SDA from low to high while SCL is high (see Figure 6). After the
STOP is issued, the master releases the bus to its idle state.
Acknowledge (ACK): When a device (either master or slave) is acting as a receiver, it must generate an
acknowledge (ACK) on the SDA line after receiving every byte of data. The receiving device performs an ACK by
pulling the SDA line low for an entire SCL period (see Figure 6). During the ACK clock cycle, the transmitting
device must release SDA. A variation on the ACK signal is the “not acknowledge” (NACK). When the master device
10 of 15
DS620 Digital Thermometer and Thermostat
is acting as a receiver, it uses a NACK instead of an ACK after the last data byte to indicate that it is finished
receiving data. The master indicates a NACK by leaving the SDA line high during the ACK clock cycle.
Slave Address: Every slave device on the bus has a unique 7-bit address that allows the master to access that
device. The DS620’s 7-bit bus address is 1 0 0 1 A2 A1 A0, where A2, A1, and A0 are user-selectable via the
corresponding input pins. The three address pins allow up to eight DS620s to be multidropped on the same bus.
Control Byte: The control byte is transmitted by the master and consists of the 7-bit slave address plus a
read/write (R/W
¯¯) bit (see Figure 7). If the master is going to read data from the slave device then R/W
¯¯ = 1, and if
the master is going to write data to the slave device then R/W
¯¯ = 0.
Address Byte: The address byte is used by the master to tell the DS620 which address location in the memory
map in Table 4 is going to be accessed during communication or which command should be performed. See
Command Set section.
Figure 6. START, STOP, AND ACK SIGNALS
SDA
…
SCL
…
ACK (or NACK) STOP
From Receiver Condition
START
Condition
Figure 7. Control Byte
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
1
0
0
1
A2
A1
A0
R/¯W¯
GENERAL 2-WIRE INFORMATION
§ All data is transmitted MSb first over the 2-wire bus.
§ One bit of data is transmitted on the 2-wire bus each SCL period.
§ A pullup resistor is required on the SDA line and, when the bus is idle, both SDA and SCL must remain in a logichigh state.
§ All bus communication must be initiated with a START condition and terminated with a STOP condition. During a
START or STOP is the only time SDA is allowed to change states while SCL is high. At all other times, changes
on the SDA line can only occur when SCL is low: SDA must remain stable when SCL is high.
§ After every 8-bit (1-byte) transfer, the receiving device must answer with an ACK (or NACK), which takes one
SCL period. Therefore, nine clocks are required for every one-byte data transfer.
INITIATING 2-WIRE COMMUNICATION
To initiate 2-wire communication, the master generates a START followed by a control byte containing the DS620
slave address. The R/W bit of the control byte must be a 0 (write) since the master next writes a command byte or
an address byte. The DS620 responds with an ACK after receiving the control byte. This must be followed by a
command byte from the master which indicates what type of command operation is to be performed, or an address
byte when the master intends to write to or read from the DS620. The DS620 again responds with an ACK after
receiving the command or address byte. The master can then issue a STOP to signal the end of the
communication sequence, or continue writing to the address memory. See the Command Set section for details on
11 of 15
DS620 Digital Thermometer and Thermostat
the DS620 commands. See Writing to the DS620 or Reading from the DS620 for more information on reading from
and writing to the DS620.
WRITING TO THE DS620
The master can write data to the DS620 by issuing an address byte following the control byte. The R/W bit in the
control byte must be a 0 (write). After receiving an ACK from the DS620 in response to the control byte, the master
sends the address of the first register byte to be written, loading the address counter with the desired location. The
DS620 responds with another ACK, after which the master sends the data to be written. After receiving each byte
of data, the DS620 responds with an ACK. The master continues to write data to successive address locations until
it indicates there is no more data to be written by sending a STOP or repeated START condition. The DS620
ignores any data written once the address increments past ADh, the last defined register in the DS620 memory,
and indicates this by sending a NACK after each byte. It also ignores data written to undefined addresses A8h and
A9h. All writes to the DS620 are made to the shadow RAM. Once data is written to the shadow RAM, it is only
stored to EEPROM by issuance of a Copy Data command from the master. At that time all registers are copied to
EEPROM, except the Temperature registers, which are SRAM only, and the undefined registers. The DS620 must
be set to the continuous conversion mode and be actively converting temperature to enable the Copy Data
command to function properly. See Copying to EEPROM Command Sequence for more information.
READING FROM THE DS620
The master can read data from the DS620 by issuing an address byte following the control byte. The R/W bit in the
control byte must be a 0 (write). After receiving an ACK from the DS620 in response to the control byte, the master
writes the address of the first register byte to be read, loading the address counter with the desired location. The
DS620 will respond with another ACK. The master then must issue a repeated START (or a STOP and a START)
followed by a control byte with the same slave address as the first control byte. However, this time the R/W bit must
be a 1 which tells the DS620 that a “read” is being performed. After the DS620 sends an ACK in response to this
control byte, it begins transmitting the requested data on the next clock cycle. The master responds with an ACK
between each byte of data read from the DS620 until no further bytes of data are to be read, at which time the
master responds with a NACK followed by a STOP. The DS620 sends all 1’s (FFh) once the address increments
past ADh, the last defined register in the DS620 memory. There is no guaranteed state of data read from the
undefined registers, A8h and A9h. The Recall Data command should be issued before a read to assure that the
contents of the EEPROM will be in the Shadow RAM when read.
COMMAND SET
The DS620 command set is detailed below:
Start Convert [ 51h ]
0101 0001
Initiates temperature conversions. If the part is in one-shot mode (1SHOT = 1), only one conversion is performed.
In continuous mode (1SHOT = 0), continuous temperature conversions are performed until a Stop Convert
command is issued (even if 1SHOT is changed to a 1).
Stop Convert [ 22h ]
0010 0010
Stops temperature conversions when the device is in continuous conversion mode (1SHOT = 0). This command
has no function if the device is in one-shot mode (1SHOT = 1)
Recall Data [ B8h ]
1011 1000
Refreshes SRAM shadow register with EEPROM data.
Copy Data [ 48h ]
0100 1000
Copies data from all SRAM shadow registers to EEPROM.
NOTE: The DS620 must be set to the continuous conversion mode and be actively converting temperature to
enable the Copy Data command to function properly. See example command sequence in the Copying to
EEPROM Command Sequence section for more information.
Software POR [ 54h ]
0101 0100
Initiates a software power-on-reset (POR), which stops temperature conversions and resets all registers and logic
to their power-up states. The software POR allows the user to simulate cycling the power without actually powering
down the device. This command should not be issued while a Copy Data command is in progress.
12 of 15
DS620 Digital Thermometer and Thermostat
COPYING TO EEPROM COMMAND SEQUENCE
Data is written to DS620 and then copied from SRAM to EEPROM
BUS
MASTER
MODE
TX
TX
RX
RX
RX
TX
DATA
(MSB
FIRST)
START
<address, 0>
ACK
TX
RX
A4h
RX
TX
ACK
TX
RX
<data>
RX
TX
ACK
TX
RX
<data>
RX
TX
ACK
TX
RX
<data>
RX
TX
ACK
TX
RX
<data>
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
ACh
RX
TX
ACK
TX
RX
xxxxxxx0b
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
51h
RX
TX
ACK
TX
TX
RX
RX
RX
TX
START
<address, 0>
ACK
TX
RX
ACh
DS620
MODE
COMMENTS
Bus master initiates a START condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge bit.
Bus master sends the address location of the first byte
of data to be written. (In this case the first byte of user
EEPROM).
DS620 generates acknowledge.
Bus master sends one byte of data to the SRAM
location for EEPROM address A4h.
DS620 generates acknowledge.
Bus master sends one byte of data to the SRAM
location for EEPROM for address A5h.
DS620 generates acknowledge.
Bus master sends one byte of data to the SRAM
location for EEPROM for address A6h.
DS620 generates acknowledge.
Bus master sends one byte of data to the SRAM
location for EEPROM for address A7h.
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Bus master sends the address location of the MSb of
the configuration register (contains the 1SHOT bit).
This writes to the SRAM location corresponding the
EEPROM location. NOTE: Sequence numbers 17
through 23 need to be done only if DS620 is in 1SHOT
mode: 1SHOT = 1.
DS620 generates acknowledge.
Bus master writes to the configuration register putting
the DS620 in continuous conversion mode: 1SHOT =
0.
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge
Master sends START CONVERT command to DS620
to start temperature conversions.
DS620 generates acknowledge bit and begins
conversions.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Bus master sends the address location of the MSb of
the configuration register (contains the 1SHOT bit).
This writes to the SRAM location corresponding the
EEPROM location. NOTE: command sequence
numbers 29 through 34 need only be done if a return to
1SHOT mode operation is needed.
13 of 15
SEQUENCE
NUMBER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DS620 Digital Thermometer and Thermostat
RX
TX
ACK
TX
RX
xxxxxxx1b
TX
TX
RX
RX
RX
TX
START
<address, 0>
ACK
TX
RX
48h
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
22h
RX
TX
ACK
TX
RX
STOP
DS620 generates acknowledge.
Bus master writes to the configuration register putting
the DS620 back in 1SHOT mode: 1SHOT = 1.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Master sends COPY DATA command to DS620 to
copy data in from SRAM memory to EEPROM memory.
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Bus master sends a STOP CONVERT command to
stop the DS620 from continuously converting
temperature. NOTE: Bus master should ensure that
EEPROM copy operation is complete before executing
the STOP CONVERT command by either waiting 10ms
from the time of the COPY DATA command or
checking the NVB bit in configuration register
DS620 generates acknowledge.
Bus master sends STOP condition to end
communication with DS620. (The bus master could
send a repeated start condition if additional
communication with the DS620 is desired.)
30
31
32
33
34
35
36
37
38
39
40
41
42
WRITING THE 1SHOT BIT COMMAND SEQUENCE
Configuring from continuous mode to 1SHOT mode.
BUS
MASTER
MODE
TX
TX
RX
DS620
MODE
DATA
(MSB FIRST)
RX
RX
TX
START
<address, 0>
ACK
TX
RX
51h
RX
TX
ACK
TX
TX
RX
RX
RX
TX
START
<address, 0>
ACK
TX
RX
ACh
RX
TX
ACK
TX
RX
xxxxxxx1b
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
48h
COMMENTS
Bus master initiates a START condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge bit.
Master sends START CONVERT command to DS620
to start temperature conversions.
DS620 generates acknowledge bit and begins
conversions.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Bus master sends the address location of the MSb of
the configuration register (contains the 1SHOT bit).
This writes to the SRAM location corresponding the
EEPROM location.
DS620 generates acknowledge.
Bus master writes to the configuration register putting
the DS620 in 1SHOT mode: 1SHOT = 1.
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Master sends COPY DATA command to DS620 to
copy data in from SRAM memory to EEPROM
memory.
14 of 15
SEQUENCE
NUMBER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DS620 Digital Thermometer and Thermostat
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
22h
RX
TX
ACK
TX
RX
STOP
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Bus master sends STOP CONVERT command to
stop the DS620 from continuously converting
temperature. NOTE: Bus master should ensure that
EEPROM copy operation is complete before
executing the STOP CONVERT command by either
waiting 10ms from the time of the COPY DATA
command or checking the NVB bit in configuration
register
DS620 generates acknowledge.
Bus master sends STOP condition to end
communication with DS620. (The bus master could
send a repeated start condition if additional
communication with the DS620 is desired.)
17
18
19
20
21
22
23
Configuring from 1SHOT to mode to continuous conversion mode.
BUS
MASTER
MODE
TX
TX
RX
RX
RX
TX
DATA
(MSB
FIRST)
START
<address, 0>
ACK
TX
RX
ACh
RX
TX
ACK
TX
RX
xxxxxxx0b
RX
TX
TX
RX
TX
RX
RX
TX
ACK
START
<address, 0>
ACK
TX
RX
51h
RX
TX
ACK
TX
TX
RX
RX
RX
TX
START
<address, 0>
ACK
TX
RX
48h
RX
TX
ACK
TX
RX
STOP
DS620
MODE
COMMENTS
Bus master initiates a START condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge bit.
Bus master sends the address location of the MSb of
the configuration register (contains the 1SHOT bit).
This writes to the SRAM location corresponding the
EEPROM location.
DS620 generates acknowledge.
Bus master writes to the configuration register putting
the DS620 in continuous conversion mode: 1SHOT =
0.
DS620 generates acknowledge.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Master sends START CONVERT command to DS620
to start temperature conversions.
DS620 generates acknowledge bit and begins
conversions.
Bus master generates a repeated start condition.
Bus master sends DS620 address, R/W = 0.
DS620 generates acknowledge.
Master sends COPY DATA command to DS620 to
copy data in from SRAM memory to EEPROM
memory.
DS620 generates acknowledge.
Bus master sends STOP condition to end
communication with DS620. (The bus master could
send a repeated start condition if additional
communication with the DS620 is desired.)
15 of 15
SEQUENCE
NUMBER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18