Shop OBEX P1 Docs P2 Docs Learn Events
BS2 SERIN & SEROUT at the same time — Parallax Forums

BS2 SERIN & SEROUT at the same time

edited 2004-10-06 23:09 in BASIC Stamp
hi,

I'm wondering is there any way to program and wiring (add some more parts) to get the SERIN and SEROUT working at the same time? As far as I know the RS232 communication is asynchronised, is there anyone a USB component/ driver to BS, so it can communication in 2-way?

I would like to have sensors and motors working at the same time.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-06 22:47
    SERIN and SEROUT cannot work at the same time. The BASIC Stamp is single-threaded. What you could do is attach a external serial buffer to hold your serial input stream until SEROUT is finished.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • BSBob24BSBob24 Posts: 3
    edited 2004-10-06 23:09
    You can also have a second BASIC Stamp attached to the same serial line (costly), or (as the guy above said) attach a buffer and run it at the same time some how. The BASIC Stamp like other CPUs or MCUs execute one instruction at a time.
Sign In or Register to comment.