The ADC outputs 0xFFF for any positive analog voltage and 0x000 if the ADC pin is connected to AGND on the board.
Issue could be cause if the REFCON register is not explicitly initialized.