Hi financecatalyst,
If you can suffer a .7 volt drop, why not just use 2 diodes, one on the battery and 1 on the mains fed supply, the pic will draw from whichever is outputting the highest voltage. No reset. as for the other stuff, sense the mains fed supply with an analog port, or heck even a digital port (if power then main loop) and jump to the disabled routine if not true.
Last edited by Archangel; - 24th December 2010 at 06:18.
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