This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-MSPM0L1306: LP-MSPM0L1306 Internal temp sensor

Part Number: LP-MSPM0L1306
Other Parts Discussed in Thread: MSPM0L1306

Dear Sir or Madam!

I have such a problem, that the internal temperature sensor is very noisy when there is a delay between two measurements. If there is not any delay, the measurements are not noisy at all. The ADC monitors 4 channel using external reference, the rest 3 channel are good, but the temperature channel is not.  I tried many settings of ADC. but the problem is present. 

I tried the followings:

-Different Clock sources/divide values/f range values and different sampling times(greater than 6.1us)

-Disabling Temperature sensor by selecting another channel for that conversion memory , and enabling again by selecting channel 11

-Using repeat mode causing more floating result

-relocating DL_ADC12_enableConversions function, and usage of DL_ADC12_disableConversions(ADC0);

I attach an example code for being more understandable.

Example 1: when the temperature sensor is not noisy:


int main(){

initSystem();

initAdc();

while(true){

makeMeasurement();

}

}

Example 2: when the temperature sensor is noisy (often adc measures too low or zero value)

int main(){

initSystem();

initAdc();

while(true){

makeMeasurement();

someDelay();

}

}

someDelay could be delay_cycles() or for(int i=0;i<10000;i++) or any timer polled boolean value(while(!value);)

initAdc(){

DL_GPIO_reset(GPIOA);
DL_ADC12_reset(ADC12_0_INST);
DL_VREF_reset(VREF);

DL_GPIO_enablePower(GPIOA);
DL_ADC12_enablePower(ADC12_0_INST);
DL_VREF_enablePower(VREF);

DL_ADC12_ClockConfig gADC12_0ClockConfig = {
.clockSel = DL_ADC12_CLOCK_ULPCLK,
.divideRatio = DL_ADC12_CLOCK_DIVIDE_1,
.freqRange = DL_ADC12_CLOCK_FREQ_RANGE_24_TO_32
};

static const DL_VREF_Config gVREFConfig = {
.vrefEnable = DL_VREF_ENABLE_DISABLE,
.bufConfig = DL_VREF_BUFCONFIG_OUTPUT_2_5V,
.shModeEnable = DL_VREF_SHMODE_DISABLE,
.holdCycleCount = DL_VREF_HOLD_MIN,
.shCycleCount = DL_VREF_SH_MIN,
};

static const DL_VREF_ClockConfig gVREFClockConfig = {
.clockSel = DL_VREF_CLOCK_BUSCLK,
.divideRatio = DL_VREF_CLOCK_DIVIDE_8,
};

DL_ADC12_initSeqSample(ADC0,
DL_ADC12_REPEAT_MODE_DISABLED, 
DL_ADC12_SAMPLING_SOURCE_AUTO,
DL_ADC12_TRIG_SRC_SOFTWARE, 
DL_ADC12_SEQ_START_ADDR_00, DL_ADC12_SEQ_END_ADDR_03,
DL_ADC12_SAMP_CONV_RES_12_BIT,
DL_ADC12_SAMP_CONV_DATA_FORMAT_UNSIGNED);

DL_ADC12_configConversionMem(ADC0,
DL_ADC12_MEM_IDX_0,
DL_ADC12_INPUT_CHAN_11,
DL_ADC12_REFERENCE_VOLTAGE_EXTREF, //3.3V
DL_ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
DL_ADC12_AVERAGING_MODE_ENABLED,
DL_ADC12_BURN_OUT_SOURCE_DISABLED,
DL_ADC12_TRIGGER_MODE_AUTO_NEXT,
DL_ADC12_WINDOWS_COMP_MODE_DISABLED);

DL_ADC12_setPowerDownMode(ADC0, DL_ADC12_POWER_DOWN_MODE_AUTO);
DL_ADC12_configHwAverage(ADC0, DL_ADC12_HW_AVG_NUM_ACC_8, DL_ADC12_HW_AVG_DEN_DIV_BY_8);

DL_ADC12_setSampleTime0(ADC0, 240); //tried longer samp time 

DL_ADC12_clearInterruptStatus(ADC0, DL_ADC12_INTERRUPT_MEM3_RESULT_LOADED);
DL_ADC12_enableInterrupt(ADC0, DL_ADC12_INTERRUPT_MEM3_RESULT_LOADED);

DL_VREF_setClockConfig(VREF,
(DL_VREF_ClockConfig *)&gVREFClockConfig);
DL_VREF_configReference(VREF,
(DL_VREF_Config *)&gVREFConfig);

while (DL_VREF_CTL1_READY_NOTRDY == DL_VREF_getStatus(VREF));

NVIC_EnableIRQ(ADC0_INT_IRQn);
DL_ADC12_enableConversions(ADC0);
}

initSystem(){

DL_SYSCTL_setSYSOSCFreq(DL_SYSCTL_SYSOSC_FREQ_BASE);
DL_SYSCTL_setMCLKDivider(DL_SYSCTL_MCLK_DIVIDER_DISABLE);
DL_SYSCTL_setPowerPolicyRUN0SLEEP0// i tried also DL_SYSCTL_setPowerPolicyRUN1SLEEP1();
DL_SYSCTL_setBORThreshold(DL_SYSCTL_BOR_THRESHOLD_LEVEL_0);

}

