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.

按键中断

Other Parts Discussed in Thread: Z-STACK

原来能在ZStack-CC2530-2.5.1a版本实现的按键中断功能,移植到了Z-Stack Home 1.2.2a版本后,发现不能按键功能实现不了,我使用了P0_2,P0_4,P0_5,P0_6,P0_7端口作为中断输入引脚,在Z-Stack Home 1.2.2a版本中,我在编译选项添加了ISR_KEYINTERRUPT选项,当我在进行程序调试时,发现如按下连接P0_4,P0_2按键时,除了执行P0_4,P0_2的相应键值,还会执行P0_5的键值,而按下连接P0_5,P0_6,P0_7按键时根本没有反应,程序不会跳转到按键事件里。我使用了IAR9.3版本。

                         断点设置位置

                                    按键处理部分