#pragma vector=TIMER1_A1_VECTOR
__interrupt void TIMER1_A1_ISR(void)
{
switch(__even_in_range(TA1IV,14))
{
case 0: break;
case 2: P2OUT ^= BIT6;
delayms(50);
ccr1_LSB = TA1CCR1; //
slp--;
__no_operation(); //DEBUGE
LPM0_EXIT;
break;
case 4: break; // CCR2
case 6: break; // CCR3 not used
case 8: break; // CCR4 not used
case 10: break; // CCR5 not used
case 12: break; // Reserved not used
case 14: break;
default: break;
}
}
问题是程序一直不会执行到P2OUT ^= BIT7;可是中断后有LPM0_EXIT; 啊?还有就是 ccr1_LSB 值不变ccr1_LSB = TA1CCR1; 这句该怎么写啊?刚接触430,求高手指教,谢谢!