I am working on some control devices, powered by mains only.
NEED to retrieve a few bytes (1-5) of data after a mains down. (so that program could continue from "where it left", and to storage "user settings")
When got in programming to the state, where that was needed, I was surprised, what I found from manual:
-EEPROM -command only exepts CONSTANTS, not the contain of a variable
-POKE only reaches RAM
Is there any way to store a few bytes so, that they are available after reset?
Picaxe is 28X2 (there is places even for several programs, but manual tells no more. It's odd, if there is no access to eeprom)
Suggestions?
I would not like to use a ni-mh backup, because it is not maintenace free (and takes room)
External I2C eeprom could be possible, if there is no "software" solution.
NEED to retrieve a few bytes (1-5) of data after a mains down. (so that program could continue from "where it left", and to storage "user settings")
When got in programming to the state, where that was needed, I was surprised, what I found from manual:
-EEPROM -command only exepts CONSTANTS, not the contain of a variable
-POKE only reaches RAM
Is there any way to store a few bytes so, that they are available after reset?
Picaxe is 28X2 (there is places even for several programs, but manual tells no more. It's odd, if there is no access to eeprom)
Suggestions?
I would not like to use a ni-mh backup, because it is not maintenace free (and takes room)
External I2C eeprom could be possible, if there is no "software" solution.