Re: need eeprom to save values

Originally Posted by
Amoque
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.
You isolate the PIC power from the power supply with a diode. Place a large cap on the PIC side of that diode to power the PIC when the power fails, and interrupt the PIC & write the eeprom when power failure is sensed on the other side of the diode. Very possible. HTH
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks