Shop OBEX P1 Docs P2 Docs Learn Events
Memory on BS2P24 — Parallax Forums

Memory on BS2P24

RobbanRobban Posts: 124
edited 2008-01-30 19:49 in BASIC Stamp
hi!

I·am writing a program on my BS2P24 but now the·memory··is full...
and i am still not finished with the program.

What kind of memory/IC should i buy to expand it..
/Robban

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-01-28 09:38
    Robban -

    If by "memory" you're speaking of the program memory where your PBASIC Stamp program is stored, you've probably just used the FIRST 2K of the available program memory. The PBASIC Stamps with extended memory do so by way of program memory banks. They contain 8 x 2K of program memory which is not contiguous. Thus, you have to use it in the same fashion - as separate 2K banks of memory. This may sound like a problem, but it's really not.

    This isn't nearly as difficult as it sounds, since many routines and sub-routines can be isolated from the main program, just as sub-programs might be isolated. There is no "CALL" instruction or directive to reach these other banks. You need to learn how to use the RUN instruction, as that's how you switch banks. Full details can be found in the PBASIC Stamp Reference Manual, or in the PBASIC Help File.

    In addition, there are two more resources of interest regarding RUN and program memory banks. The first is the Nuts and Volts article, Column 87, which can be downloaded from the Parallax web site here:
    http://www.parallax.com/Resources/NutsVoltsColumns/NutsVoltsVolume3/tabid/445/Default.aspx

    The second resource is a tutorial by Dr. Tracey Allen which can be found on his web site here: http://www.emesystems.com/BS2SX.htm

    Those applications notes are suitable for the PBASIC Stamp BS-2SX and above (BS-2P24 inclusive). I hope that gets you back in business.

    Regards,

    Bruce Bates


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There is no pleasure in having nothing to do;
    the fun is in having lots to do, and not doing it!

    Post Edited (Bruce Bates) : 1/28/2008 9:52:09 AM GMT
  • RobbanRobban Posts: 124
    edited 2008-01-29 07:50
    i checked the Pbasic Help and RUN command..

    where it stood:

    Debug "Hello",cr
    run 1

    debug "World",cr
    pause 1000
    run 0

    And it also stands " be sure to download the first program to bank 0 and the second to bank 1
    Question is how do i do this?

    /Robban
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-01-29 08:30
    Robban -

    You need to utilize the $STAMP compiler directive which documentation can also be found in the PBASIC Help File, or in the PBASIC Reference Manual. I would suggest that you download the latter from the Parallax web site.

    Here is a brief example from the PBASIC Help File:
    ' {$STAMP BS2e, file2, file3, ..., file8}

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There is no pleasure in having nothing to do;
    the fun is in having lots to do, and not doing it!
  • RobbanRobban Posts: 124
    edited 2008-01-30 08:35
    hi!
    You asked how i interfaced the OBD2 to BS..

    I use o ELM327 OBD2-Seriell converter and we all know that BS can read seriell signals and then it is just aq little programming,,took for me some time to figure it out but finally it worked after a few questions here on the forum etc...:-D

    /Robban
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-01-30 19:49
    Robban,

    Judging by the lack of information on this subject and the interest expressed by the numerous threads over the years, my guess is others will be interested in any of the code you can post or make available. =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.