Building a unit that tied to vehicle ignition so we don't know when it will be powered down but need to store at most 5 values to be retreated on power up. Since flash is limited to 20,000 to 50,000 flashes, we will limit our saves based on change in value, time or something else ingenious. The question is, if we are writing to flash when the power go down is there an issue beside just losing that save and possibly what was saved earlier? I saw an earlier post that said writing during a power down can destroy the flash. If there is no way around using the flash safely, any other suggestions? I've considered I2C EEPROM, SPI EEPROM, etc. Anybody else solved this type of problem before?