makeMeasurement(){


DL_ADC12_startConversion(ADC0);

while(!adcready);

adcready=false;
filteredAdcValue =filteredAdcValue*0.99+0.01*DL_ADC12_getMemResult(ADC0, DL_ADC12_MEM_IDX_0);
float V_Sample = (filteredAdcValue - 0.5) * 3.3 / 4096.0;
float V_Trim = (factoryTrimValue - 0.5) * 3.3 / 4096.0;
float T_Sample = ((1.0 / -0.002044) * (V_Sample - V_Trim) + 30.0);

DL_ADC12_enableConversions(ADC0);

}

ADC0_IRQHandler()
{
switch (DL_ADC12_getPendingInterrupt(ADC0))
{

case DL_ADC12_IIDX_MEM3_RESULT_LOADED:
{
adcready=true;
break;
}

default:
break;

}

}

Thank you in advance for helping!

  • Hello Daniel,

    Are you using the production or preproduction silicon? The preproduction silicon does not have the temperature sensor active, whereas the production silicon will.

    Regards,

    Luke

  • Hello Luke,

    Thank you for replying soon! I use the PG2.1 variant, the production silicon. 

    Regards,

    Daniel

  • Hi Daniel,

    Are you saying that you are using PG2 currently or you will test this on PG2?

    I have taken one of the ADC12_single_conversion example and added 3 more adc readings (PA27, PA26, PA25) and had the temperature sensor on the first reading. I had the other ADC channels hooked up to a resistor divider using the 3.3v pin. Below are my results. adcResult[0] was the temp sensor and the other were the other input pins.

    Regards,

    Luke

  • Hi Luke,

    I use currently the PG 2.1 version of the microcontroller. My problem is that, there are good values from the temperature sensor, but sometimes there are very low value - even 0 - measured on this channel causing high temperature floating.

    Regards,
    Daniel

  • Hi Daniel,

    When you were changing the ADC settings did you see any effect on either the value or how often the low values had appeared?

    Getting a 0 reading alludes to a missed sample and a low value would either be a floating pin or the sampling speed was too fast. I would expect a higher sampling time would improve your readings. Can you change to a really long sample time (like 2 milliseconds at 32MHz clock speed) and let me know if this eliminates or reduces the 0/low readings?

    Regards,

    Luke

  • Hi Luke,

    I tried the suggested settings, but the problem is still present. The proper adc value is about 803, but some times it goes to 700 or below. 

    Regards,
    Daniel

  • Hi Luke,

    The measurements are good, if there is not any delay between two measurements. But if I put some delay, it goes wrong. 

    Regards,
    Daniel

  • Hi Daniel,

    Do you mean delay between 2 sequences or the delay between 2 single readings? Would you be able to send me the zip file so I can replicate this?

    Regards,

    Luke

  • Hi Luke,

    Between 2 sequences.

    First of all, I modify the "adc12_single_conversion_LP_MSPM0L1306_nortos_ticlang" project from mspm0_sdk_1_00_00_04. I attach a zip file, which contains the modified project. I measure 4 channel, the third is the temperature sensor.

    Secondly,  If the "delay_cycles(32*1000);" is commented out, the measurements are more stable. When this line is not commented out, the measurements are more noisy. Why this delay can cause this kind of effect in the measurement?

    Moreover, the goal is that, that the running time of a measurement of these 4 channels should be not grater than 1 ms altogether, but smaller running time should be better.

    Thirdly, I would like to share three additional problem connected to this topic, which are the absence of factory trim value, using higher hardware averaging cause higher disturbances in temperature monitoring and the using the 0 conversion memory for measuring the  temperature sensor is more stable. On the on hand, due to the absence of factory trim value, a picked value must be used. When this value will be in the microcontroller? On the other hand, I noticed that sometimes - but not every time- when not the conversion memory 0 is used for storing the value of the temperature sensor, the data are more noisy. 

    Furthermore, I monitored the adc values using CC Studio 12.2 version in  such a way, that I placed a breakpont, when there should be a valid adc measurement, and I modified the properties of the breakpoint for writing the address of the adc variable(float) to a file. I attached both of the files( with delay and without delay.txt). If the delay is placed( in withdelay.txt) there are lower values than 815 causing high temperature floating. 

    Nevertheless, I have to change a new workplace, since the former had broken down ( CCS detected always a low JVM heap, and collapses many times). The xmx value had been modified with no success. In the prior workplace, the error was greater than in the new one, but still persist. I monitored this value, and with using the old workplace, the error was more significantly, than with the new workplace.

    To epitomize, I would like to rise some cardinal questions:

    (1) Is there a chance, that there is no any error with the temperature sensor, but the CCS 12.2V or the debugger has, and they show it in the debugger window and write in file incorrectly?

    (2) I used this workplace for months, and from one moment to next, CCS became more slow and detect alway low JVM heap, and dozens of error of the studio. Is there a chance, that this workplace can affect CCS studio debugger(because if I am not mistaken the workplace contains some settings of the IDE)?

    (3) When will  "factory trimmed value for the internal temperature sensor" be available in the microcontroller?

    (4) There will be other versions of the microcontroller after PG2.1 or it is finished?

    (5) When repeat mode or higher hw averaging is used, the internal temperature sensore become more noisy. How these two settings can affect the stability of the measurement?

    (6) Sometimes, if not the conversion memory 0 is used to temp sensor, it became more noisy. Why does it happen?

    Thank you for helping in advance!


    Regards,
    Daniel

    Attachments: 

     

    1651 4 20000ff0 0 4 0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    
    1651 4 20000ff0 0 4 0
    814.0
    813.0
    813.0
    807.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    811.0
    813.0
    813.0
    813.0
    814.0
    813.0
    809.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    766.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    809.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    815.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    731.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    801.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    804.0
    814.0
    618.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    804.0
    813.0
    814.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    809.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    735.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    585.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    806.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    785.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    799.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    682.0
    813.0
    814.0
    813.0
    765.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    792.0
    813.0
    814.0
    807.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    797.0
    813.0
    813.0
    663.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    809.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    807.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    795.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    815.0
    808.0
    814.0
    812.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    765.0
    768.0
    814.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    799.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    793.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    808.0
    813.0
    813.0
    813.0
    813.0
    797.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    801.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    802.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    733.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    791.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    815.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    803.0
    813.0
    813.0
    813.0
    810.0
    813.0
    813.0
    813.0
    813.0
    649.0
    814.0
    813.0
    813.0
    813.0
    809.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    805.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    812.0
    806.0
    813.0
    813.0
    813.0
    813.0
    810.0
    813.0
    813.0
    795.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    801.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    693.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    802.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    809.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    803.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    810.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    792.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    806.0
    813.0
    813.0
    796.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    582.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    814.0
    813.0
    814.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    814.0
    813.0
    813.0
    813.0
    813.0
    813.0
    813.0
    814.0
    813.0
    813.0
    

     adc12_single_conversion_LP_MSPM0L1306_nortos_ticlang.zip

  • Hi Daniel,

    I am going to look into this deeper tomorrow and test it on my end. But here are a couple things in the mean time.

    1. You can send the ADC data through UART. By doing this you can disconnect the debugger and just read the values through UART and see if there is any dips. This will help check if the IDE or Debugger is causing the error here.
    2. I do know that there are potential artifacts from previous builds or products (like SDKs) that can disrupt the build process. I do not know if there is an effect on the debugger.
    3. The temperature sensor is trimmed for your device.
    4. This will be the production version of the silicon.
    5. Hardware averaging shouldn't increase the noise, I will have to test this. I will test the repeat mode as well to see potential causes.
    6. If the sampling time is too fast then there could be residuals from the previous sample before the capacitors settle, since MEM0 is the first sample it would be unaffected by the others. Though there should be no notable cross-talk/settling interference so I will look into this as well.

    Regards,

    Luke

  • Hi Luke,

    Thank you in advance and thank you so much the answers! I run the suggested test, and if the temperature adc value is monitored through UART, it is stable; there are not low values.

    I do not understand the (3) answer. In the TRM of the device(MSPM0 L-Series 32-MHz Microcontrollers Technical Reference Manual (Rev. B) (ti.com), p.40,57,84 and 85), in the section about the temperature sensor, there are equations, which refer a factory trimmed value, which is located in the factory constans in address(0x41C4003C). My problem is that, this value in the memory is 0, so I am currently using the value from the example. 

    I have only one question: Does this temperature sensor not need this trimmed value for being accurate?

    Thank you in advance for helping and have a nice day!


    Regards,
    Daniel

  • Hi Daniel,

    I'm glad using the UART to read the data gave consistent results. 

    The temperature sensor is active but since the value is 0 there is no calibrated value. The calibrated value will contain the temperature sensor value at room temperature (~20C). The temperature you're performing your readings at now is giving a consistent 813-814, so I would store that value for now to continue your tests/development.

    The device will be officially releasing soon so you will be able to purchase a device with the calibrations. I recommend contacting your TI Sales Representative for dates.

    Regards,

    Luke

  • Hi Luke,

    Thank you the fast answer! I have a couple of questions just to clarify the issue here. 

    (1) You mentioned that you do some tests. What results did you get when trying to debug the temp sensor adc value using the debbuger? Did you try the UART as well?

    (2) Does it mean that the debugger or IDE has some kind of bug, which results the floating of the temp sensor?

    (3) Does it mean that the internal temperature sensor is fully functioning well and it does not contain any bug? So can it be used safely?

    Regards,

    Daniel

  • Hi Daniel,

    I believe the result you are seeing is due to noise coming from the XDS and debugger side as the power is shared. Disconnecting the debugger helps stabilize the supply. The temperature sensor should give stable readings within the specs of the datasheet.

    Regards,

    Luke