Hello, I am currently exploring the EZ430-RF2480. I am what you may describe as "extremely noob" when it comes to FW codes. After reading the datasheets and browsing through the posts in this forum, I still could not calibrate the temperature output in the Sensor Monitor application. I posted a code snippet below from the ZASA application (IAR). I think that the following lines hold the key to this simple exercise. I would appreciate if someone could give his/her insight on the following questions:
(1) Are there other details that I need to know? My guess is that I will just define a constant or modify an equation which would then somehow correct/offset the temperature readings. But for me to do that,
(2) where can I find more information on how the MSP430F2274 processes the analog input from the temperature sensor? I'd like to know what the equation below actually means because it is quite different from Note#2 (page 50) in the MSP430F2274 datasheet.
(3) Where is the temperature sensor located in the MSP430? I could not see it in the functional block diagram...
Cheers,
Brennan
--------------------------------
static void appSrceData(void)
{
uint16 tmp;
switch (appFlags & (appTempF | appBusVF))
{
case 0: // Idle - not reading the ADC.
// Setup to sample air temperature.
appFlags |= appTempF;
halReadTemp();
break;
case appTempF: // Measuring air temperature.
appFlags &= ~appTempF;
// oC = ((A10/1024)*1500mV)-986mV)*1/3.55mV = A10*423/1024 - 278
srceReport[SRCE_REPORT_TEMP] = ((halAdcVal - 673) * 423) / 1024;