<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Minimize power consumption of LED flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5339/minimize-power-consumption-of-led-flashing</link><description>I have a &amp;quot;heartbeat&amp;quot; LED which flashes for 10mS every 2 seconds. I was doing this with one of the HW timers and a PPI channel, but I have discovered that just having the HW timer running seems to add around 4mA to the power budget(which I guess is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jan 2015 13:38:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5339/minimize-power-consumption-of-led-flashing" /><item><title>RE: Minimize power consumption of LED flashing</title><link>https://devzone.nordicsemi.com/thread/18651?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2015 13:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a18a38e-60ed-4409-b178-e8bcd5f013aa</guid><dc:creator>JohnBrown</dc:creator><description>&lt;p&gt;Thanks.
Why would that be better than using the same timer but alternating the period each time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimize power consumption of LED flashing</title><link>https://devzone.nordicsemi.com/thread/18650?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 23:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0be29b-a389-44ba-88b9-0719bfdc3e26</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;For an application like this I use two app_timers.  One repeated timer set for 2 second cycling, and a One-Shot timer which is set to 10msec.  When you hit the Repeated timer handler:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Turn on the LED&lt;/li&gt;
&lt;li&gt;Start a 10msec one-shot-timer&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Have the One-shot handler turn off the LED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>