I want to know the easiest way to program PIC on board.Yes i know ICSP.The high voltage applied to MCLR pin directly goes to VDD of my circuit doesnt it?.How can i prevent this?
Why is your MCLR pin connected directly to Vdd rail ? We usually use a resistor (10 kohm) between MCLR and Vdd, so when you apply 13V to MCLR to enter the programming mode, the resistor solves the problem.
I use a diode for this purpose (and a resistor in series). Anode towards Vdd, cathode to MCLR. During normal operation the diode is open, providing Vdd to MCLR. When programming MCLR get the ~13v but the diode is closed.
The hookup with both diode and resistor for some popular PICs is shown in detail on this document (download it from my site, Inchworm Quick Project)
**broken link removed**