I'm trying to make a system that will allow me to set a value say float volume and have it keeping the same last set value after power down and boot up without using EEPROM since it's not that important and it could happen continuously wearing out the EEPROM fast.
aarg:
Really? How often does your volume change? What do you mean, "it's not that important"?
A user can change that "variable" a few times a second and the system is expected to be shut down unexpectedly and needs to remember certain values that were set in the last session.
PaulRB:
Got a ds1307 rtc module? That has some battery backed ram. You could store the value there. Ram does not wear out (as long as the battery is ok).
How about an 8-pin FRAM chip? Pretty small in a workable (hand assemblable) SOIC package,or smaller if you're talented. 10 to 100 trillion write cycles. No need for crystal and pullups, etc that DS1307 needs, or battery. SPI interface for fastest writes, same as writing to external SRAM (vs 3.3mS for internal EEPROM). Non-volatility of EEPROM without needing a battery.
These are 512x8, larger storage sizes are available in the same package too.
Check for 5V operation, some are 3.3V only.
Well NVM thank you the element isn't that important that it deserves some hardware maybe I'll try the EEPROM method anyways and just not care about hard long term use.