The ANS3:ANS0 bits (ANSEL) and the TRISIO bits control the operation of the A/D port pins.
Set the corresponding TRISIO bits to set the pin output driver to its high impedance state.
Likewise, set the corresponding ANS bit to disable the digital input buffer.