I am trying configure the ADC on the board fdrm-skeaz128, the library is SKEAZ1284.h. The pin i am focusing on is PTA0. My problem is, i am giving a DC voltage (currently) 2.7V, but after the conversion the value i am getting is 1.8. Its the same with all voltages less than the reference voltage, when more than ref, i am getting 3.3V. I have tried with all resolutions. Any one plz do give some insights on this. I have given the main and adc init codes below.