I am using the LPCXpresso54018 OM40003 SDK and have used a SDK demo to read analog inputs 1..8 and also the temperature sensor instead of analog input 0. I wanted to read all 9 inputs every 10ms all at the same time using the adcConvSeqConfigStruct.channelMask and calling ADC_GetConvSeqAGlobalConversionResult().
I call ADC_EnableTemperatureSensor(ADC0, true); in the setup.
But I now see in the LPC540xx pdf:
For an accurate measurement of the temperature sensor by the ADC, the ADC must be
configured in single-channel burst mode. The last value of a nine-conversion (or more)
burst provides an accurate result.
Can I read the temperature along with the other analog inputs?
I am currently getting a reading of 640 when reading the 9 analog inputs.
If not then I will have to check the temperature once every so many readings.
Does anyone have an example for the LPC54018 chip to read the temperature?
I did not see one in the SDK.
Also what is the formula to convert the raw ADC temperature to centigrade?
Thanks
David