DS18B20-PAR
10 of 19
transmitted least significant bit first. All three bytes MUST be written before the master issues a reset, or
the data may be corrupted.
READ SCRATCHPAD [BEh]
This command allows the master to read the contents of the scratchpad. The data transfer starts with the
least significant bit of byte 0 and continues through the scratchpad until the 9
th
byte (byte 8 – CRC) is
read. If only part of the scratchpad contents is required, the master may issue a reset to terminate reading
at any time.
COPY SCRATCHPAD [48h]
This command copies the contents of the scratchpad T
H
, T
L
and configuration registers (bytes 2, 3 and 4)
to EEPROM. Within 10 μs (max) after this command is issued the master must enable a strong pullup on
the 1-Wire bus for at least 10 ms as described in the PARASITE POWER section.
RECALL E
2
[B8h]
This command recalls the alarm trigger values (T
H
and T
L
) and configuration data from EEPROM and
places the data in bytes 2, 3, and 4, respectively, in the scratchpad memory. The master device can issue
“read time slots” (see the 1-WIRE BUS SYSTEM section) following the Recall E
2
command and the
DS18B20-PAR will indicate the status of the recall by transmitting 0 while the recall is in progress and
1 when the recall is done. The recall operation happens automatically at power-up, so valid data is
available in the scratchpad as soon as power is applied to the device.
DS18B20-PAR Function Command Set Table 4
Command
Description
Protocol
1-Wire Bus Activity
After Command is Issued
Notes
TEMPERATURE CONVERSION COMMANDS
Convert T Initiates temperature
conversion.
44h None 1
MEMORY COMMANDS
Read Scratchpad Reads the entire scratchpad
including the CRC byte.
BEh DS18B20-PAR transmits up
to 9 data bytes to master.
2
Write Scratchpad Writes data into scratchpad
bytes 2, 3, and 4 (T
H
, T
L
, and
configuration registers).
4Eh Master transmits 3 data
bytes to DS18B20-PAR.
3
Copy Scratchpad Copies T
H
, T
L
, and
configuration register data from
the scratchpad to EEPROM.
48h None 1
Recall E
2
Recalls T
H
, T
L
, and
configuration register data from
EEPROM to the scratchpad.
B8h DS18B20-PAR transmits
recall status to master.
NOTES:
1. The master must enable a strong pullup on the 1-Wire bus during temperature conversions and copies
from the scratchpad to EEPROM. No other bus activity may take place during this time.
2. The master can interrupt the transmission of data at any time by issuing a reset.
3. All three bytes must be written before a reset is issued.
DS18B20-PAR
11 of 19
ROM COMMANDS FLOW CHART Figure 10
CCh
SKIP ROM
COMMAND
MASTER T
X
RESET PULSE
DS18B20-PAR
T
X
PRESENCE
PULSE
MASTER T
X
ROM
COMMAND
33h
READ ROM
COMMAND
55h
MATCH ROM
COMMAND
F0h
SEARCH ROM
COMMAND
ECh
ALARM SEARCH
COMMAND
MASTER T
X
BIT 0
BIT 0
MAT
C
H?
MASTER T
X
BIT 1
BIT 1
MATCH?
BIT 63
MATCH?
MASTER T
X
BIT 63
N
Y
Y Y Y
Y
N N
N
N
N
N
N
Y
Y
Y
BIT 0
MATCH?
BIT 1
MATCH?
BIT 63
MATCH?
N
N
N
Y
Y
Y
DS18B20-PAR T
X
FAMILY CODE
1 BYTE
DS18B20-PAR T
X
SERIAL NUMBER
6 BYTES
DS18B20-PAR T
X
CRC BYTE
DS18B20-PAR T
X
BIT 0
DS18B20-PAR T
X
BIT 0
MASTER T
X
BIT 0
N
Y
DEVICE(S)
WITH ALARM
FLAG SET?
Initialization
Sequence
MASTER T
X
FUNCTION
COMMAND
(FIGURE 11)
DS18B20-PAR T
X
BIT 0
DS18B20-PAR T
X
BIT 0
MASTER T
X
BIT 0
DS18B20-PAR T
X
BIT 1
DS18B20-PAR T
X
BIT 1
MASTER T
X
BIT 1
DS18B20-PAR T
X
BIT 63
DS18B20-PAR T
X
BIT 63
MASTER T
X
BIT 63
DS18B20-PAR
12 of 19
DS18B20-PAR FUNCTION COMMANDS FLOW CHART Figure 11
MASTER T
X
FUNCTION
COMMAND
Y
N
44h
CONVERT
TEMPERATURE
?
MASTER ENABLES
STRONG PULLUP ON DQ
DS18B20-PAR CONVERTS
TEMPERATURE
MASTER DISABLES
STRONG PULLUP
Y
N
48h
COPY
SCRATCHPAD
?
MASTER ENABLES
STRONG PULL-UP ON DQ
DATA COPIED FROM
SCRATCHPAD TO EEPROM
MASTER DISABLES
STRONG PULLUP
RETURN TO INITIALIZATION
SEQUENCE (FIGURE 10) FOR
NEXT TRANSACTION
Y
N
Y
BEh
READ
SCRATCHPAD
?
HAVE 8 BYTES
BEEN READ
?
N
MASTER
T
X
RESET
?
MASTER R
X
DATA BYTE
FROM SCRATCHPAD
N
Y
MASTER R
X
SCRATCHPAD
CRC BYTE
MASTER
R
X
“1s”
Y
N
B8h
RECALL E
2
?
MASTER BEGINS DATA
RECALL FROM E
2
PROM
DEVICE
BUSY RECALLING
DATA
?
N
Y
MASTER
R
X
“0s”
MASTER T
X
T
H
BYTE
TO SCRATCHPAD
Y
N
4Eh
WRITE
SCRATCHPAD
?
MASTER T
X
T
L
BYTE
TO SCRATCHPAD
MASTER T
X
CONFIG. BYTE
TO SCRATCHPAD

DS18B20+PAR

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Board Mount Temperature Sensors Prgmble Resolution 1-Wire Parasite Pw
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet