Datasheet

25Maxim Integrated
DS2483
Single-Channel 1-Wire Master
with Adjustable Timing and Sleep Mode
I
2
C Communication Examples (continued)
1-Wire Read Byte (To Read a Byte from the 1-Wire Line)
Case A: 1-Wire Idle (1WB = 0), No Busy Polling, Set Read Pointer After Idle Time
S AD,0 A 1WRB A P (Idle)
S AD,0 A SRP AD,1 A <byte>A E1h A Sr PA\
The idle time is needed for the 1-Wire function to complete. Then set the read pointer to the Read Data register
(code E1h) and access the device again to read the data byte that was obtained from the 1-Wire line.
Case B: 1-Wire Idle (1WB = 0), No Busy Polling, Set Read Pointer Before Idle Time
S AD,0 A 1WRB A Sr AD,0 A SRP E1h A PA
(Idle) S AD,1 A <byte> PA\
The read pointer is set to the Read Data register (code E1h) while the 1-Wire Read Byte command is still in prog-
ress. Then, after the 1-Wire function is completed, the device is accessed to read the data byte that was obtained
from the 1-Wire line.
Case C: 1-Wire Idle (1WB = 0), Busy Polling Until the 1-Wire Command is Completed
S AD,0 A 1WRB
AD,0 A SRP
A
A E1h A
Sr AD,1 A <byte> A
Sr AD,1 A<byte> A\ P
<byte> A\
Repeat until the 1WB bit
has changed to 0.
Sr
Poll the Status segister until the 1WB bit has changed from 1 to 0. Then set the read pointer to the Read Data reg-
ister (code E1h) and access the device again to read the data byte that was obtained from the 1-Wire line.
Case D: 1-Wire Busy (1WB = 1)
S AD,0 A 1WRB A\ P
The master should stop and restart as soon as the DS2483 does not acknowledge the command code.