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.

TAIE中断响应为什么会跳不出去?



#include <msp430x16x.h>

void main(void)

{

WDTCTL=WDTPW+WDTHOLD;

P2DIR=0XFF;

P2OUT=0Xff;

TACTL=TASSEL_2+ID_0+MC_2+TACLR+TAIE+TAIFG;//                                                                    // 持续模式 不使用CCIE中断。

while(1)

{

_EINT();

P2OUT=0X00;

}

}

#pragma vector = TIMERA1_VECTOR //

__interrupt void hf(void)

{

int i;

P2OUT=0Xff;

for(i=10000;i>0;i--);

}  

1.中断响应为什么会跳不出去?