Tool/software: Code Composer Studio
LaunchPad™ Development Kit (MSP‑EXP430G2ET) issue: debugging in not working in interrupt routine.when we start debugging it get halted in interrupt routine.
code given below:
#include <msp430g2553.h>
unsigned int j=0;
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
P1DIR |= 0x41; // P1.0 AND P1.6output
TACTL = TASSEL_2 + MC_2 + TAIE; // SMCLK, contmode, interrupt
_BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt
}
// Timer_A3 Interrupt Vector (TA0IV) handler
#pragma vector=TIMER0_A1_VECTOR
__interrupt void Timer_A(void) ///** in this routine debugging not possible.
{
j++;
if(j==20)
{
P1OUT ^= 0x41;
}
}