Quote Originally Posted by queenidog View Post
... I want to use the EEPROM to save the values when the power goes off. (This servo is part of a really big project that gets turned on or off by one main switch).

How do I detect the impending power loss and trigger the EEPROM to save the values? Then on power restoration I read the values.
I do not believe this is possible, unless there is some other indication from the system of an impending power loss (or I misunderstand the nature of your inquiry). Two ideas come to mind, either use an alternate power supply to power the PIC after shut-down and "detect" the loss of main power to activate the write or, write the values routinely in the main program and start from them on power up each time.