I'm using a 12F675 to control a servo that swings back and forth like a pendulum. When the power goes off and comes back on, the servo resets to limits then starts to work on the narrower range I've specified.
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.
Or is a simpler way just to put stops on the servo until the program in the 675 "get going"? Or some kind of delay for the servo power?
Bookmarks