Confusion is good
I missed the second 2 on one of your variables.... ooppsss. You do have two separate.
ADCON1 is used to set the pins to be either digital or analog and if and external VREF is used. The data sheet gives the different options, sometimes the option you want is not an option...
So no switching after it is set. You have to decide on the pins ahead of time.
Bookmarks