I would like to add battery backup for the RTCC on a P18F27J13. What I am trying to figure is a way for the battery power not to run the pic when normal power is applied.
One though I had was to have a mosfet switch that would be normally held off during normal operation. Yhe pic would use the HLVD interrupt to turn the battery on when the power drops.
Would there be enough time to sitch on the osfet or would the rtcc already lode its time in the period it takes to turn on the battery.
Is there a better way to do this?
I saw one post that suggests using VDCore (which I have) to power the pic from the battery but not sure I understood how even after reading the data sheet.
One though I had was to have a mosfet switch that would be normally held off during normal operation. Yhe pic would use the HLVD interrupt to turn the battery on when the power drops.
Would there be enough time to sitch on the osfet or would the rtcc already lode its time in the period it takes to turn on the battery.
Is there a better way to do this?
I saw one post that suggests using VDCore (which I have) to power the pic from the battery but not sure I understood how even after reading the data sheet.