Part Number: MSP430G2553
Hello,
My application is behaving in an odd way and there is a chance that it is related to the MCU error described on the errata of the part as TA12. I am trying to implement the workaround but it is not doing the trick. Could I please have some code example or indications on how to implement this workaround?
CCTL0 = CCIE; // CCR0 interrupt enabled, capture mode enabled
CCR0 = TIMERRELOAD; // 1ms timer 23986
TACTL = TASSEL_2 + MC_1; // ACLK, up, clr TAR
// Timer A0 interrupt service routine
#pragma vector=TIMER0_A0_VECTOR
__interrupt void TIMER0_A0_ISR(void)
{
timertick++; // update the system timer tick
freqtimertick++; // update the frequency timer tick
soundtick++; // update the sound frequency
pairtick++; // update the pairtick;
sampletick++; // update the sample tick
if (soundflg == TRUE) {
P2OUT ^= 0x20;
if (soundtick == soundontime) {
soundflg = FALSE;
SpkrOff;
}
}
}//END OF TIMER0 Interrupt