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

ABout Storing data in Nonvoliate ram

I am using the DS1643
which contain both non voliate ram and a RTC.

also, in my project, i use the timer 1 interrupt to counter the machine operation time:
unsigned char second, min, hour;

i use
XBYTE[0x1ffe0]=second;
XBYTE[0x1ffe1]=min;
XBYTE[0x1ffe2]=hour;

then i have a function to recall the NVram data to the counter variavle.

it is not problem for the reset the system, and all data can be keep.

however, when i remove the power supply,
all data are going wrong.

How can i solve this problem?
any programming skills needed for using NVRAM?

Pls help!!!!!!!!!!!!!!!!
many thx!!!!!!!!!!!!!!

Parents Reply Children
No data