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.

MSP430 如何修改程序寄存器强制跳转



你好,

MSP430程序中有两个循环,loop1(); loop2(); 还有一个外部中断服务程序ExIsr(); 程序大意如下:

void main(){
    loop1();
    loop2();
}

void loop1(){
    for(;;){
        while(P1IN&BIT1);
        doSomething();
    }
}

void loop2(){
    for(;;){
        doOtherthing();
    }
}

void ExIsr(){
}

程序正常工作在loop1(); 现需要在中断触发后,在中断服务程序ExIsr()退出后强制跳转loop2();

请问这个流程有没有办法可以实现?谢谢!