How to put a list into BS2P40
Archiver
Posts: 46,084
Is it possible to put a list into the EEPROM memory of BS2P40, with
BS1 you could do this with the instructions read / write, but i've
been told this doesn't work anymore in the BS2. Are there other way's
to do this with BS2 ? Thanks Hans
BS1 you could do this with the instructions read / write, but i've
been told this doesn't work anymore in the BS2. Are there other way's
to do this with BS2 ? Thanks Hans
Comments
the commands READ/WRITE. Note that data storage arnges from address
0 upwards and program storage ranges from 2047 downwards.
See also the stamp manual (v2.0) for the commands DATA,READ & WRITE.
For BS2p (24 & 40) there is a further command STORE to select the
program slot for data storage.
Hope this helps
Adrian
your leg. In the BS2 family, you use DATA statements instead of EEPROM.
Like this:
Name DATA "Jon Williams", CR, 0
Title DATA "Applications Engineer", CR, 0
You can then print this string using DEBUG with this subroutine:
Print_String:
READ eeAddr, char
IF (char = 0) THEN Print_Exit
DEBUG char
eeAddr = eeAddr + 1
GOTO Print_String
Print_Exit:
RETURN
To point at a string, you can do this:
eeAddr = Name
GOSUB Print_String
Note that by terminating the string with zero, CR [noparse][[/noparse]carriage return] can be
embedded in the DATA statement for printing.
And, on the BS2p family, there is a new command called STORE that tells the
BS2p which program bank you're writing to or reading from. This is very
handy for storing long lists of messages in a separate program bank, leaving
more room for your code.
Remember that you can download the manual at no charge -- that will keep you
from being suckered and frustrated by bad information.
-- Jon Williams
-- Applications Engineer, Parallax
In a message dated 12/5/02 1:50:49 AM Central Standard Time,
herrhanz@y... writes:
> Is it possible to put a list into the EEPROM memory of BS2P40, with
> BS1 you could do this with the instructions read / write, but i've
> been told this doesn't work anymore in the BS2. Are there other way's
>
[noparse][[/noparse]Non-text portions of this message have been removed]