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
  • It sounds like your entire XDATA is going to be non-volatile, so anything you define as xdata will be non-volatile!

    "how do I retreive the previous (pre-power fail) value?"

    You just read it and, because it's non-volatile, it will still have its previous value!

Reply
  • It sounds like your entire XDATA is going to be non-volatile, so anything you define as xdata will be non-volatile!

    "how do I retreive the previous (pre-power fail) value?"

    You just read it and, because it's non-volatile, it will still have its previous value!

Children
No data