Shop OBEX P1 Docs P2 Docs Learn Events
Out of Memory! — Parallax Forums

Out of Memory!

ArchiverArchiver Posts: 46,084
edited 2003-01-22 00:15 in General Discussion
How can I increase the amount of EEPROM on my BS2. I am current out
of room in my program. Is there a different stamp that will give me
room for program space? how much would give me over the BS2?


Al

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 16:03
    You can use a BS2e, BS2sx, BS2p or BS2pe and get 16K of program space as
    eight, 2k blocks. There is an article posted on our web site on a strategy
    for managing a program spread across two or more blocks.

    -- Jon Williams
    -- Parallax


    In a message dated 1/21/2003 7:45:43 AM Central Standard Time,
    brownstamp@y... writes:

    > How can I increase the amount of EEPROM on my BS2. I am current out
    > of room in my program. Is there a different stamp that will give me
    > room for program space? how much would give me over the BS2?



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 16:35
    You can use any of the BS2e, BS2sx, BS2p or BS2pe. They all have
    8 memory banks to 2k EEPROM each.
    The BS2e is the cheapest solution if you just need more space.
    The BS2sx and BS2p are also faster and you may have to adjust timing
    constants in your program - this is not neccessary with the BS2e.
    The BS2pe is a low power consuption version of the BS2p (slower but
    still faster than the BS2).

    There is a method to call subroutines across memory banks and passing
    parameters. See "Cross bank calls" at
    http://www.emesystems.com/BS2SX.htm for details.

    Regards
    Adrian
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 17:57
    Hi Al,

    I highly recommend you spring for the BS2p or the BS2pe if you want
    to make the best use of multiple program banks. Those Stamps have
    the STORE command that gives them the unique capability to READ and
    WRITE data across the banks. That data can be setup parameters,
    logged data, LCD displays or command prompts, script files, or even
    programs transferred from bank to bank (as in from a modem or radio
    link). To repeat--get the BS2p or pe!!

    I have more information about the BS2pe posted at this URL:

    http://www.emesystems.com/bs2pe.htm

    -- best regards
    Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
    mailto:tracy@e...



    >>How can I increase the amount of EEPROM on my BS2. I am current out
    >>of room in my program. Is there a different stamp that will give me
    >>room for program space? how much would give me over the BS2?
    >>Al
    >>
    >
    >You can use any of the BS2e, BS2sx, BS2p or BS2pe. They all have
    >8 memory banks to 2k EEPROM each.
    >The BS2e is the cheapest solution if you just need more space.
    >The BS2sx and BS2p are also faster and you may have to adjust timing
    >constants in your program - this is not neccessary with the BS2e.
    >The BS2pe is a low power consuption version of the BS2p (slower but
    >still faster than the BS2).
    >
    >There is a method to call subroutines across memory banks and passing
    >parameters. See "Cross bank calls" at
    >http://www.emesystems.com/BS2SX.htm for details.
    >
    >Regards
    >Adrian
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 18:07
    Hey,

    I don't want to be cantankerous but I have a question as to why the
    BS2e, BS2sx, BS2p and the BS2pe can allocation 16k of program/data
    space but only in 2k memory blocks? Wouldn't it be more prudent to
    allocate all 16k at once?

    Just curious.

    -Dustin

    --- In basicstamps@yahoogroups.com, jonwms@a... wrote:
    > You can use a BS2e, BS2sx, BS2p or BS2pe and get 16K of program
    space as
    > eight, 2k blocks. There is an article posted on our web site on a
    strategy
    > for managing a program spread across two or more blocks.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    > In a message dated 1/21/2003 7:45:43 AM Central Standard Time,
    > brownstamp@y... writes:
    >
    > > How can I increase the amount of EEPROM on my BS2. I am current
    out
    > > of room in my program. Is there a different stamp that will give
    me
    > > room for program space? how much would give me over the BS2?
    >
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 18:30
    The BS2-family interpreter architecture is limited to 2k blocks. In order to
    keep code compatible between them, we had to maintain this limit. The
    next-generation BASIC Stamp will break this barrier.

    -- Jon Williams
    -- Parallax

    In a message dated 1/21/2003 12:08:41 PM Central Standard Time,
    stamp@d... writes:

    > Hey,
    >
    > I don't want to be cantankerous but I have a question as to why the
    > BS2e, BS2sx, BS2p and the BS2pe can allocation 16k of program/data
    > space but only in 2k memory blocks? Wouldn't it be more prudent to
    > allocate all 16k at once?
    >
    > Just curious.
    >
    > -Dustin



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-21 18:38
    I see. Thanks Jon!

    --- In basicstamps@yahoogroups.com, jonwms@a... wrote:
    > The BS2-family interpreter architecture is limited to 2k blocks.
    In order to
    > keep code compatible between them, we had to maintain this limit.
    The
    > next-generation BASIC Stamp will break this barrier.
    >
    > -- Jon Williams
    > -- Parallax
    >
    > In a message dated 1/21/2003 12:08:41 PM Central Standard Time,
    > stamp@d... writes:
    >
    > > Hey,
    > >
    > > I don't want to be cantankerous but I have a question as to why
    the
    > > BS2e, BS2sx, BS2p and the BS2pe can allocation 16k of
    program/data
    > > space but only in 2k memory blocks? Wouldn't it be more prudent
    to
    > > allocate all 16k at once?
    > >
    > > Just curious.
    > >
    > > -Dustin
    >
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-22 00:15
    Doh! Was that a faux pas? Did you let slip a detail about the new stamp? [noparse]:D[/noparse]

    Original Message
    From: <jonwms@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, January 21, 2003 10:30 AM
    Subject: Re: [noparse][[/noparse]basicstamps] Re: Out of Memory!


    > The BS2-family interpreter architecture is limited to 2k blocks. In order
    to
    > keep code compatible between them, we had to maintain this limit. The
    > next-generation BASIC Stamp will break this barrier.
    >
    > -- Jon Williams
    > -- Parallax
Sign In or Register to comment.