DS1822-PAR
TEMPERATURE REGISTER FORMAT Figure 3
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
LS Byte
MS Byte
23
22
21
20
2-1
2-2
2-3
2-4
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
26
bit 9
25
bit 8
24
S
S
S
S
S
TEMPERATURE/DATA RELATIONSHIP Table 2
TEMPERATURE
DIGITAL OUTPUT
(Binary)
DIGITAL OUTPUT
(Hex)
+85°C*
+25.0625°C
+10.125°C
+0.5°C
0000 0101 0101 0000
0000 0001 1001 0001
0000 0000 1010 0010
0000 0000 0000 1000
0000 0000 0000 0000
1111 1111 1111 1000
1111 1111 0101 1110
1111 1110 0110 1111
1111 1100 1001 0000
0550h
0191h
00A2h
0008h
0000h
FFF8h
FF5Eh
FE6Fh
FC90h
0°C
-0.5°C
-10.125°C
-25.0625°C
-55°C
*The power-on reset value of the temperature register is +85°C
OPERATION—ALARM SIGNALING
After the DS1822-PAR performs a temperature conversion, the temperature value is compared to the
user-defined two’s complement alarm trigger values stored in the 1-byte TH and TL registers (see Figure
4). The sign bit (S) indicates if the value is positive or negative: for positive numbers S = 0 and for
negative numbers S = 1. The TH and TL registers are NV (EEPROM) so they will retain data when the
device is powered down. TH and TL can be accessed through bytes 2 and 3 of the scratchpad as explained
in the MEMORY section of this data sheet.
TH AND TL REGISTER FORMAT Figure 4
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
S
26
25
25
25
22
21
20
Only bits 11 through 4 of the temperature register are used in the TH and TL comparison since TH and TL
are 8-bit registers. If the measured temperature is lower than or equal to TL or higher than or equal to TH,
an alarm condition exists and an alarm flag is set inside the DS1822-PAR. This flag is updated after every
temperature measurement; therefore, if the alarm condition goes away, the flag will be turned off after the
next temperature conversion.
The master device can check the alarm flag status of all DS1822-PARs on the bus by issuing an Alarm
Search [ECh] command. Any DS1822-PARs with a set alarm flag will respond to the command, so the
master can determine exactly which DS1822-PARs have experienced an alarm condition. If an alarm
condition exists and the TH or TL settings have changed, another temperature conversion should be done
to validate the alarm condition.
4 of 19