<?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>nrf_delay_ms consuming too much power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24632/nrf_delay_ms-consuming-too-much-power</link><description>hi,
I am working on nrf52 sdk11 and s132,
when I am using ble_app_uart example on my custom board I used nrf_delay_ms(10000) i.e 10 seconds when i observe current consumption is 4mA. what is the reason it is consuming too much current? but after that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Aug 2017 08:11:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24632/nrf_delay_ms-consuming-too-much-power" /><item><title>RE: nrf_delay_ms consuming too much power</title><link>https://devzone.nordicsemi.com/thread/96961?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 08:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc61c11-3831-4bfc-a4fd-4e92012512b0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nrf_delay_ms()&lt;/code&gt; is implemented as a series of NOP instructions, meaning that the CPU active but not performing any operations. The increased current you are seeing is the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/cpu.html?cp=2_1_0_6_1#topic"&gt;CPU current&lt;/a&gt;. In general, it is not recommended to use busy-wait for long delays. You should instead setup a timer/RTC to wake the chip after the desired time, and put the chip into system on sleep mode. This will turn off CPU, saving much power.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_delay_ms consuming too much power</title><link>https://devzone.nordicsemi.com/thread/96960?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 08:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f5fb268-cc09-4e54-ac9c-1134d1158055</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Not so much surprising i you see what&amp;#39;s inside the function (just busy loop of &lt;code&gt;NOP&lt;/code&gt; instructions;) This should never be used outside debug code, for all the rest proper (RTC based) timer with interrupt wake-up (event handler) is the way how to measure time on ARM Cortex-M SoCs...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>