4 years, 2 months ago.

Managing sleep intervals based on Timer Interrupts on NRF52

I have been looking at several forum articles on the Nordic site regarding NRF52 especially around managing sleep intervals and also how to use a timer interrupt to wake the CPU. So all of the code there uses the NRF52 softdevice api or other nordic api's to use the timer interrupts. I was wondering if there is something within the MBED API that wraps those calls and makes it more user friendly like most other interfaces such as I2C or SPI?

In the event I don't have such wrapper API's within the mbed api how does one manage to put the NRF52 to sleep for say 25-30 seconds, wake up read a sensor value transmit the payload over BLE and then go back to sleep and wake up again in 25-30 seconds. I am looking for the non-power off mode where the CPU can be woken up via a timer interrupt?

Thanks, Yogesh

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

& sleep

posted by Andrzej Puzdrowski 02 Jan 2017
Be the first to answer this question.