Quote Originally Posted by Charles Linquis View Post
Your problem lies with the line

__config _INTRC_OSC_NOCLKOUT

The "_INTC_OSC" part means to use the internal oscillator.

You should change this to "_XT_OSC" instead

Well thanks but I did...notice the ";" commenting the "_INTC_OSC" line out.
Changing to "_XT_OSC" has activity at the crystal as well as _HS_OSC did with the same result that pulling the crystal makes no difference, the code runs no matter.