Hi
I am using MSP430F5635.
I want to create timer interval for 1 second .
I have posted the code below .
The ISR has to blink the LED every 1 second . but this is not working .
Please help me out .
Thanks in advance.
Jenitta
This is my code .
void timer_init()
{
TA1CCTL0 = CCIE;
TA1CTL = TASSEL_1 + MC_1 + TACLR + TAIE;
TA1CCR0 = 32768;
}
#pragma vector=TIMER1_A0_VECTOR
__interrupt void TIMER1_A0_ISR(void)
{
P1OUT ^= BIT4; // blink my led
}