DS18B20-PAR
13 of 19
1-WIRE SIGNALING
The DS18B20-PAR uses a strict 1-Wire communication protocol to insure data integrity. Several signal
types are defined by this protocol: reset pulse, presence pulse, write 0, write 1, read 0, and read 1. All of
these signals, with the exception of the presence pulse, are initiated by the bus master.
INITIALIZATION PROCEDURE: RESET AND PRESENCE PULSES
All communication with the DS18B20-PAR begins with an initialization sequence that consists of a reset
pulse from the master followed by a presence pulse from the DS18B20-PAR. This is illustrated in
Figure 12. When the DS18B20-PAR sends the presence pulse in response to the reset, it is indicating to
the master that it is on the bus and ready to operate.
During the initialization sequence the bus master transmits (T
X
) the reset pulse by pulling the 1-Wire bus
low for a minimum of 480 μs. The bus master then releases the bus and goes into receive mode (R
X
).
When the bus is released, the 5k pullup resistor pulls the 1-Wire bus high. When the DS18B20-PAR
detects this rising edge, it waits 15–60 μs and then transmits a presence pulse by pulling the 1-Wire bus
low for 60–240 μs.
INITIALIZATION TIMING Figure 12
READ/WRITE TIME SLOTS
The bus master writes data to the DS18B20-PAR during write time slots and reads data from the
DS18B20-PAR during read time slots. One bit of data is transmitted over the 1-Wire bus per time slot.
WRITE TIME SLOTS
There are two types of write time slots: “Write 1” time slots and “Write 0” time slots. The bus master
uses a Write 1 time slot to write a logic 1 to the DS18B20-PAR and a Write 0 time slot to write a logic 0
to the DS18B20-PAR. All write time slots must be a minimum of 60 μs in duration with a minimum of a
1 μs recovery time between individual write slots. Both types of write time slots are initiated by the
master pulling the 1-Wire bus low (see Figure 13).
To generate a Write 1 time slot, after pulling the 1-Wire bus low, the bus master must release the 1-Wire
bus within 15 μs. When the bus is released, the 5k pullup resistor will pull the bus high. To generate a
Write 0 time slot, after pulling the 1-Wire bus low, the bus master must continue to hold the bus low for
the duration of the time slot (at least 60 μs).
LINE TYPE LEGEND
Bus master pulling low
DS18B20-PAR pulling low
Resistor
p
ullu
p
V
PU
GND
1-WIRE BUS
480 μs minimum
480
μ
s minimum
DS18B20-PAR T
X
presence pulse
60-240 μs
MASTER T
X
RESET PULSE MASTER R
X
DS18B20-PAR
waits 15-60 μs
DS18B20-PAR
14 of 19
The DS18B20-PAR samples the 1-Wire bus during a window that lasts from 15 μs to 60 μs after the
master initiates the write time slot. If the bus is high during the sampling window, a 1 is written to the
DS18B20-PAR. If the line is low, a 0 is written to the DS18B20-PAR.
READ/WRITE TIME SLOT TIMING DIAGRAM Figure 13
READ TIME SLOTS
The DS18B20-PAR can only transmit data to the master when the master issues read time slots.
Therefore, the master must generate read time slots immediately after issuing a Read Scratchpad [BEh]
command, so that the DS18B20-PAR can provide the requested data. In addition, the master can generate
read time slots after issuing a Recall E
2
[B8h] command to find out the recall status as explained in the
DS18B20-PAR FUNCTION COMMAND section.
All read time slots must be a minimum of 60 μs in duration with a minimum of a 1 μs recovery time
between slots. A read time slot is initiated by the master device pulling the 1-Wire bus low for a
minimum of 1 μs and then releasing the bus (see Figure 13). After the master initiates the read time slot,
the DS18B20-PAR will begin transmitting a 1 or 0 on bus. The DS18B20-PAR transmits a 1 by leaving
the bus high and transmits a 0 by pulling the bus low. When transmitting a 0, the DS18B20-PAR will
release the bus by the end of the time slot, and the bus will be pulled back to its high idle state by the
pullup resister. Output data from the DS18B20-PAR is valid for 15 μs after the falling edge that initiated
45 μs
15 μs
V
PU
GND
1-WIRE BUS
60 μs < T
X
“0” < 120
1 μs < T
REC
<
DS18B20-PAR samples
MIN TYP MAX
15 μs
30
μ
s
> 1
μ
s
MASTER WRITE “0” SLOT MASTER WRITE “1” SLOT
DS18B20-PAR samples
MIN TYP MAX
V
PU
GND
1-WIRE BUS
15
μ
s
MASTER READ “0” SLOT MASTER READ “1” SLOT
Master samples
Master samples
START
OF SLOT
START
OF SLOT
> 1
μ
s
1 μs < T
REC
<
15 μs
15
μ
s
30 μs
15
μ
s
LINE TYPE LEGEND
Bus master pulling low DS18B20-PAR pulling low
Resistor pullup
> 1 μs
DS18B20-PAR
15 of 19
the read time slot. Therefore, the master must release the bus and then sample the bus state within 15 μs
from the start of the slot.
Figure 14 illustrates that the sum of T
INIT
, T
RC
, and T
SAMPLE
must be less than 15 μs for a read time slot.
Figure 15 shows that system timing margin is maximized by keeping T
INIT
and T
RC
as short as possible
and by locating the master sample time during read time slots towards the end of the 15 μs period.
DETAILED MASTER READ 1 TIMING Figure 14
RECOMMENDED MASTER READ 1 TIMING Figure 15
DS18B20-PAR OPERATION EXAMPLE 1
In this example there are multiple DS18B20-PARs on the bus. The bus master initiates a temperature
conversion in a specific DS18B20-PAR and then reads its scratchpad and recalculates the CRC to verify
the data.
MASTER MODE DATA (LSB FIRST) COMMENTS
TX Reset Master issues reset pulse.
RX Presence DS18B20-PARs respond with presence pulse.
TX 55h Master issues Match ROM command.
TX 64-bit ROM code Master sends DS18B20-PAR ROM code.
TX 44h Master issues Convert T command.
TX DQ line held high by
strong pullup
Master applies strong pullup to DQ for the duration of the
conversion (t
conv
).
TX Reset Master issues reset pulse.
RX Presence DS18B20-PARs respond with presence pulse.
TX 55h Master issues Match ROM command.
TX 64-bit ROM code Master sends DS18B20-PAR ROM code.
TX BEh Master issues Read Scratchpad command.
V
PU
GND
1-WIRE BUS
15
μ
s
VIH of Master
T
RC
T
INT
> 1 μs
Master samples
LINE TYPE LEGEND
Bus master pulling low
Resistor pullup
V
PU
GND
1-WIRE BUS
15
μ
s
VIH of Master
T
RC
=
small
T
INT
=
small
Master samples

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