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.

1 sec delay on msp430

Other Parts Discussed in Thread: MSP430F447

here is my code i need to calculate for one second 

its not going to timer interrupt

#include <msp430.h>
/*
* DEFINE LED PORT & PIN
*/
#define LED_PDIR P5DIR
#define LED_POUT P5OUT
#define LED_PIN BIT5
void ConfigTimerA(unsigned int delayCycles)
{

TACCTL0 |= CCIE; //Enable Interrupts on Timer
TACCR0 = delayCycles; //Number of cycles in the timer
TACTL |= TASSEL_1; //Use ACLK as source for timer
TACTL |= MC_1; //Use UP mode timer

}


void main()
{

//Configure the LED
LED_PDIR |= LED_PIN; //Set P1.0 as an Output pin
LED_POUT &= ~LED_PIN; //Set P1.0 LOW (turn LED off)

ConfigTimerA(32676); //Configure the timer

while (1)
{
__bis_SR_register(LPM3_bits + GIE); //Enter Low Power Mode 3 with interrupts
}

}


#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A0(void)
{

LED_POUT ^= LED_PIN; //Toggle the LED

//When we exit the interrupt routine we return to Low Power Mode

}

its not going to the interrupt 

**Attention** This is a public forum