Twido Problem w/backing up and restoring %MW's

G

Thread Starter

G Rees

I have been having trouble trying to backup the %MW registers on the internal Twido 32kb EEPROM, and restoring them if the registers have been cleared during a code download.

I have tried to use the %SW96 bits to schedule the backup if the %MW's in RAM differ from the %MW's on the EEPROM, but it has not worked so far. Can someone with more experience help me on this issue.

Thanks,
 
Hi

I have done this just following the help file. I have attached the file for your attention. If you need any help with this email me on

[email protected]

John

Data (%MWs) Backup
Here are the steps for backing up data (memory words) into the EEPROM:
Step Action

1 For this to work the following must be true:
A valid program in RAM (%SW96:X6=1).
The same valid program already backed up into the EEPROM.
Memory words configured in the program.

2 Set %SW97 to the length of the memory words to be saved.
Note: Length cannot exceed the configured memory word length, and it must be greater than 0 but not greater than 512.

3 Set %SW96:X0 to 1.


--------------------------------------------------------------------------------

Data (%MWs) Restore
Restore %MWs manually by setting system bit %S95 to 1.
For this to work the following must be true:
A valid backup application is present in the EEPROM
The application in RAM matches the backup application in EEPROM
The backup memory words are valid
 
Do you need to force the %MW backup first?

And can you use the %SW96:x10 to compare the EEPROM %mw values to the RAM?

Thanks,
Greg
 
you will need to have data words previously stored, that is, %SW97is not 0. you can use the %SW96:X10 to compare the EEPROM data word values to the ram as illustrated in the help manual.

cheers.

Lin
 
Top