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
  • Hi!

    - Declare your "nonvolatile"-variables to be placed into the xdata-space

    - do not use any initial-values

    - use a function to initialize these variables on demand (first time the system is started, but not on power-up)

    - the rest will
    Andy

Reply
  • Hi!

    - Declare your "nonvolatile"-variables to be placed into the xdata-space

    - do not use any initial-values

    - use a function to initialize these variables on demand (first time the system is started, but not on power-up)

    - the rest will
    Andy

Children