Re: [moved]how can i add a backup battery to keep my pic microcontroller project work
Hi,
sounds like a simple question...but there are a lot of details to be considered.
the simplest way is to OR the two supplies with a pair of schottky diodes.
* for reduced voltage drop you could use a "ideal diode circuit"
* or you could use a superevisory circuit like MAX795 (that´s the one I have the number in mind, but there are many others...maybe better fit your needs)
Additionally it depends
* supply current and estimated battery backup time
* periferals you want or don´t want to shut down during backup time
* supply voltage range of your microcontroller
* supply voltage and expected supply voltage accuracy during normal operation and during backup
* your software running at the microcontroller during backup
* you battery chemistry and battery health requirements
* your complete circuit
* and a lot of other things.
Klaus