beautypg.com

Rainbow Electronics DS2433 User Manual

Page 10

background image

DS2433

10 of 21

MEMORY FUNCTION EXAMPLE

Example: Write two data bytes to memory location 0026 and 0027. Read entire memory.

MASTER MODE

DATA (LSB FIRST)

COMMENTS

TX

Reset

Reset Pulse (480 - 960

ms)

RX

Presence

Presence Pulse

TX

CCH

Issue Skip ROM Command

TX

0FH

Issue Write Scratchpad command

TX

26H

TA1, beginning offset = 26H

TX

00H

TA2, address = 0026H

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

RX

26H

Read TA1, beginning offset = 26H

RX

00H

Read TA2, address = 0026H

RX

07H

Read E/S, ending offset = 7H, flags = 0H

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

26H

TX

00H

TX

07H

TA1
TA2 AUTHORIZATION

CODE

E/S

TX

Wait 5ms

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 = 0

TX

00H

TA2, address = 0000H

RX

<512 bytes>

Read entire memory

TX

Reset

Reset Pulse

RX

Presence

Presence Pulse, done