Single-Channel 1-Wire Master with Sleep Mode
I2C Communication Examples (continued)
Device Reset (After Power-Up)
S AD,0 A DRST A
Sr AD,1 A <byte> A\
P
Activities that are underlined denote an optional read access to verify the success of the command.
Set Read Pointer (To Read from Another Register)
Case A: Valid Read Pointer Code
S AD,0 A SRP A C3h A
P
C3h is the valid read pointer code for the Configuration Register.
Case B: Invalid Read Pointer Code
S AD,0 A SRP A E5h A\
P
E5h is an invalid read pointer code.
Write Configuration (Before Starting 1-Wire Activity)
Case A: 1-Wire Idle (1WB = 0)
S AD,0 A WCFG A <byte> A
Sr AD,1 A <byte> A\
P
Activities that are underlined denote an optional read access to verify the success of the command.
Case B: 1-Wire Busy (1WB = 1)
S AD,0 A WCFG A\
P
The master should stop and restart as soon as the DS2482-101 does not acknowledge the command code.
1-Wire Reset (To Begin or End 1-Wire Communication)
Case A: 1-Wire Idle (1WB = 0), No Busy Polling to Read the Result
S AD,0 A 1WRS A
P (Idle) S AD,1 A <byte> A\
P
In the first cycle, the master sends the command. Then the master waits (Idle) for the 1-Wire reset to complete. In
the second cycle, the DS2482-101 is accessed to read the result of the 1-Wire reset from the Status Register.
Case B: 1-Wire Idle (1WB = 0), Busy Polling Until the 1-Wire Command is Completed, then Read the Result
S AD,0 A 1WRS A
Sr AD,1 A <byte> A <byte> A\
P
REPEAT UNTIL THE 1WB BIT HAS CHANGED TO 0.
Case C: 1-Wire Busy (1WB = 1)
S AD,0 A 1WRS A\
P
The master should stop and restart as soon as the DS2482-101 does not acknowledge the command code.
18 ______________________________________________________________________________________