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.

CC2530为何连续进入外部中断

Other Parts Discussed in Thread: CC2530

大家好:

我将CC2530的P0.0设为上升沿触发产生中断,但是当外部来一上升沿时, 有时候CC2530会连续进入外部中断函数二次或三次,请问这是为什么?下面是对IO的配置程序,请大家帮忙看看,谢谢!

APCFG &= ONEWIRE_IN;//DISABLE ADC
APCFG &= INT_IN;
P0SEL &= ONEWIRE_IN;//ENABLE GPIO
P0SEL &= INT_IN;
 P0DIR &= ONEWIRE_IN;   //设为输入
 P0DIR &= INT_IN;               //设为输入
P0INP &= 0xFC;

  P0IEN |= 0X01;                   //P0_0(rtc)设置为中断方式
  PICTL &= 0xFE;                  //P0_0上升沿触发
  IEN1 |= 0X20;                      // P0设置为中断方式;

 P0IFG = 0x00;                      //初始化中断标志位