EEPROM or Variables

inglewoodpete

Senior Member
EEPROM is non-volatile memory. It can the configured (written to) when downloading a program: refer to the EEPROM or DATA command. You can also read or write to it with your program: refer to the READ and WRITE commands. EEPROM values are retained after the power to the PICAXE is turned off.

RAM is volatile memory. Being volatile, the values stored are lost when power is removed. RAM memory can be read and written to in many different ways.

A close read of Manual 1 "Getting Started" and Manual 2 "Commands" it a very good place to start.
 

westaust55

Moderator
As further information to that provided by IWP,
Variables such as b0, b2, w5, etc are some predefined RAM locations which the firmware "know" where to save to or read from.
Commands PEEK and POKE also access RAM including space used for the predefined variables (not accessing all variables on some PICAxE parts such as X1 chips)

With EEPROM ther is no reset of address as such.
The EEPROM related commands allow you to start reading from any memory location.
If you wish to "reset" the value, you could write 255 (or some other value) to EEPROM locations.
 
Top