Hi, Eugene,
Regarding the two parameters:
g_LpadcCommandConfigStruct.sampleTimeMode = kLPADC_SampleTimeADCK19;
g_LpadcCommandConfigStruct.hardwareAverageMode = kLPADC_HardwareAverageCount32; // + calibration at 32
For the g_LpadcCommandConfigStruct.sampleTimeMode variable, it is dependent on the external signal source impedance, the smaller the signal source impedance is, the small value the g_LpadcCommandConfigStruct.sampleTimeMode variable should take.
For the g_LpadcCommandConfigStruct.hardwareAverageMode variable, the ADC converter samples multiple times and compute an average value.
As you know that the temperature sensor is a high impedance and stable signal, so you should assign big value for the g_LpadcCommandConfigStruct.sampleTimeMode variable, and assign small value for the g_LpadcCommandConfigStruct.hardwareAverageMode variable.
This is my opinion.
Hope it camn help you
BR
XiangJun Rong