At one point I picked up this way of connecting ICSP from a datasheet and I've applied this to all of my circuits.
I've never had issues but I am wondering if I need R1,D1 and C1 unless I want to use Port A5 as an input. If I don't use A5 can I just drop those 3 components and connect MCLR directly to VPP pin of ICSP connector?
Your response brings one more question; if I set MCLR to OFF will it interfere with R1, C1 and D1?
A quick test on breadboard shows that my circuit still works when MCLR is off while using the 3 components but just to make sure.
Sorry, This is still not clear to me, please correct me if I am wrong.
Based on the fact that I always have an ICSP connector hooked up for the purpose of program updates.
If I use Port A5 as I/O I should keep the 3 components and set MCLR = On
If I do not use Port A5 as I/O I should remove the 3 components and set MCLR = Off