为什么外中断口是P2.0,程序里却这样设置
#define HAL_KEY_JOY_MOVE_ICTL P2IEN /* Port Interrupt Control register */
#define HAL_KEY_JOY_MOVE_EDGEBIT BV(3)
HAL_KEY_JOY_MOVE_ICTL |= HAL_KEY_JOY_MOVE_EDGEBIT;??
P1口有设置了相应的寄存器,为什么不能进入中断?
P00,P01,P07仿真时能进入HalKeyPoll();脱机后却不行
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.
为什么外中断口是P2.0,程序里却这样设置
#define HAL_KEY_JOY_MOVE_ICTL P2IEN /* Port Interrupt Control register */
#define HAL_KEY_JOY_MOVE_EDGEBIT BV(3)
HAL_KEY_JOY_MOVE_ICTL |= HAL_KEY_JOY_MOVE_EDGEBIT;??
P1口有设置了相应的寄存器,为什么不能进入中断?
P00,P01,P07仿真时能进入HalKeyPoll();脱机后却不行