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.

仿真调试进入中断



开发工具为IAR Embedded Workbench

#include "msp430x23x0.h"

void main(void)

{

WDTCTL=WDTPW+WDTHOLD;

P2DIR=0x01;

CCTL0=CCIE;

CCR0=50000;

TACTL=TASSEL_2+MC_2;

_BIS_SR(LPM0_bits+GIE);

}

#pragma vector=TIMERA0_VECTOR

__interrupt void Timer_A(void)

{  

 P2OUT^=0x01;

 CCR0=50000;

}

这个程序仿真调试时怎么进入中断程序?