beautypg.com

Rainbow Electronics DS2482-800 User Manual

Page 10

background image

DS2482-800: Eight-Channel 1-Wire Master

10 of 22

Set Read Pointer

Command Code

E1h

Command Parameter

Pointer Code

Description

Sets the read pointer to the specified register. Overwrites the read pointer
position of any 1-Wire communication command in progress.

Typical Use

To prepare reading the result from a 1-Wire Byte command; random read
access of registers.

Restriction

None (can be executed at any time)

Error Response

If the pointer code is not valid, the pointer code will not be acknowledged
and the command will be ignored.

Command Duration

None; the read pointer is updated on the rising SCL edge of the pointer
code acknowledge bit.

1-Wire Activity

Not Affected

Read Pointer Position

As Specified by the Pointer Code

Status Bits Affected

None

Configuration Bits Affected None


Valid Pointer Codes







Write Configuration

Command Code

D2h

Command Parameter

Configuration Byte

Description

Writes a new configuration byte. The new settings take effect immediately.
NOTE: When writing to the Configuration Register, the new data is
accepted only if the upper nibble (bits 7 to 4) is the one's complement of
the lower nibble (bits 3 to 0). When read, the upper nibble is always 0h.

Typical Use

Defining the features for subsequent 1-Wire communication.

Restriction

1-Wire activity must have ended before the DS2482 can process this
command.

Error Response

Command code and parameter will not be acknowledged if 1WB = 1 at the
time the command code is received and the command will be ignored.

Command Duration

None; the configuration register is updated on the rising SCL edge of the
configuration byte acknowledge bit.

1-Wire Activity

None

Read Pointer Position

Configuration Register (to verify write)

Status Bits Affected

RST set to 0

Configuration Bits Affected 1WS, SPU, PPM, APU updated


Register Selection

Code

Status Register

F0h

Read Data Register

E1h

Channel Selection Register

D2h

Configuration Register

C3h