Welcome to the forum.

In your case, refer to datasheet section 17-2
if you set BIT3-0 as %1111... AN0 will be analog ;( not what you want i guess.

try ADCON1 = 7