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.

关于 MSP430G2553 Launchpad 外部中断问题

程序如下,不知为什么只要手一接触(但还没按,甚至没有碰到P1.3那个开关,),,灯就不停 的闪,,频率超快的

#include <msp430.h>
int main( void )
{

WDTCTL = WDTPW + WDTHOLD;
P1DIR = BIT0 + BIT6 ;
P1OUT &= ~(BIT0 + BIT6);
P1IE |= BIT3;
P1IES |= BIT3;
P1IFG &= ~BIT3;
_EINT();
while(1);
}
#pragma vector =PORT1_VECTOR
__interrupt void Port_1(void)
{

if((P1IFG|0XF7) == 0XFF)
{
P1IFG &= ~BIT3;
P1OUT ^= BIT6;
}
P1OUT |= BIT0;
}