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.

launchpad的内部温度采集是不是很不稳定?

Other Parts Discussed in Thread: MSP430G2231

我采集的数据很不稳定,  温度从22-57度之间跳变很大,采样间隔远远大于30us,不知道是本来就不稳定还是咋的。

 

ADC10CTL0 =ADC10SHT_2 + ADC10ON + ENC; 

ADC10CTL1 = INCH_10;                      
 

 

unsigned int ad()
{
ADC10CTL0 |= ADC10SC; 
while(!(ADC10IFG&ADC10CTL0));
__delay_cycles(100);
return ADC10MEM;
}

     i=ad();
     tmp=i;
     tmp=(0.986-(tmp/1024.0)*2.5)/0.00355;