Shop OBEX P1 Docs P2 Docs Learn Events
SPSTR modifier — Parallax Forums

SPSTR modifier

ArchiverArchiver Posts: 46,084
edited 2004-04-12 06:02 in General Discussion
ATTN: Tracy Allen

I looked all over the web site and in the 2.0b manual but found nothing. Then
I looked in the Stamp Eidtor (V1.32) help file and found the information on
SPSTR under the SERIN command. Pretty slick stuff.

God I love these Stamps..

Mike B.


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-11 17:25
    Hi All!

    Here is a code fragment that I have been using...

    StringLength CON 16
    charString VAR Byte(StringLength)
    SERIN TapeIn, N1200, 2000, NoTape, [noparse][[/noparse]STR charString\StringLength\"i"]


    I now want to stick the incoming string into scratchpad memory.

    It is my understanding that I should use the SPSTR modifier.

    Where can I find documentation on SPSTR?

    How can I use SPSTR so my string gets padded with NULLs and input
    stops at "i"?

    Thanks!

    Take care,
    Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-11 18:43
    SPSTR is not quite as flexible as STR -- it waits for a specified number
    of bytes, and does not have and ending character like STR that will pad
    unused bytes with NULL characters. If you want to use the Scratchpad
    RAM as a buffer, you'll need to accept fixed-sized blocks of data.

    You can find information about SPSTR in the online help file (let me
    remind everyone that the Help file is the best first place to look for
    information on PBASIC syntax and functions).

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=OY_9GtMmgcw9k0plOTAXUTYiN16G0A601WSKbnsoXdSzDnK24kzfmSoo9CSMtu6po0Eqt0kIspJcYwupvX_kuBQ]franksmith512@y...[/url
    Sent: Sunday, April 11, 2004 11:26 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] SPSTR Modifier


    Hi All!

    Here is a code fragment that I have been using...

    StringLength CON 16
    charString VAR Byte(StringLength)
    SERIN TapeIn, N1200, 2000, NoTape, [noparse][[/noparse]STR charString\StringLength\"i"]


    I now want to stick the incoming string into scratchpad memory.

    It is my understanding that I should use the SPSTR modifier.

    Where can I find documentation on SPSTR?

    How can I use SPSTR so my string gets padded with NULLs and input
    stops at "i"?

    Thanks!

    Take care,
    Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-11 19:25
    Jon,

    Sounds like the SPSTR modifier will work for what I am doing if only
    I could find that online Help file you mentioned.

    I looked at parallax.com support
    http://www.parallax.com/html_pages/tech/index.asp
    and downloads
    http://www.parallax.com/html_pages/downloads/index.asp

    Apparently, I am missing something.

    Is there a link on the Parallax site to the Help file?

    Take care,
    Frank


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > SPSTR is not quite as flexible as STR -- it waits for a specified
    number
    > of bytes, and does not have and ending character like STR that will
    pad
    > unused bytes with NULL characters. If you want to use the
    Scratchpad
    > RAM as a buffer, you'll need to accept fixed-sized blocks of data.
    >
    > You can find information about SPSTR in the online help file (let me
    > remind everyone that the Help file is the best first place to look
    for
    > information on PBASIC syntax and functions).
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: franksmith512 [noparse][[/noparse]mailto:franksmith512@y...]
    > Sent: Sunday, April 11, 2004 11:26 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] SPSTR Modifier
    >
    >
    > Hi All!
    >
    > Here is a code fragment that I have been using...
    >
    > StringLength CON 16
    > charString VAR Byte(StringLength)
    > SERIN TapeIn, N1200, 2000, NoTape, [noparse][[/noparse]STR
    charString\StringLength\"i"]
    >
    >
    > I now want to stick the incoming string into scratchpad memory.
    >
    > It is my understanding that I should use the SPSTR modifier.
    >
    > Where can I find documentation on SPSTR?
    >
    > How can I use SPSTR so my string gets padded with NULLs and input
    > stops at "i"?
    >
    > Thanks!
    >
    > Take care,
    > Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-11 19:34
    "Apparently, I am missing something"

    Yes, you are. The help file is part of the editor. Simply click the tool
    bar and select help and look in the command reference section for the
    commands you desire..

    Mike B..

    Original Message
    From: "franksmith512" <franksmith512@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Sunday, April 11, 2004 2:25 PM
    Subject: [noparse][[/noparse]basicstamps] Re: SPSTR Modifier


    > Jon,
    >
    > Sounds like the SPSTR modifier will work for what I am doing if only
    > I could find that online Help file you mentioned.
    >
    > I looked at parallax.com support
    > http://www.parallax.com/html_pages/tech/index.asp
    > and downloads
    > http://www.parallax.com/html_pages/downloads/index.asp
    >
    > Apparently, I am missing something.
    >
    > Is there a link on the Parallax site to the Help file?
    >
    > Take care,
    > Frank
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > SPSTR is not quite as flexible as STR -- it waits for a specified
    > number
    > > of bytes, and does not have and ending character like STR that will
    > pad
    > > unused bytes with NULL characters. If you want to use the
    > Scratchpad
    > > RAM as a buffer, you'll need to accept fixed-sized blocks of data.
    > >
    > > You can find information about SPSTR in the online help file (let me
    > > remind everyone that the Help file is the best first place to look
    > for
    > > information on PBASIC syntax and functions).
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: franksmith512 [noparse][[/noparse]mailto:franksmith512@y...]
    > > Sent: Sunday, April 11, 2004 11:26 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] SPSTR Modifier
    > >
    > >
    > > Hi All!
    > >
    > > Here is a code fragment that I have been using...
    > >
    > > StringLength CON 16
    > > charString VAR Byte(StringLength)
    > > SERIN TapeIn, N1200, 2000, NoTape, [noparse][[/noparse]STR
    > charString\StringLength\"i"]
    > >
    > >
    > > I now want to stick the incoming string into scratchpad memory.
    > >
    > > It is my understanding that I should use the SPSTR modifier.
    > >
    > > Where can I find documentation on SPSTR?
    > >
    > > How can I use SPSTR so my string gets padded with NULLs and input
    > > stops at "i"?
    > >
    > > Thanks!
    > >
    > > Take care,
    > > Frank
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-11 20:57
    Yes, we've very cleverly hidden the online help for our compiler. [noparse];)[/noparse]
    Just click on the little book icon on the toolbar, or select Help >>
    Contents....

    On the left you'll find a tabbed area. Select search, enter SPSTR in
    the input field, and then click "Show Topics." What you'll see is that
    it can be found in all the serial stream input functions (SERIN,
    DEBUGIN, I2CIN, etc.).

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=To7hVNgoXQt5mSYrbJoMtJyVwkh88gMIt-W0e483oqzjgvCEWPK0y5I_k9w7Mn9auVd8sGEPiZCxOQ_j2pE7Pqgu]franksmith512@y...[/url
    Sent: Sunday, April 11, 2004 1:26 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: SPSTR Modifier


    Jon,

    Sounds like the SPSTR modifier will work for what I am doing if only
    I could find that online Help file you mentioned.

    I looked at parallax.com support
    http://www.parallax.com/html_pages/tech/index.asp
    and downloads
    http://www.parallax.com/html_pages/downloads/index.asp

    Apparently, I am missing something.

    Is there a link on the Parallax site to the Help file?

    Take care,
    Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-12 03:42
    Jon,

    It just never crossed my mind that there was documentation better
    than that found at the parallax site.

    I am in the habit of using Basic Stamp Manual 2.0c.

    Am glad to see more current documentation. Especially because I have
    the BS2pe which isn't covered in the older docs.

    Thanks,
    Frank




    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Yes, we've very cleverly hidden the online help for our compiler. [noparse];)[/noparse]
    > Just click on the little book icon on the toolbar, or select Help >>
    > Contents....
    >
    > On the left you'll find a tabbed area. Select search, enter SPSTR
    in
    > the input field, and then click "Show Topics." What you'll see is
    that
    > it can be found in all the serial stream input functions (SERIN,
    > DEBUGIN, I2CIN, etc.).
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: franksmith512 [noparse][[/noparse]mailto:franksmith512@y...]
    > Sent: Sunday, April 11, 2004 1:26 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: SPSTR Modifier
    >
    >
    > Jon,
    >
    > Sounds like the SPSTR modifier will work for what I am doing if
    only
    > I could find that online Help file you mentioned.
    >
    > I looked at parallax.com support
    > http://www.parallax.com/html_pages/tech/index.asp
    > and downloads
    > http://www.parallax.com/html_pages/downloads/index.asp
    >
    > Apparently, I am missing something.
    >
    > Is there a link on the Parallax site to the Help file?
    >
    > Take care,
    > Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-12 04:47
    We're in the final stages of updating the manual (SPSTR slipped through
    the cracks last time through). The BS2pe is a lower-power version of
    the BS2p and has a couple extra goodies -- you can find those details in
    the Help file and they will also be covered in the manual update. As
    you can imagine, electronic documents are easier to update than our big
    printed manual.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1x3ASIrOTDzxu4h2ZNbVNLin4n9MZG4KRXi3CL4D22D2aP4BJzsZufhOeN5-K-awV0wmdMkQLTf85NCRN2qTw4nl]franksmith512@y...[/url
    Sent: Sunday, April 11, 2004 9:43 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: SPSTR Modifier


    Jon,

    It just never crossed my mind that there was documentation better
    than that found at the parallax site.

    I am in the habit of using Basic Stamp Manual 2.0c.

    Am glad to see more current documentation. Especially because I have
    the BS2pe which isn't covered in the older docs.

    Thanks,
    Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-12 06:02
    Jon,

    Thanks for the info. Hope others read this thread and know to read
    the Help w/in the compiler. It is so nice to see the BS2pe mentioned
    in a manual.

    Thanks for all the help!

    Take care,
    Frank




    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > We're in the final stages of updating the manual (SPSTR slipped
    through
    > the cracks last time through). The BS2pe is a lower-power version
    of
    > the BS2p and has a couple extra goodies -- you can find those
    details in
    > the Help file and they will also be covered in the manual update.
    As
    > you can imagine, electronic documents are easier to update than our
    big
    > printed manual.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: franksmith512 [noparse][[/noparse]mailto:franksmith512@y...]
    > Sent: Sunday, April 11, 2004 9:43 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: SPSTR Modifier
    >
    >
    > Jon,
    >
    > It just never crossed my mind that there was documentation better
    > than that found at the parallax site.
    >
    > I am in the habit of using Basic Stamp Manual 2.0c.
    >
    > Am glad to see more current documentation. Especially because I
    have
    > the BS2pe which isn't covered in the older docs.
    >
    > Thanks,
    > Frank
Sign In or Register to comment.