Store a value

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

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.

can you tell me how then?

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

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.

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.

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.