Shop OBEX P1 Docs P2 Docs Learn Events
Write command data doesn't appear in memory map!? — Parallax Forums

Write command data doesn't appear in memory map!?

cbjcbj Posts: 1
edited 2004-10-18 12:58 in BASIC Stamp
Ok I am running ver2.1 of the editor and have a BS2 stamp kit.

I run this code snippet

' {$STAMP BS2}
·
out VAR Byte
·
WRITE 0,"L"
READ 0,out
DEBUG out


When I open the memory map nothing is displayed in the 0 memory position, but the code works (ie there·actually is something at·position·0)·because I get an L in the debug window.

If I run this code snippet

' {$STAMP BS2}
·
out VAR Byte
·
DATA @0,"M"
READ 0, out
DEBUG out


I open the memory map and M is written in the·0 memory position, and it appears in the debug window.

My (dumb?) question:· Both commands write data to the EEPROM, why is it only visible in the memory map when the DATA command is used?

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-18 12:58
    Memory Map will show your EEPROM as it will be downloaded; it does not show it live after WRITE. You can use DEBUG to examine EEPROM while the program is running.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.