This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accurate timer interrupts with working softdevice

Hi,

I am working on nrf52832. I am preparing application where I need to handle central connection with two peripherals and keep tracking time. I know that softdevice has most important interrupt priorities. But I have to perform operations unconnected with BLE services with accuracy of 1ms or even less. I use app_timer now but I am afraid that I can lost some timer interrupts or they can be shifted. After connection to peripherals I ask them for data (once per second).

I think about disable softdevice when BLE is unused but maybe there is other method for achieving my goal - triggering time event precisely.

Regards

  • Hi,

    You can use the Timeslot API to schedule tasks, like e.g. ADC sampling, with a high degree of accuracy. Depending on your application you might also be able to use PPI Channels and connect tasks and events to automate things. It is for example relatively easy to configure a timer to trigger ADC sampling at exact 1ms intervals and have the ADC store the samples in memory without using the CPU or interfere with the Softdevice at all.

Related