Quote Originally Posted by scalerobotics View Post
Its a little hard for me to follow your "diagram", but it doesn't look like your resonator is grounded to me..... The center pin should go to ground, no?

Also try trisb command.

Check out:
http://www.picbasic.co.uk/forum/showthread.php?t=7906

Walter
Looks like the PIC is not hooked up to ground at all, notice the center pin of the resonator goes to the PICs ground leg but I see no ground wire there.