beautypg.com

Rainbow Electronics DS2430A User Manual

Page 14

background image

DS2430A

14 of 16

MEMORY FUNCTION EXAMPLE

Example: Write 2 data bytes to data memory location 0006 and 0007. Read entire data memory.

MASTER MODE

DATA (LSB FIRST)

COMMENTS

TX

Reset

Reset pulse (480µs to 960µs)

RX

Presence

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

0Fh

Issue “Write Scratchpad” command

TX

06h

Start address = 06h

TX

<2 Data Bytes>

Write 2 bytes of data to scratchpad

TX

Reset

Reset pulse

RX

Presence

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

AAh

Issue “Read Scratchpad” command

TX

06h

Start address = 06h

RX

<2 Data Bytes>

Read scratchpad data and verify

TX

Reset

Reset pulse

RX

Presence

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

55h

Issue “Copy Scratchpad” command

TX

A5h

Validation key

TX

Data line is held high for 10ms by the bus master to
provide energy for copying data from the scratchpad to
EEPROM

TX

Reset

Reset pulse

RX

Presence

Presence pulse

TX

CCh

Issue “Skip ROM” command

TX

F0h

Issue “Read Memory” command

TX

00h

Start address = 00h

RX

<32 Bytes>

Read EEPROM data page

TX

Reset

Reset pulse

RX

Presence

Presence pulse