Shop OBEX P1 Docs P2 Docs Learn Events
Using BS2pe Scratchpad Memory — Parallax Forums

Using BS2pe Scratchpad Memory

ArchiverArchiver Posts: 46,084
edited 2004-02-13 04:23 in General Discussion
Hey Everyone!

So, the BS2pe has 127 bytes of scratchpad memory.

Can I use part of this space for variables? I wish to pass a sixteen
character array between banks and memory it tight.

Thanks,
Frank

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-02-13 03:51
    You can use the SPRAM for temporary storage. Use PUT to stuff your
    array in the SPRAM, use RUN to jumpt to the next slot, finally GET to
    retrieve your array.

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


    Original Message
    From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GvP4GZLGwzULl5oH_mCAHUQpkiZ12b-7jQF5oC9qKM-RjOjmK4rnPuHcaOsNTarxZAR3OpAKv7LSzJapgPY]franksmith512@y...[/url
    Sent: Thursday, February 12, 2004 8:57 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Using BS2pe Scratchpad Memory


    Hey Everyone!

    So, the BS2pe has 127 bytes of scratchpad memory.

    Can I use part of this space for variables? I wish to pass a sixteen
    character array between banks and memory it tight.

    Thanks,
    Frank
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-13 04:23
    Thanks Jon!



    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > You can use the SPRAM for temporary storage. Use PUT to stuff your
    > array in the SPRAM, use RUN to jumpt to the next slot, finally GET
    to
    > retrieve your array.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: franksmith512 [noparse][[/noparse]mailto:franksmith512@y...]
    > Sent: Thursday, February 12, 2004 8:57 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Using BS2pe Scratchpad Memory
    >
    >
    > Hey Everyone!
    >
    > So, the BS2pe has 127 bytes of scratchpad memory.
    >
    > Can I use part of this space for variables? I wish to pass a
    sixteen
    > character array between banks and memory it tight.
    >
    > Thanks,
    > Frank
Sign In or Register to comment.