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