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.

msp4305438a ADC12 timer触发问题

P6SEL |= BIT0; // Enable A/D channel A0
ADC12CTL0 = ADC12ON+ADC12SHT0_8+ADC12REF2_5V+ADC12REFON+ADC12MSC; // Turn on ADC12, set sampling time // set multiple sample conversion
ADC12CTL1 = ADC12CSTARTADD_0+ADC12SHS_1+ADC12CONSEQ_2+ADC12SSEL_3+ADC12DIV_3; // Use sampling timer, set mode
ADC12IE =BIT0; // Enable ADC12IFG.0
ADC12CTL0|= ADC12ENC; // Enable conversions
ADC12CTL0|= ADC12SC; // Start conversion

TA0CTL = TASSEL_2+MC_1+TACLR; //timer_A5 CLK=MCLK,增计数模式 ,清TAR 
TA0CCTL0|= OUTMOD_7; //timer_A5 CCRO PWM模式选择(翻转模式) 
TA0CCR0 = 312; //频率为1.67KHZ 


_EINT();

#pragma vector=ADC12_VECTOR
__interrupt void ADC12 (void)

{}

为什么进入不了中断函数?