Shop OBEX P1 Docs P2 Docs Learn Events
SV: [basicstamps] DS2406/2407 — Parallax Forums

SV: [basicstamps] DS2406/2407

ArchiverArchiver Posts: 46,084
edited 2002-06-05 07:14 in General Discussion
Greetings!

Works GREAT!
(After I changed it from 'Skip ROM' to 'Match ROM' and added ROM ID's so
that I can control more than one :-)

:-)
Trygve


Opprinnelig melding
Fra: S Parkis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=IKn78TXuS9TTSRmxPr4pHVZ9wOeeXIKgsRbKpGnV1VwCTCJUXFO21tC0SASXiC2zpXd1JBCbQuK9fNDl]parkiss@e...[/url
Sendt: 4. juni 2002 00:40
Til: basicstamps@yahoogroups.com
Emne: Re: [noparse][[/noparse]basicstamps] DS2406/2407


Trygve-

The following works for me to toggle PIO-B:

sram VAR BYTE
crc VAR BYTE
i VAR BYTE

again:
OWOUT 0,1,[noparse][[/noparse]$CC,$AA,$07,$00] ' cmd: read sram
OWIN 0,0,[noparse][[/noparse]sram]
DEBUG CR, HEX2 sram
OWOUT 0,1,[noparse][[/noparse]$CC,$55,$07,$00,sram ^ $40]
OWIN 0,0,[noparse][[/noparse]crc]
DEBUG CR,HEX2 crc
OWOUT 0,0,[noparse][[/noparse]$FF] ' serves as programming "pulse"
OWIN 0,0,[noparse][[/noparse]i] ' no apparent significance
PAUSE 5000
GOTO again


The above code was written per the algorithm depicted in the
datasheet's Figure 7, "Memory Function Flow Chart".


Regards,

Steve
Sign In or Register to comment.