umup said:You need to detect moment when voltage on voltage regulator input begins to fall. Use controller's internal ADC or comparator - connect its input to input voltage through resistive divider. And use input filtering capacitor with capacitance enough to supply microcontroller while saving data to EEPROM
As will be described in more detail later, if the designer
has any control over certain environmental or operation
conditions he should observe the following basic
guidelines:
• Keep the application temperature as low as
possible
• Keep the application voltage (or the V
CC
voltage
on the EEPROM-based device) as low as
possible
• Write as few bytes as possible
• Use page write features wherever possible
• Write data as infrequently as possible
With these basic guidelines applied to the fullest
extent, the endurance of EEPROM-based devices can
be extended well beyond the guaranteed minimum
endurance. Under certain very specific conditions,
Microchip Serial EEPROMs have been shown to last
for well over 100 million cycles.
3v0
This can be handled and it extends the EEPROM life too. Keep two or more copies of data in EEPROM. When an update is done it overwrites the oldest copy. An update is handled like a database transaction. The last thing you write is a marker that indicates it is valid.umup said:3v0
What if power drops down in the process of EEPROM writing. Data will be invalid...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?