Hi Carlos
The value observed from the ADC R register for the Bandgap channel is different in 2 different situations.
Here i am using 12 bit resolution.
When we enable only the bandgap channel(Channel 23) the value of the ADC R can be observed as 385.
When we enable both the temperature sensor (Channel 22) and the bandgap (Channel 23) the value of
the ADC R register for the bandgap is 1223. Why is there 2 different values according to the number of channels enabled?
We observed ADCRbg as 1223 and ADCRtemp as 1110.
According to calculation from the AN3031 document
Vdd = (4095*1.16*10)/1223 = 38.8
ADCRtemp @ 25 = (4095*1.396*10)/38.8 = 1473
Hot slope = (4095 *0.003638*10*100)/38.8 = 383
Temp = 25 - (1110-1473)/383 = 25.95 ~= 26 Celcius
We have an external NTC temperature sensor mounted on the back side of the PCB below the controller. The value calculated is 31 Celcius. There is a difference in the temperature values.
Please provide with a solution.
Regards
Kiran