while(1)
{
ADC12CTL0 |= ADC12SC; // Sampling and conversion start
_BIS_SR(CPUOFF + GIE); // LPM0 with interrupts enabled
// oC = ((x/4096)*1500mV)-986mV)*1/3.55mV = x*423/4096 - 278
// IntDegC = (ADC12MEM0 - 2692)* 423/4096
IntDegC = (temp - 2692) * 423;
T=(float) IntDegC / 4096;
_NOP(); // << SET BREAKPOINT HERE
}
这个算法是怎么得出来的,资料上没看到 |