beautypg.com

1–wire signaling, Read/write time slots – Rainbow Electronics DS2417 User Manual

Page 10

background image

DS2417

10 of 15

1–WIRE SIGNALING

The DS2417 requires strict protocols to ensure data integrity. The protocol consists of four types of sig-
naling on one line: Reset Sequence with Reset Pulse and Presence Pulse, Write 0, Write 1, and Read
Data. Except for the presence pulse the bus master initiates all these signals.

The initialization sequence required to begin any communication with the DS2417 is shown in Figure 8.
A reset pulse followed by a presence pulse indicates the DS2417 is ready to send or receive data. The bus
master transmits (TX) a reset pulse (t

RSTL

, minimum 480

ms). The bus master then releases the line and

goes into receive mode (RX). The 1-Wire bus is pulled to a high state via the pullup resistor. After
detecting the rising edge on the data line, the DS2417 waits (t

PDH

, 15µs to 60µs) and then transmits the

presence pulse (t

PDL

, 60µs to 240µs).

INITIALIZATION PROCEDURE “RESET AND PRESENCE PULSES” Figure 8

RESISTOR

MASTER

DS2417

MASTER RX "PRESENCE PULSE"

480 µs

£ t

RSTL

<

¥

*

480 µs

£ t

RSTH

<

¥

**

15 µs

£ t

PDH

< 60 µs

60

£ t

PDL

< 240 µs

MASTER TX

"RESET PULSE"

V

PULLUP

V

PULLUP MIN

V

IH MIN

V

IL MAX

0V

t

RSTH

t

RSTL

t

PDH

t

PDL

t

R

*

In order not to mask interrupt signaling by other devices on the 1-Wire bus t

RSTL

+ t

R

should al-

ways be less than 960µs.

**

Includes recovery time

READ/WRITE TIME SLOTS

The definitions of write and read time slots are illustrated in Figure 9. The master initiates all time slots
by driving the data line low. The falling edge of the data line synchronizes the DS2417 to the master by
triggering an internal delay circuit. During write time slots, the delay circuit determines when the
DS2417 will sample the data line. For a read data time slot, if a “0” is to be transmitted, the delay circuit
determines how long the DS2417 will hold the data line low. If the data bit is a “1”, the DS2417 will not
hold the data line low at all.