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.

MSP-EXP430FR6989: MSP-EXP430FR6989 Data Logging FRAM

Part Number: MSP-EXP430FR6989
Other Parts Discussed in Thread: ENERGIA

Hi there,

im pretty much starting from the scratch when it comes to MCU's and programming. At the moment Im playing around with my MSP-EXP430FR6989 and a simple DHT22 reading temp. and humidity. 
Actually I was wondering how to store the incoming serial data with an additional timestamp e.g. on the board (FRAM?)?

I currently read the data on port 11 with the following loop: 

void loop() { 

   delay(delayMS);
   sensors_event_t event;  
   dht.temperature().getEvent(&event); /* Read temperature value */
   if (isnan(event.temperature)) { /* If temperature value is not a number */
      Serial.println("Error reading temperature!");
   }
   else {
      Serial.print("Temperature : ");
      Serial.print(event.temperature);
      Serial.println(" *C");
   }    
   dht.humidity().getEvent(&event); /* Read humidity value */
   if (isnan(event.relative_humidity)) { /* If humidity value is not a number */
      Serial.println("Error reading humidity!");
   }
   else {
      Serial.print("Humidity : ");
      Serial.print(event.relative_humidity);
      Serial.println("%");
   }
}

ps: I dont need a high sample frequency and also dont need to store data for a long time. 

Regards
Hendrik 

**Attention** This is a public forum