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.

CC1110 中断触发异常问题



hi, 想请教一个问题: 

    我的CC1110芯片, 用p0的5, 6 做了一个中断, 下降沿触发.  中断程序如下: 

我触发中断以后, 发现a等于100多, b=0xff   , 是不是说明, 中断触发了很多次? 为什么其他管脚, 我没有触发中断, 也会进入中断程序呢? 我要怎么处理, 才能只有当我的中断触发的时候, 才会进中断程序, 谢谢!

uint8 a = 0;

uint8 b = 0;

#pragma vector=P0INT_VECTOR
__interrupt void P0_IRQ(void)

{

EA = FALSE;

P0IF=0;

a++;

b != P0IFG ;

P0IFG = 0;.

P0IF=1;

EA = TRUE;

}