Datasheet

DS1822-PAR
4 of 19
TEMPERATURE REGISTER FORMAT Figure 3
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
LS Byte
2
3
2
2
2
1
2
0
2
-1
2
-2
2
-3
2
-4
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8
MS Byte
S S S S S 2
6
2
5
2
4
TEMPERATURE/DATA RELATIONSHIP Table 2
TEMPERATURE
DIGITAL OUTPUT
(Binary)
DIGITAL OUTPUT
(Hex)
+85°C* 0000 0101 0101 0000 0550h
+25.0625°C 0000 0001 1001 0001 0191h
+10.125°C 0000 0000 1010 0010 00A2h
+0.5°C 0000 0000 0000 1000 0008h
0°C 0000 0000 0000 0000 0000h
-0.5°C 1111 1111 1111 1000 FFF8h
-10.125°C 1111 1111 0101 1110 FF5Eh
-25.0625°C 1111 1110 0110 1111 FE6Fh
-55°C 1111 1100 1001 0000 FC90h
*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 T
H
and T
L
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 T
H
and T
L
registers are NV (EEPROM) so they will retain data when the
device is powered down. T
H
and T
L
can be accessed through bytes 2 and 3 of the scratchpad as explained
in the MEMORY section of this data sheet.
T
H
AND T
L
REGISTER FORMAT Figure 4
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
S 2
6
2
5
2
5
2
5
2
2
2
1
2
0
Only bits 11 through 4 of the temperature register are used in the T
H
and T
L
comparison since T
H
and T
L
are 8-bit registers. If the measured temperature is lower than or equal to T
L
or higher than or equal to T
H
,
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 T
H
or T
L
settings have changed, another temperature conversion should be done
to validate the alarm condition.