Carl Fredrik Ahl

Saving Data When Turned Off

Recommended Posts

Hi,

I have a Garmin Instinct watch. When I press one of the buttons I come to a place where I can choose to set alarm, timer, stop watch etc. It will remember what I did last and show that when I get to the that place again. For example, if I use the alarm, the alarm will be displayed first. How does the watch save this even when it's turned off? It can't stay in RAM if the watch is turned off right?

Share this post


Link to post
Share on other sites
Posted (edited)

It's stored on some kind of non-volatile memory

https://en.wikipedia.org/wiki/Non-volatile_memory

e.g. Arduino has RTC module. You can read current time of real-time clock (RTC), write it, but can also read and write NVM which is on it. It's not much, just 56 bytes. (the rest (8 bytes) are used by time & date).

 

Edited by Sensei

Share this post


Link to post
Share on other sites

I don't know the internals of that part but some processors have a hibernate mode where some tiny amount of energy maintains the memory, even for years on a tiny battery.

Share this post


Link to post
Share on other sites
13 minutes ago, Christopher said:

I don't know the internals of that part but some processors have a hibernate mode where some tiny amount of energy maintains the memory, even for years on a tiny battery.

You're probably thinking of the cmos battery.

Share this post


Link to post
Share on other sites

Some 'flash' memory will be retained for quite a while ( decades ); even without battery back-up.
( think USB storage sticks  or SSDs )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now