I'm using ATMEGA644 in a measurement circuit. I'm providing the primary supply from a battery + boost regulator and if/when the voltage (the one that I have to measure) is available I want the supply to switch to that voltage. Switching will be done using a relay. So I figured I need to hold 5V till the release time of the relay which is nearly 15ms.
I know I'll have to hold 5V at the supply pin of ATMEGA644. I think I can use a capacitor to hold 5V for 15ms but I'm not sure.
My questions are:
- Can I use a capacitor to hold 5V for a current flow of 50mA? If yes, then what will be the circuit and how will I be able to calculate the capacitance?
- If not then what circuit should I consider following? or what other option should I be looking into?