Shop OBEX P1 Docs P2 Docs Learn Events
SERIN time-outs work with wait? — Parallax Forums

SERIN time-outs work with wait?

nick bernardnick bernard Posts: 329
edited 2004-09-21 18:02 in BASIC Stamp
HAIL,
my program seems to get stuck at this line. if no data is present the program does not jump to RETRY. is it because the stamp is already in a WAIT procedure?

SERIN rx,bd,50,RETRY,[noparse]/noparse]WAIT("$APS"), <[i]data array>[/i

if you need more source lmk.

rox on
nick B
··

Comments

  • nick bernardnick bernard Posts: 329
    edited 2004-09-21 17:48
    HAIL,
    the rx pin has to be pulled hi or lo to trigger the timeout, or so it seems.
    can i pull rx either way, or is one way better than the other.
    i suppose that pulling up is better so i could take advantage of open baudmodes. but i should never have to do that b/c my sending unit has 4 isolated drivers.

    in anycase i answered my own question

    rox on
    nick B
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-21 18:02
    The internal timeout timer gets reset any time ANYTHING is received -- so pulling your line one way or the other may be helpful in preventing spurious noise from reseting the timeout incorrectly.

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