Hi
i have this simple program, just to try the interruptions
#include <msp430x16x.h>
#include <signal.h>
#pragma vector = TIMERA0_VECTOR
interrupt(TIMERA0_VECTOR) wakeup isr_TIMERA0(void)
{
//P2OUT ^= P2OUT;
P2OUT = 0xFF;
}
int main(void)
{
eint();
WDTCTL = WDTPW|WDTHOLD;
P1OUT = 0x13;
P2IN = 0x00;
/* I/O not module control */
P1SEL = 0x00;
P2SEL = 0x00;
/* Setup the data direction registers
-
- P1.0 output, input on the rest
-
- */
P1DIR = 0xFF;
P2DIR = 0x00;
CCTL0 = CCIE; // CCR0 habilita interrupci
CCR0 = 32000/1;
TACTL = TASSEL_1 + MC_1; // reloj ACLK, modo up to CCR0
_BIS_SR(LPM0_bits + GIE);
P1OUT = 0x11;
}[/i]
But my problem is that dont work … i try lots of things and nothing…
in IAR, with a few changes this works.
Someone here know how can i do it, or, what im doing wrong
thanks