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.

MSP430F2274 Timer issue when it is been interfaced with sensors in I2C

Other Parts Discussed in Thread: MSP430F2274

HI,

 

Our firmware team is working on MSP430F2274 and a sensor which would be connected in I2C. The simple rtc (Soft RTC developed on ACLK) code was running for three  for 3 days, there was no problem and the results were quite good. When its been integrated with Sensor ( I2C), suddenly the RTC value is going to be changed to some strange value (2011 Sep month instead of today's). Please let us know your valuable suggestions.

 

Regards

Ramakrishna R Gouru

  • There are as many possible reasons for that as there are programs that can be written (proper and inproper ones) on your MSP :)

    Some suggestions:

    • your I2C code is modifying the ACLK for its transfers, so the RTC runs on a changed speed
    • you have a stack overflow happening in the code after the activation of the I2C sensor
    • you have a buffer overflow/underflow (index out of range)
    • many more

    Als long as you don't post your code here, we all can only offer wild guesses

**Attention** This is a public forum