Shop OBEX P1 Docs P2 Docs Learn Events
Stamp to Stamp synchronous communication — Parallax Forums

Stamp to Stamp synchronous communication

StacyStacy Posts: 2
edited 2006-08-01 20:16 in BASIC Stamp
I am trying to pass data from one stamp to another using the shiftin/shiftout commands (BS2sx to BS2 and back).· I can't seem to get the handshaking/timing right.· Somebody has to have tackled this before.· Help!

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-08-01 01:32
    Post your program/s -- so everybody can pick you them apart.
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-08-01 14:20
    Typically, SERIN/SEROUT is used for this. The "SHIFTIN/SHIFTOUT" commands assume the BS2 is the 'boss' -- so a BS2 can't really use "SHIFTIN" to 'listen' to another BS2.

    And you can run SERIN/SEROUT at 19,200 baud, if speed is an issue.
  • StacyStacy Posts: 2
    edited 2006-08-01 20:16
    I figured out that the Stamp can't behave as a slave for synchronous comms, and took your suggestion on the asynchronous.· A little handshaking and everything is working fine.· Thanks!
Sign In or Register to comment.