Part Number: MSP430F5659
Hi ,
I am using timer interrupt (Timer 0_A1) for pulse measurement. Normal case timer interrupt occurs as expected.
Sometimes timer stops automatically. Please find below our timer intial values for start/stop condition.
Start Timer
TA0CTL = TASSEL_2 + TACLR; // SMCLK
TA0CCTL1 = CM_1 + CCIS_0 + SCS + CAP; /* ACTIVE PULSE */
TA0CTL |= MC_2;
Stop Timer
TA0CCTL1 &= ~CCIE;
Interrupt Function;
We take the current edge time using TA0CCR1 register
currentEdgeTime = TA0CCR1
Kindly advice the possible reasons for timer stops. Please advice on this issue.
Regards
Manoj