Blinking LED managed under interrupt

3 posts / 0 new
Last post
Matthieu ANTOINE
Offline
Last seen:4 years 2 months ago
Expert
加入:2014-01-14 14:51
Blinking LED managed under interrupt

Hi Dialog,

I took a look at the Smart Tag reference design to understand how you manage the LED. I saw that you use "ke_timer_set" which sends a message to the task provided as argument. I suppose that, doing that way, you cannot manage exactly the blinking timings given that you cannot predict when the message will be served, am I right?

在我众多的ion, I want to manage the blinking duty cycle to have something steady. Is it possible to raise an interrupt coming from a timer which can wake up asynchronously the system even in sleep mode (extended or sleep)?

Thanks.
Matt

WT_Dialog
Offline
Last seen:3 years 1 month ago
工作人员
加入:2013-12-05 14:43
Hi Matt,

Hi Matt,

app_timer_set (a replacement for ke_timer_set) is the only internal timer that you can wake up DA14580.

But as you mentioned, the message will not be served as a hard real time request. The timer message will be served as a soft real time request and there might be a little bit delay.

BR

WT_Dialog

Matthieu ANTOINE
Offline
Last seen:4 years 2 months ago
Expert
加入:2014-01-14 14:51
Hi,

Hi,

Is the timer set by app_timer_set dependant from the sleep mode?

Thanks,
Matt