This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_DELAY_MS blocks interrupt

Hello,

I am using sdk12,2.2 and nrf52832. I have interfaced bme680 sensor with nrf52. I am facing strange challenge.

My button interrupt is working every time but it stops when my firmware is executing nrf_delay_ms api. It again responds when nrf_delay_ms has been completed.

Thanks,

Parents Reply
  • Senchoi said:
    Do you mean that using nrf_delay in rtc_handler or timer handler will temporarily stop timer or rtc counting up?

    No, the RTC and TIMER peripherals are HW peripherals. They will keep running regardless of what the CPU does, until they are stopped.

    nrf_delay will only stall the CPU, causing higher current consumption (CPU running), and preventing CPU from performing other tasks.

Children
No Data
Related