I have a small board with ATtiny85 and it has a button cell battery socket on it. The battery that I'm using is CR2032 rated 3V. At the same time, while programming it there will be second power source from the USB programmer - that is usually 5V or 3.3V depending on the programmer.
In all cases the buttons cell battery will be connected in parallel with another power source of a higher voltage and that could cause problems.
I'm trying to avoid putting additional switch/jumper to have battery on/off while programming the micro-controller.
Q1: Is the assumption, especially in that particular case, that connecting battery and higher voltage in parallel could case problems correct?
One way to solve that issues is probably to put a diode in series to the battery - schottky will be better, but still there will be some drop on the diode and that could be critical for the ATtiny.
Q2: Are there any, other than using schottky diode, solutions for that issues that do not require too many additional components?
The power consumption of the board is about 15-20 mA.
Please note that the board is very inexpensive and the additional protection circuit that I'm looking for should be with inexpensive components as well.
Thanks in advance.