void Timer_int()
{
TACTL=TACLR;
TACCTL0|=CCIE;
TACCR0=1000;
TACTL|=TASSEL_1+MC_2;
}
int main()
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR|=BIT0;
AFE253_int();
Timer_int();
_BIS_SR(LPM0_bits + GIE);
while(1)
{
;
}
}
#pragma vector=TIMERA1_VECTOR
__interrupt void Timer_A0()
{
P1OUT^=BIT0;
} |