Shop OBEX P1 Docs P2 Docs Learn Events
Simulating SerIn Timeout on BS1 — Parallax Forums

Simulating SerIn Timeout on BS1

JackPollackJackPollack Posts: 8
edited 2004-09-29 13:46 in BASIC Stamp
Any ideas on this:

Using BS1 anyway to get out of the SerIn statement if there is no data for x time?

Or

Anyway to see how long it has been since the SerIn statement was invoked?

Thanks

Comments

  • NewzedNewzed Posts: 2,503
    edited 2004-09-29 13:06
    On the BS1, expressions are not allowed with serin so I don't think there is anyway to do that.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Try the Stamp Tester

    http://hometown.aol.com/newzed/index.html
    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-29 13:46
    No, SERIN on the BS1 has no timeout -- it sits until something arrives. You could use an external watchdog circuit (e.g. 555 that resets the BS1), but then your code would be forced to manage the watchdog all the time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.