<?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>High current consumption (2mA) in SystemOn and SystemOff Sleep (SDK16, no Softdevice) with some other peripherals.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61375/high-current-consumption-2ma-in-systemon-and-systemoff-sleep-sdk16-no-softdevice-with-some-other-peripherals</link><description>There are aready quite a lot topics about high current consumption in sleep mode, but none really seems to fit out problem: 
 We have a small board with a nRF52832 (actually a https://www.yuden.co.jp/or/product/category/module/EYSHCNZXZ.html ) and some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 May 2020 16:43:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61375/high-current-consumption-2ma-in-systemon-and-systemoff-sleep-sdk16-no-softdevice-with-some-other-peripherals" /><item><title>RE: High current consumption (2mA) in SystemOn and SystemOff Sleep (SDK16, no Softdevice) with some other peripherals.</title><link>https://devzone.nordicsemi.com/thread/250260?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 16:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a2265f-f56b-485d-a4cc-a484e3792d1f</guid><dc:creator>jhennrich</dc:creator><description>&lt;p&gt;Thanks, that fixed it!&amp;nbsp;I configured all /CS as output high and the overall current drain decreased to 11uA. That is already low enough for me, but when I have time I will do some calculations what all ICs in standby, the external voltage regulator and the voltage dividers *should* drain.&lt;/p&gt;
&lt;p&gt;Another small mistake I made (just in case someone else reads this and has the same problem) at first was setting the /CS to output/high right after sending the standby command (via SPI) to the accelerometer. A nrf_delay_ms(1) between those commands solved the issue.&lt;/p&gt;
&lt;p&gt;Lastly: setting for example the GPIOs connected to the LEDs to output/high or input/disconnected should make no difference I guess? In both cases there should be no current flowing...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption (2mA) in SystemOn and SystemOff Sleep (SDK16, no Softdevice) with some other peripherals.</title><link>https://devzone.nordicsemi.com/thread/250105?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 08:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8fa09cb-03a0-47fc-9533-1d1d75c2ef8a</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, the system OFF code you posted will &amp;quot;per definition&amp;quot; consume less than 1 uA.The default reset configuration for GPIOs are 0x2 (input, disconnected buffer), which means that they will not drive any external devices, hence no leakage current. The only leakage sources are pullups/down on SWD, and pull up on nRESET, so if the debugger is disconnected you should be fine. However, If the external devices require non-floating inputs, especially on CS, as &lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt; mentions, they will probably be in a undefined state, consuming a lot of current if the output from nRF52 is floating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption (2mA) in SystemOn and SystemOff Sleep (SDK16, no Softdevice) with some other peripherals.</title><link>https://devzone.nordicsemi.com/thread/250068?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 22:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41642070-19b5-499b-94a3-ec6e45bb80e6</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Flash, Mag, pressure and accelerometer /CS signals i/o drive pins &lt;em&gt;must&lt;/em&gt; all be configured as outputs and driven high since there are no pull-ups on the board. Without setting the pins they float, and although some SPI devices may have internal pull-ups on /CS most do not. Try and see if that makes a difference .. most likely the flash which always takes most current (/CS can float low if not driven):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;When /CS is brought low, the device will be selected, power consumption will increase to active levels&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The is a further issue with /CS on the flash, it must track rising VCC at first power-on:&lt;em&gt; &amp;quot;The /CS input must track the VCC supply level at power-up and power-down (see &amp;ldquo;Write Protection&amp;rdquo; and figure 43). If needed a pull-up resister on /CS can be used to accomplish this.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;On first power-on the nRF52 pins are floating and not driven; parasitic and pin capacitive loading will hold the /CS pin low so this should be considered a design flaw on the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High current consumption (2mA) in SystemOn and SystemOff Sleep (SDK16, no Softdevice) with some other peripherals.</title><link>https://devzone.nordicsemi.com/thread/250067?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 22:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8a761d-4b10-4639-83e8-f14877b5b94d</guid><dc:creator>jhennrich</dc:creator><description>&lt;p&gt;To further investigate the problem I wanted to see if the current drain is constant over time or consists of short bursts. For&amp;nbsp;that I measured the current of the minimal example with a scope. I do not have current probes, so I put a 10 Ohm resistor in series to the battery and measured with regular scope probes across the resistor (so in the scope 10mV correspond to 1mA current drain).&lt;/p&gt;
&lt;p&gt;For the first three test cases from my original post (1. &amp;quot;while(true) {}&amp;quot;, 2. while(true)&amp;nbsp; {__WFE(); }&amp;quot; and 3. &amp;quot;NRF_POWER-&amp;gt;SYSTEMOFF=1; while(true) {}&amp;quot; the scope looks the same:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/blinky_5F00_10ohm_5F00_emptymain.png" /&gt;&lt;/p&gt;
&lt;p&gt;In the scope it looks like the current draw is very constant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>