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.

TB中断服务程序跑飞了,MSP430F5438A



#pragma vector=TIMER0_B1_VECTOR
__interrupt void TIMERB1_ISR (void)
{TIMER_B_clearTimerInterruptFlag(TIMER_B0_BASE);

static char i=0;
switch(TB0IV)//
{
case 0: break; // No interrupt
case 2:
temp_ccr[1]=TIMER_B_getCaptureCompareCount(
TIMER_B0_BASE,
TIMER_B_CAPTURECOMPARE_REGISTER_1
);
break; // CCR1
case 4:
temp_ccr[2]=TIMER_B_getCaptureCompareCount(
TIMER_B0_BASE,
TIMER_B_CAPTURECOMPARE_REGISTER_2);
break; // CCR2
case 6:
temp_ccr[3]=TIMER_B_getCaptureCompareCount(
TIMER_B0_BASE,
TIMER_B_CAPTURECOMPARE_REGISTER_3);
break; // CCR3
case 8:
temp_ccr[4]=TIMER_B_getCaptureCompareCount(
TIMER_B0_BASE,
TIMER_B_CAPTURECOMPARE_REGISTER_4);
break; // CCR4
case 10: break; // CCR5 not used
case 12: break; // CCR6 not used
case 14:P4OUT ^= 0x02; break; // overflow
default: break;
}

}这个是我的中断服务程序,不知道哪错了,TB的配置都是以前在TA的CCR0上用的,没问题