Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe: where is the excess memory for data logging?! — Parallax Forums

BS2pe: where is the excess memory for data logging?!

farsadfarsad Posts: 27
edited 2008-06-11 01:28 in BASIC Stamp
Hi,

AN OTHER PROBLEM !!

I have ordered BS2pe for Data Logging and a bigger area for programming but when I use Memory Map window to see how much space I have, the memory space is equal to my old BS2 (EEPROM = 7F0F bytes). how it can be? based on my (little!) knowledge, I should have 16 times more memory now. but i can't find it.

please help me with that.

thank you guys,

Ali

Comments

  • Tracy AllenTracy Allen Posts: 6,664
    edited 2008-06-09 17:00
    The 32k bytes of memory is segmented into 16 "slots" of 2k-bytes each. ($8000, top address-$7fff). The first 8 of those slots on the BS2pe can be used for either programs or data, and the top 8 slots are for data only.

    To access that additional program space, you will need to read up on the RUN command in the manual. Plan to divide your program up into pieces.

    All 16 slots can hold data, for example, for your data logging. The STORE command is used to point at the slot you want to use for data logging, using the WRITE and READ commands to address bytes 0 to 2047 within each slot. For example, the following program makes an exact copy of the contents of slot 0 into slot 15:
    char var byte
      FOR index=0 to 2047
        STORE 0
        READ index, char
        STORE 15
        WRITE index, char   
      NEXT
      STORE 0   ' point to slot 0
    



    Also read up on the scratchpad RAM, with is common to all of the slots, and is accessed with GET and PUT.

    To use additional slots for a project, you create a new program and then put a special directive in the slot 0 program:
    ' {$STAMP BS2pe, myslot1program.bpe, ...} with entries to associate up to 7 slot programs with the project.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • farsadfarsad Posts: 27
    edited 2008-06-09 23:21
    Dear Tracy,

    thank you for your very useful comments.

    your great!
  • ercoerco Posts: 20,259
    edited 2008-06-11 01:28
    More info on this at http://www.parallax.com/dl/docs/cols/nv/vol2/col/nv71.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.