Shop OBEX P1 Docs P2 Docs Learn Events
scratch pad this — Parallax Forums

scratch pad this

nick bernardnick bernard Posts: 329
edited 2004-12-01 21:34 in BASIC Stamp
hail you guys,

how can i serially tx 48 bytes stored in scratch pad ram on my bs2p to another bs2p waiting for a string header + 48 bytes....

i know this doesnt work....

SEROUT REM_SER,bd,[noparse][[/noparse]"$APS",SPSTR 48]

any help
nickB

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
League Bowling.... it's not a sport, it's a way of life

Comments

  • K de JongK de Jong Posts: 154
    edited 2004-12-01 20:28
    How about this:

    "your StringHeader"

    FOR n=0 TO 47
    GET n,Value
    SEROUT pin,baud,[noparse][[/noparse]Value]
    NEXT

    Should do the job,

    Klaus
  • nick bernardnick bernard Posts: 329
    edited 2004-12-01 20:31
    hail K de Jong

    do you ever get any trouble nesting serial statements in loops?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    League Bowling.... it's not a sport, it's a way of life
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-01 21:07
    Klaus's suggestion is correct and no, you won't have any problem putting SEROUT in a loop -- we do it all the time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • nick bernardnick bernard Posts: 329
    edited 2004-12-01 21:34
    HAIL JON
    thats awesome thx for the input you guys

    ROX ON!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    League Bowling.... it's not a sport, it's a way of life
Sign In or Register to comment.