Set a periodic timer (deep sleep, active mode)

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
irfansehic_p
Offline
Last seen:3 months 1 week ago
Joined:2017-12-30 18:04
Set a periodic timer (deep sleep, active mode)

Hi,

I used the DA14580 quite a lot in 2017, and need it again for a project. The issue is, I can't get
a periodic timer to work, in active and sleep mode. Let us say, every 100 ms.
ke_timer_set(CUSTS1_TIMER, TASK_APP, 10); works fine, but only in active mode.
Is there something i can initialize in arch_main() which runs in background and does not interefere
with BLE timers and which generates an IRQ for me?
Thanks! I am still reading the documentation, my apologies if the answer is trivial.

Device:
PM_Dialog
Offline
Last seen:2 days 10 hours ago
Staff
Joined:2018-02-08 11:03
Hi irfansehic_p,

Hi irfansehic_p,

As I am able to understand from you question, you want to use a software timer in order to wake up periodically when the device is in extended sleep mode? Did I understand correctly? If I understood correctly, you can use the app_easy_timer(). Please try to clarify what you want to accomplish.

Thanks, PM_Dialog