Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe EEPROM — Parallax Forums

BS2pe EEPROM

NewzedNewzed Posts: 2,503
edited 2005-11-10 00:17 in BASIC Stamp
If I write:

STORE 8
WRITE SW1, 4, 7, A,C
can I access this data by writing:

STORE 8
FOR X = 0 TO 3
READ SW1 + x, a(x)
NEXT

Sid

Comments

  • Tracy AllenTracy Allen Posts: 6,658
    edited 2005-11-09 21:15
    Hi Sid,
    Yes, that should work fine. Provided of course that the variables are defined.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • NewzedNewzed Posts: 2,503
    edited 2005-11-09 21:42
    Thanks, Tracy.· Another question - what is the max distance for a 1-wire interface, particularly the DS2405.· I need to store the IDs of the chips, which·on a lengthy bus, into the BS2pe EEPROM.

    Sid
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2005-11-10 00:17
    The subject of maximum distance for one-wire has been beaten upon several times on the forum, so you should be able to track down the threads that go into it in depth. Basically, the longer the connections, the lower the resistance of the pullup needed, in order to meet the speed requirements of the buss in relation to the wiring capacitance (which slows down the signal edges). There are active boosters that allow longer lines to be driven, and people have managed some great hacks to make it work out to the weather instruments on the roof. But one-wire is not by design a long distance protocol.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
Sign In or Register to comment.