I am running the code found in TivaWare\examples\peripherals\adc\temperature.sensor.c with appropriate modifications for e.g. clock configuration and using the conversion formula from the datasheet:
TEMP = 147.5 - ((75 * (VREFP - VREFN) × ADCCODE) / 4096)
Which translates into:
ui32TempValueC = ( (1475 * 4096) - (2250 * pui32ADC0Value[0]) ) / 40960;
Which is different from the Stellaris, where it was 10 bit ADC instead of 12, so a factor of 1024 instead of 4096.
The result I get is between 42-46.Maybe I am wrongly assuming that Vrefp - Vrefn is 3 as it was on the Stellaris?
Please advise.