Save Variables on Power loss
wildpony
Posts: 7
Finally pulled my PPDB out again the last couple weeks.
I'm working on a project where the user would be able to change a couple parameters.
But I want those changes to stay in effect if loss of power happens
Is there a way to save a couple variables that would retain the information after a power loss?
Is there maybe a way to write data to the DAT section so the new value will stay in the EEPROM memory?
(I know in the PLC world, I just set them as Persistent Variables and they stay at the last value when powered back up)
Only need to Bytes worth.
-David
I'm working on a project where the user would be able to change a couple parameters.
But I want those changes to stay in effect if loss of power happens
Is there a way to save a couple variables that would retain the information after a power loss?
Is there maybe a way to write data to the DAT section so the new value will stay in the EEPROM memory?
(I know in the PLC world, I just set them as Persistent Variables and they stay at the last value when powered back up)
Only need to Bytes worth.
-David
Comments
What hardware are you using?
Jim-
But my Memory Storage Management Lightweight can be used too (though it's a bit overkill for 2 bytes)..
Whosoever has tested this chip, please drop some comments.
Look on this post.
FM31L278-RTC/Mem and FlexMem board's.
I run that IC's without any problem - Ues them as BOOT device instead for EEProm's as I reprogram them very often
I just needed it to be saved on the basic EEPROM. This is more of a set and forget type setting. Not one that will be changed often.
That's why I used the DAT strategy: you only have to set the new value (into EE, that is); on the next boot-up the DAT section will contain the last saved value.
I looked up the micronaut website. But I could not find the FRAM / RTC board
Do I have tomatoes on my eyes or is it really not available?
best regards
Stefan
He still have not edited theirs Site to even have all NEW PCB's.
BUT PM him and ask if he have them to sale. As at start it was my PCB not one planed for sale - Not much people shown interest.