Other Parts Discussed in Thread: MSP430G2553
Hi,
I am currently working with MSP430G2553's internal Temperature Sensor. The sample code for ADC has the below given configuration.
ADC10CTL1 = INCH_10 + ADC10DIV_3;
ADC10CTL0 = SREF_1 + ADC10SHT_3 + REFON + ADC10ON + ADC10IE;
The formula used to calculate temperature in Celsius and Fahrenheit is given as
// oF = ((A10/1024)*1500mV)-923mV)*1/1.97mV = A10*761/1024 - 468
temp = ADC10MEM;
IntDegF = ((temp - 630) * 761) / 1024;
// oC = ((A10/1024)*1500mV)-986mV)*1/3.55mV = A10*423/1024 - 278
temp = ADC10MEM;
IntDegC = ((temp - 673) * 423) / 1024;
Can anybody help me out with the above formula explanation for the given ADC configuration...
Thanks in advance....