Hello,
As the title suggests I am having problems with my MCLR pin on a PIC18f4620. I have the MCLR configured as an input pin and have a 10k resistor through a diode to tie it to 5VDC, the diode for ICSP. The problem arrises when the MCLR pin is touched by metal or me the PIC resets even though MCLR is set to input pin. Brown out reset is disabled and virtually all of the other resets are disabled. When I connect the ground lead of the oscilloscope to the ground of the circuit board the problem goes away and I can touch the MCLR pin without a reset. Same idea happens with my ADC pins. The ADC is jumpy without the o-scope ground attached and fine with it. When I power the board from my usb port, no problems, when powered from other 5VDC sources with a 2 wire mains (live and neutral no ground) the problem occurs. My idea is that the ground needs to be tied to earth ground and it will work. The question is should I swap the mains connector with a three pin socket and run the mains ground to the DC ground? When the oscilloscope is attached that is essentially what is happening and making it work. The other question is why would this make it work? It is obvious there is a ground issue with my source but why would connecting the DC ground to mains earth ground change it?
thanks,