One should use at least mosfets, opto-couplers or transistors to electrically protect the circuit from the programming circuit.