Hi Armando, you seem to have put you FINGER on the problem.
At first I thought "Of course, because this is a DIGITAL circuit".
My own "HANDS ON experience" has shown this type of mysterious phenomenon to happen when the MCLR pull-up resistor is forgotten.
Maybe, missing or wrong value capacitors on the crystal.
-Adam-
Bookmarks