Write command data doesn't appear in memory map!?
cbj
Posts: 1
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?
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 Williams
Applications Engineer, Parallax
Dallas Office