This is your code:
ANSEL = %00000000 ' everything is digital
ADCON0 = 0 ' disable ADC
CMCON0 = 7 ' no comparators

This is what it should be:

Ansel = 0 ' disable analog
CMCON = 7 ' no comparators
Al.