As I suspected, it's an incorrect value you wrote to one register.
You are clearing CMCON, but the correct value to set all inputs as digital is to write 0x07 to CMCON.
See example 10-6 in the datasheet, and figure 20-1
Users browsing this forum: No registered users and 16 guests