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.

TAI中断返回问题



//用timer a中的TAIE  溢出中断实验

//但是程序进入中断服务程序后 无法返回断点继续执行后续程序  不知道什么原因啊 求好人

#include <msp430x16x.h>

void main(void)

{

 WDTCTL=WDTPW+WDTHOLD;

 P2DIR=0XFF;

 P2OUT=0Xff;

 TACTL=TASSEL_1+ID_0+MC_2+TACLR+TAIE;//增计数 模式

 while(1)

 {

 _EINT();

 P2OUT=0X00;

 }

}

#pragma vector = TIMERA1_VECTOR //ccr0中断服务

__interrupt void TIMERA(void)

{

 P2OUT=0X13;}

//程序运行到此处 就退不出中断服务程序              

//了.,一直循环怎么回事啊???弄了半天一直没懂啊