Other Parts Discussed in Thread: MSP430WARE
Hello,
I am currently accessing the internal temperature sensor of the MSP430FR2355 device.
Just to be in the same page:
My ADC initialization is similar to all ADC Channels except the followings:
* I enable the temperature sensor
PMMCTL0 = PMMPW;
PMMCTL2 |= TSENSOREN | INTREFEN;
* I configure ADC to use the internal Default reference voltage, 1.5V
ADCMCTL0 &= ~ADCSREF;
ADCMCTL0 |= ADCSREF_1;
* I perform a read from Channel 12
* I transform the read ADC value to Temperature
I use the formula given in section 1.13.3.3 of the user's manual (slau445i.pdf).
I use Formula 10.
The ADC-105C and ADC-30C calibration values for the formula above is retrieved from Word Addresses 0x1A1C and 0x1A1A respectively.
For some reason, the temperature I am reading is OFF by 20C or so. Room temp is about 25C and what I am reading is around 45C.
Can you please check if I have neglected to include in consideration above?
Would you please supply me with a working sample code?
Thanks in advance for your help and support.
Best regards,
Ziggy