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.

msp430g2553定时器程序的问题

#include<msp430g2553.h>
void main(void)
{
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;
  P1DIR|=0X06;
  CCTL0=CCIE;
  CCR0=20000;
  TACTL = TASSEL_2 + TACLR + MC_1;
  _BIS_SR(LPM0_bits + GIE);
}
//Timer A0 中断服务程序
#pragma vector=TIMER_A0_VECTOR   
__interrupt void Timer_A(void)
{ 
    P1OUT^=0X02;
}

运行有问题,,请大神帮我看看,错误指示说:

TIMER_A0_VECTOR 没有定义。