Accessing memory locations (2px)
SN96
Posts: 318
I have finished the book "What's a micro controller" using the Basic Stamp2. I want to get the Basic Stamp 2px next, but I was wondering how do you access each of the eight 2k memory slots when programming? Can someone give me a simple code example demonstrating the usage of say just two slots, going from one slot to the other?
·
Thanks
·
Mike
·
Thanks
·
Mike
Comments
·· The command needed·is the RUN command.· STORE can also be used to affect which banks are used by READ/WRITE commands.· A simple bank switching program would be:
Below is PROG2.bpx
This will alternate between slot 0 and slot 1.· Of course, a·good idea would be to read the Nuts & Volts article at the following link.
http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv87.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Mike