Shop OBEX P1 Docs P2 Docs Learn Events
using one stamp to modify data on another — Parallax Forums

using one stamp to modify data on another

ArchiverArchiver Posts: 46,084
edited 2003-06-05 13:02 in General Discussion
I have a BS1 and a BS-2SX. Is there any way i can hook them together
so that one can modify data on the other? My BS1 will be monitoring a
pushbutton, and when it is pushed, I want it to increment a counter
on the BS-2SX.

Thanks
--Alex

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-06-04 22:09
    At 08:40 PM 6/4/03 +0000, atl_guy1138 wrote:
    >I have a BS1 and a BS-2SX. Is there any way i can hook them together
    >so that one can modify data on the other? My BS1 will be monitoring a
    >pushbutton, and when it is pushed, I want it to increment a counter
    >on the BS-2SX.
    >
    >Thanks
    >--Alex
    Alex -

    The all too obvious solution may be to use an external counter chip.
    There are 4, 8, 16, and 32 bit counters readily available from many
    chip manufacturers such as Fairchild, Philips, Hitachi and others.
    Beyond 32 bits, the counters can generally be cascaded.

    Hope that gives you one solution.

    Bruce
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-05 12:31
    You can't reach inside the BS2sx and twiddle its registers or EEPROM
    from an external source -- nor would you want to, really, as there is
    a lot of stuff going on you would interfere with if you did it at
    a 'bad' time.

    Having said that, it should be fairly simple to have a counter IN the
    BS1, and have the BS2 ask it for the value, using periodic
    SERIN/SEROUT commands. The BS2 would then update its own counter
    with the value from the BS1.

    You could also have an external EEPROM or SRAM that both could read
    from and write to. The problem in all these scenarios is one
    of 'synchronization'. You don't want the BS1 writing at exactly the
    same time the BS2 is reading, since they use some of the same wires.
    So somehow you must do something to insure the BS2 reads don't
    interfere with the BS1 writes.

    --- In basicstamps@yahoogroups.com, "atl_guy1138" <atl_guy1138@y...>
    wrote:
    > I have a BS1 and a BS-2SX. Is there any way i can hook them
    together
    > so that one can modify data on the other? My BS1 will be monitoring
    a
    > pushbutton, and when it is pushed, I want it to increment a counter
    > on the BS-2SX.
    >
    > Thanks
    > --Alex
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-05 13:02
    Consider a PAK-VII. Then the Stamp can just read the count when it is
    ready.

    Regards,

    Al Williams
    AWC
    http://www.al-williams.com/pak7.htm



    >
    Original Message
    > From: atl_guy1138 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_v_ze8AvrbG7IEgNHYxNTW9U8oKDCSy6Txlvu8li55khfs4vOfm2zS5lMGmO2_ErceGwA1B_xxf-xQbZd4A]atl_guy1138@y...[/url
    > Sent: Wednesday, June 04, 2003 3:41 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] using one stamp to modify data on another
    >
    >
    > I have a BS1 and a BS-2SX. Is there any way i can hook them together
    > so that one can modify data on the other? My BS1 will be monitoring a
    > pushbutton, and when it is pushed, I want it to increment a counter
    > on the BS-2SX.
    >
    > Thanks
    > --Alex
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
Sign In or Register to comment.