Datasheet

DS2482-100: Single-Channel 1-Wire Master
19 of 22
1-Wire Single Bit, e.g., to Generate a Single Time Slot on the 1-Wire Line
Case A: 1-Wire Idle (1WB = 0), No Busy Polling
S AD,0 A 1WSB A <byte> A P (Idle)
S AD,1 A <byte> A\ P
The idle time is needed for the 1-Wire function to complete. Then access the device in read mode to get the result
from the 1-Wire single-bit command.
Case B: 1-Wire Idle (1WB = 0), Busy Polling Until the 1-Wire Command is Completed
S AD,0 A 1WSB A <byte> A
Sr AD,1 A <byte> A <byte> A\ P
When 1WB has changed from 1 to 0, the Status register holds the valid result of the 1-Wire Single Bit command.
Case C: 1-Wire Busy (1WB = 1)
S AD,0 A 1WSB A\ P
The master should stop and restart as soon as the DS2482-100 does not acknowledge the command code.
1-Wire Triplet, e.g., to Perform a Search ROM Function on the 1-Wire Line
Case A: 1-Wire Idle (1WB = 0), No Busy Polling
S AD,0 A 1WT A <byte> A P (Idle)
S AD,1 A <byte> A\ P
The idle time is needed for the 1-Wire function to complete. Then access the device in read mode to get the result
from the 1-Wire Triplet command.
Case B: 1-Wire Idle (1WB = 0), Busy Polling Until the 1-Wire Command is Completed
S AD,0 A 1WT A <byte> A
Sr AD,1 A <byte> A <byte> A\ P
When 1WB has changed from 1 to 0, the Status register holds the valid result of the 1-Wire Triplet command.
Case C: 1-Wire Busy (1WB = 1)
S AD,0 A 1WT A\ P
The master should stop and restart as soon as the DS2482-100 does not acknowledge the command code.
Repeat until the 1WB
bit has changed to 0.
Repeat until the 1WB
bit has changed to 0.