Interrupt handling example for nRF52833 with nRF Connect SDK 2.3.0

Dear Support Team,

I just started evaluating a nRF52833 DK board with the nRF Connect SDK 2.3.0. At this point I would like to try interrupt handling from a GPIO pin but unfortunately I can't find any working example that I could use.

Ultimately I would like achive that the nRF52833 wakes up from the lowest energy mode via pin interrupt. How could I achive this?

Thank you very much in advance and all the best,

Viktor

Parents Reply
  • Hi Elfving,

    Thank you very much, it seems to work but not exactly how I was anticipating it.

    Sensing is configure like this:

    nrf_gpio_cfg_sense_input(irq_acc_pin.pin, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH);

    But the MCU wakes up also on high-to-low transition of the pin. So, if the pint was high while it entered OFF mode, it wakes up when the pin returns to low.

    I would like to achieve a state where the MCU only returns to ON mode when low-to-high transition is happening.

Children
Related