Go Down

Topic: Store a value (Read 358 times) previous topic - next topic

h_vestbo

Is it possible to store a value so that it would be remembered after a powerloss?
Im using a atmega328 chip with a DS1307 RTC

PaulS

Quote
Is it possible to store a value so that it would be remembered after a powerloss?

Sure. That's why there is an EEPROM on board.

h_vestbo

can you tell me how then?

h_vestbo

And if I upload a new software/program to the chip, will the eeprom remain the same or be cleared?

BulletMagnet83

As I understand it, the Flash memory and EEPROM are completely separate entities. So anything you store in EEPROM will stay there until you clear it or overwrite it.

PaulS

Quote
As I understand it, the Flash memory and EEPROM are completely separate entities. So anything you store in EEPROM will stay there until you clear it or overwrite it.

Exactly.

Quote
can you tell me how then?

The time between when you were told that it was possible, and given a big clue, and the time you asked this was insufficient for you to have done any real research, so, no.

Go Up