Thanks for the reply Earl,i did the calculation thinking the adc is a 15 bit adc(2^15 = 32768),i corrected it now,the mentioned link helped a lot.
It is showing correct readings now.
Here's the function:
float uc_temp()
{
float V_temp = 0;
float V_temp_25 = 0.719;
float slope_m = 0.00162; //1/m = 617.283
temp_uc_adc3_StartSingleMeasurement(core_temp);
while (!temp_uc_adc3_GetMeasurementCompleteStatus(core_temp)) {}; /* Wait for conversion completeness */
temp_uc_adc3_GetMeasuredValues(core_temp, (LDD_TData *) (&cpu_temp_adc_count)); /* Read measured values */
//convert count to volts
V_temp = (3.3/65536) * cpu_temp_adc_count;
//temp at 25c in volts
//V_temp_25 = 0.719;
//slope in volts
//slope_m = 0.00175;
//return 25 - ((V_temp - V_temp_25)/slope_m);
return 25 - ((V_temp - V_temp_25)*617.28F);
}