beautypg.com

Package information – Rainbow Electronics DS2431 User Manual

Page 23

background image

DS2431: 1024-Bit, 1-Wire EEPROM

23 of 23

Maxim/Dallas Semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied

in a Maxim/Dallas Semiconductor product. No circuit patent licenses are implied. Maxim/Dallas Semiconductor reserves the

right to change the circuitry and specifications without notice at any time.

M a x i m I n t e g r a t e d P r o d u c t s , 1 2 0 S a n G a b r i e l D r i v e , S u n n y v a l e , C A 9 4 0 8 6 4 0 8 - 7 3 7 - 7 6 0 0

© 2004 Maxim Integrated Products

Printed USA

MAXIM is a registered trademark of Maxim Integrated Products, Inc. DALLAS is a registered trademark of Dallas Semiconductor Corporation.

MEMORY FUNCTION EXAMPLE

Write to the first 8 bytes of memory page 1. Read the entire memory.
With only a single DS2431 connected to the bus master, the communication looks like this:

MASTER MODE

DATA (LSB FIRST)

COMMENTS

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

0Fh

Issue “Write scratchpad” command

TX

20h

TA1, beginning offset=20h

TX

00h

TA2, address=0020h

TX

<8 data bytes>

Write 8 bytes of data to scratchpad

RX

<2 bytes CRC16\>

Read CRC to check for data integrity

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

AAh

Issue “Read scratchpad” command

RX

20h

Read TA1, beginning offset=20h

RX

00h

Read TA2, address=0020h

RX

07h

Read E/S, ending offset=111b, AA, PF = 0

RX

<8 data bytes>

Read scratchpad data and verify

RX

<2 bytes CRC16\>

Read CRC to check for data integrity

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

55h

Issue “copy scratchpad” command

TX

20h

TA1

TX

00h

TA2 (AUTHORIZATION

CODE)

TX

07h

E/S

----

<1-Wire idle high>

Wait 13 ms for the copy function to complete

RX

AAh

Read copy status, AAh = success

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

F0h

Issue “Read Memory” command

TX

00h

TA1, beginning offset=00h

TX

00h

TA2, address=0000h

RX

<144 data bytes>

Read the entire memory

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

PACKAGE INFORMATION

(The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to

www.maxim-ic.com/DallasPackInfo

.)