DS18B20-PAR
DS18B20-PAR MEMORY MAP
Figure 6
SCRATCHPAD (Power-up State)
byte 0 Temperature LSB (50h)
byte 1 Temperature MSB (05h)
byte 2 T
H
Register or User Byte 1*
byte 3 T
L
Register or User Byte 2*
byte 4 Configuration Register*
byte 5 Reserved (FFh)
byte 6 Reserved
byte 7 Reserved (10h)
byte 8 CRC*
*
Power-up state depends on value(s) stored
in EEPROM
(85°C)
EEPROM
T
H
Register or User Byte 1
T
L
Register or User Byte 2
Configuration Register
CONFIGURATION REGISTER
Byte 4 of the scratchpad memory contains the configuration register, which is organized as illustrated in
Figure 7. The user can set the conversion resolution of the DS18B20-PAR using the R0 and R1 bits in
this register as shown in Table 3. The power-up default of these bits is R0 = 1 and R1 = 1 (12-bit
resolution). Note that there is a direct tradeoff between resolution and conversion time. Bit 7 and bits 0-4
in the configuration register are reserved for internal use by the device and cannot be overwritten.
CONFIGURATION REGISTER
Figure 7
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
0
R1
R0
1
1
1
1
1
THERMOMETER RESOLUTION CONFIGURATION
Table 3
R1
0
0
1
1
R0
0
1
0
1
Resolution
9-bit
10-bit
11-bit
12-bit
Max Conversion Time
93.75 ms
(t
CONV
/8)
187.5 ms
(t
CONV
/4)
375 ms
(t
CONV
/2)
750 ms
(t
CONV
)
CRC GENERATION
CRC bytes are provided as part of the DS18B20-PAR’s 64-bit ROM code and in the 9
th
byte of the
scratchpad memory. The ROM code CRC is calculated from the first 56 bits of the ROM code and is
contained in the most significant byte of the ROM. The scratchpad CRC is calculated from the data
stored in the scratchpad, and therefore it changes when the data in the scratchpad changes. The CRCs
provide the bus master with a method of data validation when data is read from the DS18B20-PAR. To
verify that data has been read correctly, the bus master must re-calculate the CRC from the received data
6 of 19