beautypg.com

Rainbow Electronics DS2482-800 User Manual

Page 18

background image

DS2482-800: Eight-Channel 1-Wire Master

18 of 22

Data Direction Codes

Master-to-Slave Slave-to-Master


I²C Communication Examples

Device Reset, e.g., after power-up

S

AD,0

A

DRST

A

Sr

AD,1

A

A\

P

This example includes an optional read access to verify the success of the command.


Write Configuration, e.g., before starting 1-Wire activity power-up

Case A: 1-Wire idle (1WB = 0)

S

AD,0

A

WCFG

A

A

Sr

AD,1

A

A\

P

This example includes 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 does not acknowledge the command code.

Channel Select, e.g., to select another 1-Wire channel

Case A: 1-Wire idle (1WB = 0)

S

AD,0

A

CHSL

A

E1h

A

Sr

AD,1

A

A\

P

E1h is the valid channel selection code for IO1. This example includes an optional read access to verify the
success of the command.

Case B: 1-Wire idle (1WB = 0), invalid channel selection code

S

AD,0

A

CHSL

A

E5h

A\

P

E5h is an invalid channel selection code.

Case C: 1-Wire busy (1WB = 1)

S

AD,0

A

CHSL

A\

P

The master should stop and restart as soon as the DS2482 does not acknowledge the command code.


Set Read Pointer, e.g., 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.