This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NVRAM Howto...

I have never used external RAM before (beleive it or not :-o ) .
Now I am using an NVRAM from Dallas so that in case of
power failure the value of some variables is retained.
My question is how do I declare the 'Non Volatile External' variable
and how do I retreive the previous (pre-power fail) value ?

Parents
  • Memory is not initialised by the compiler. You must explicitly initialise it. If you use the startup code, you can set it up to clear any memory area you want.

    Also, unless you MUST specify addresses for RAM, why not let the linker decide where in memory to put variables? This is much easier on the developer as well as avoiding conflicts between modules.

Reply
  • Memory is not initialised by the compiler. You must explicitly initialise it. If you use the startup code, you can set it up to clear any memory area you want.

    Also, unless you MUST specify addresses for RAM, why not let the linker decide where in memory to put variables? This is much easier on the developer as well as avoiding conflicts between modules.

Children