write pic eeprom at power fail
hi
use Back up battery that will be connected to PIC IC when power failure condition is detected. The swiching to the battery should be made electronically by using a simple diode. The MC should always monitor the supply voltage as digital input. If it founds zeror while it is powerd ON, then it is working with the battery as the ct supply. In this cas eit shoould save what ever needed and to turn OFF, it could disconnect the battery path by using transistor.
Kindly F.B. if you have any questions
Thanks
Added after 1 minutes:
I forget
Kindly, if this worked with you don't forget tp press the "helped me" button to increase my points
Thanks