ADCON1=2
This will set all pin to analog, hence why you experiment some problem
Try
ADCON1=7
This will disable all analog stuff.
100K for MLCR is tad high. Something <10K is more standard.
Double check your config fuses setting, INTRC, MCLR and LVP. LVP should be set to off.
Bookmarks