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 上升沿触发中断设置问题

希望可以P1.1在方波的上升沿触发中断,请大神帮忙看下如下设置哪儿有问题是 :

P1IEN |= 0x2; // P1.1 设置为中断方式 1:中断使能
PICTL &= ~0x2; //上升沿触发 3到0输入
IEN2 |= 0x10; //允许P1口中断;
P1IFG = 0x00; //初始化中断标志位
EA = 1; //打开总中断

方波输入这个引脚就是触发不了中断,HAL_ISR_FUNCTION( halKeyPort1, P1INT_VECTOR ),但是将这个引脚短接到GND一下就能触发一次中断,

请大神帮看问题在哪儿。谢谢