Rainbow Electronics DS1993 User Manual
Page 13

DS1992/DS1993/DS1994
13 of 23
102199
MEMORY FUNCTION EXAMPLES
Example: Write two data bytes to memory locations 0026h and 0027h (the seventh and eighth bytes of
page 1). Read entire memory.
MASTER MODE
DATA (LSB FIRST)
COMMENTS
TX
Reset
Reset pulse (480-960
µ
s)
RX
Presence
Presence pulse
TX
CCh
Issue “skip ROM” command
TX
0Fh
Issue “write scratchpad command
TX
26h
TA1, beginning offset = 6
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 = 6
RX
00h
Read TA2, address = 0026h
RX
07h
Read E/S, ending offset = 7, flags = 0
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
Reset
Reset pulse
RX
Presence
Presence pulse
TX
CCh
Issue “skip ROM” command
TX
F0h
Issue “read memory command
TX
00h
TA1, beginning offset = 6
TX
00h
TA2, address = 0000h
RX
<128 bytes (DS1992)>
<512 bytes (DS1993)>
<542 bytes (DS1994)>
Read entire memory
TX
Reset
Reset pulse
RX
Presence
Presence pulse, done