Did you turn the analog stuff on PORTA off?
http://www.picbasic.co.uk/forum/showthread.php?t=561