Power for programming an AVR chip on PCB
You could use a Diode OR to select the highest voltage supply. You will want to use a schottky diodes as they drop less voltage then regular silicon diodes.







simulate this circuit &ndash; Schematic created using CircuitLab