Nope, doesn't work that way.
You can only have the analog ports the way the datasheet for the 18F4620 shows in DS39626B, page 224, under the heading Register 19-2.
As you'll see, ADCON only has 8 bits. ADCON1.12...not enough bits in ADCON for that.
Basically, you have to start at AN0 and add AN1, then AN2, then AN3, and so on until you get enough analog ports.
Bookmarks