In a quick review i saw that you used the variable VTherm in both the channels. Change first one to vRef. You should be getting proper result.
AMux_FastSelect(0); ADC_StartConvert(); ADC_IsEndConversion(ADC_WAIT_FOR_RESULT); vRef = ADC_GetResult32(); ADC_StopConvert();
Thanks for the help, i've changed it but it doesn't give the right results..
Although is talking about P3, doing some changes in the FW (pins used, type of variables, etc), you can use it on P5LP
Note: I'm not sure the version of Creator used in the kit, but sure that's a old version. Download the ISO and extract only the FW (there are other info very useful also) it's not necessary to install the kit
Keep the ADC in single sample mode as you are starting each conversion in firmware. First make sure that you are getting the ADC count for the input you are giving. Is your input is within the range of the ADC ( ±1.024 V (–Input ± Vref)?)
Okay, but i have one more question, as you can see i use a RTD and Thermrisitor. But i can see that the Thermresistor have a getTemperature funciton? should i use that instead on the RTD getTemperatur? Does it make sense to even use a Thermresistor when i use a PT1000? Just some small questions i have.
Okay i've solved the problem by only useing a ADC, and then use two 2k Ohm resistors.
Thanks for the help!