
DS1821
062498 5/15
RETURNING TO 1–WIRE MODE FROM
THERMOSTAT MODE
The operating mode of the DS1821 is determined at
power–up, depending upon the setting of the T/R bit. If
the T/R bit is set to a “1”, the DS1821 will power up in
thermostat mode. In this mode, the device cannot be
written to or read from over the DQ line. However, it is
possible to return to the 1–Wire “read” mode tempo-
rarily, in cases where thermostat limits may need to be
changed after insertion and use in a system.
To return to the 1–Wire “read” mode, the V
DD
pin of the
DS1821 is brought to 0V while the DQ line is held high.
The DQ line must then be clocked low 16 times. After
this is accomplished, the V
DD
line may be brought high
again, and the DS1821 will then be in 1–Wire “read”
mode.
To toggle between modes, V
DD
is brought low while DQ
is held high and then clocked 16 times. When V
DD
is
brought high again, the part will then be in thermostat
mode again. This technique may be used to toggle be-
tween the two operating modes of the DS1821 as often
as required.
When both V
DD
and DQ are low for more than approxi-
mately 10 seconds, the part is powered down. When
powered up again, the part will begin operating in the
mode set by T/R* bit (1=thermostat mode, 0=“read”
mode).
DS1821 COMMAND SET
Table 2
INSTRUCTION
DESCRIPTION
PROTOCOL
1–WIRE BUS DATA
AFTER ISSUING
PROTOCOL
TEMPERATURE CONVERSION COMMANDS
Start Convert T
Initiates temperature conversion.
EEh
idle
Stop Convert T
Halts temperature conversion.
22h
idle
Read
Temperature
Reads last converted temperature value from tem-
perature register.
AAh
<read data>
THERMOSTAT COMMANDS
Write TH
Writes high temperature limit value into TH register.
01h
<write data>
Write TL
Writes low temperature limit value into TL register.
02h
<write data>
Read TH
Reads stored value of high temperature limit from
TH register.
A1h
<read data>
Read TL
Reads stored value of low temperature limit from
TL register.
A2h
<read data>
Write Status
Writes configuration data to configuration register.
0Ch
<write data>
Read Status
Reads configuration data from configuration register.
ACh
<read data>