Shop OBEX P1 Docs P2 Docs Learn Events
Bs2pe eeprom — Parallax Forums

Bs2pe eeprom

BJJohnsonBJJohnson Posts: 24
edited 2007-03-14 14:47 in BASIC Stamp
I have a program that uses the DATA commands That stores to the EEPROM in a BS2.· The BS2 2K EEPROM has ram ou tof room.· I took theprogram ·source code and changed the stamp directive to a BS2P which has·8 X 2K EEPROM, but did not give me amy more EEPROM memory as the BS2.· The memory map shows 7FF using both the BS2 directive and the BS2P directive. How do I use the larger EEPROM in the BS2P to store more data than the EEPROM in the BS2.

Thanks Bob

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-14 04:41
    Look in the PBasic manual under the STORE statement and the READ/WRITE statements. The STORE statement switches "slots" to another 2K area in the EEPROM.
  • BJJohnsonBJJohnson Posts: 24
    edited 2007-03-14 14:38
    Thanks Mike,

    Can I use the store command to switch memory location then use the DATA command to write to that memory location?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-14 14:47
    The DATA command is not affected by the STORE statement. The DATA information gets incorporated into your program which, by default, gets loaded into the first 2K. The PBasic compiler/editor has provisions for loading a program into multiple slots. Each slot has to be essentially a separate program, is compiled separately (but as part of a group of slots). You can have a "program" that consists only of DATA statements and that can be loaded into the Stamp along with the actual program in slot zero.

    To read this data or to modify it or write additional data, you would use the STORE/READ/WRITE statements.
Sign In or Register to comment.