Log runtime to EEPROM?



I want to log the total runtime of an application to an EEPROM. But I must
have a secure method to do that if the application get turned of at that
moment when I write the data to the EEPROM.




The runtime is going to be saved to the EEPROM about every 30 minutes or so.



Any suggestions?



I thought of an idea where i save the runtime at two different locations in
the EEPROM + a flag 0 or 1 that indicate where i was able to store the
latest runtime.



.



Relevant Pages

  • Re: store 16bit values in 8bit eeprom
    ... void ReadFromEEPROM ... Perhaps temporarily replace read/write_eepromwith a couple of test functions that store a byte into an array, ... Then this will separate the problems of eeprom access, from any errors in your code. ...
    (comp.lang.c)
  • EEprom addressing
    ... I am unable to write a code for data read/write from EEprom. ... signed char eeprom_read ... // byte operation, clear interrupt flag ... // store bits 0-7 of address ...
    (sci.electronics.design)
  • Re: How to design non blocking device drivers?
    ... store the write's data and report success, ... You can also send your write requests through a queue ... He said he wanted the data written _to the EEPROM_ without blocking. ...
    (comp.arch.embedded)
  • Re: AVR (AT90S2313) EEPROM
    ... I would like to store values at a specific EEPROM address and to have ... I know how to declare a varible that will compile to be ... the STK500 plugin for AVR Studio can burn a specified hex file ...
    (comp.arch.embedded)
  • AVR (AT90S2313) EEPROM
    ... I have been doing a lot of searching and reading, ... I would like to store values at a specific EEPROM address and to have ...
    (comp.arch.embedded)