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.

MSP430FR2433: TimerA --> to reduce the time drift

Part Number: MSP430FR2433

Hi TI Team,

Iam using the TimerA to generate the 100ms interrupt, there i have created a timer to show clock, we are showing the time in a 4 digit 7-segment but we are getting 1sec time drift for 1hour and 2hours, 2sec time drift for 2 to 4 hours from start of the execution.

I think this time drift is coming  because of interrupt triggering and ike cpu clks, but in my case i can't suppose to get this time drift i need to reduce this as best as.

like i should get exact time like local time with out any time drift. or else it should be less than 1sec for 24hours.

please look in to the register values which i have configured for timer to get 100ms interrupt, 

  TA0CCTL0 |= CCIE; // TACCR0 interrupt enabled
TA0CCR0 = 3285-1; //32768/10
TA0CTL = TASSEL_1 | MC_1; // ACLK, UP mode 


FYI, i have taken 3 variables for sec,min,hr depends on 100ms im incrementing each to create the local time

**Attention** This is a public forum