Jump to content

Saving Data When Turned Off


Carl Fredrik Ahl

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?

Link to comment
Share on other sites

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
Link to comment
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.

Link to comment
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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.