Shop OBEX P1 Docs P2 Docs Learn Events
Buffer string to scratchpad. BS2sx — Parallax Forums

Buffer string to scratchpad. BS2sx

GoogfanGoogfan Posts: 16
edited 2009-01-14 05:47 in BASIC Stamp
I·cannot figure out how to buffer a 50 character·string from SERIN·to the scratchpad ram. The BS2sx does not have the SPSTR modifier.
Any ideas? examples? help plz confused.gif

Also, i blew out pin 0 on one of my BS2sx'es. Instead of replacing the whole thing [noparse][[/noparse]$50], do you think i could just buy a new interpeter chip and just swap out that?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ugh...

Post Edited (Googfan) : 1/14/2009 5:51:35 AM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-01-14 05:38
    Without the SPSTR modifier, you can't do it directly. You can only input one or a few characters at a time and explicitly copy them to the scratchpad ram. This will be relatively slow. If it's available for your serial datastream, you could use handshaking control lines. This is described in the SERIN chapter in the manual.
  • GoogfanGoogfan Posts: 16
    edited 2009-01-14 05:47
    No, i think that there might be a way using a subprogram and some Adding variables for adresses, im just stuck on how to seperate the string into 1 byte characters i can handle.

    IE: "a dog·walks" to "a", " ", "d", "o"...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ugh...
Sign In or Register to comment.