Hello, you need to configure the ADCON1 register, refer to datasheet page 228.