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.

Port P0_6 interrupt

Hi,

I'm writing a firmware for CC2541 chip based on keyfob example from BLE stack 1.2.1.

In our application we use port P0_6 as interrupt source

but it generate interrupts only if corresponding direction bit  set to output  P0DIR= 0b01000000,

if I change it to input  P0DIR= 0b00000000 - no interrupts are detected.

Configuration

....

HAL_KEY_SW_2_BIT    BV(6)

HAL_KEY_SW_2_ICTLBIT  BV(6)

...

What could be the reason for such behaviour?

Thank you.

BR,

Evgeny.