<?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>initialized peripheral current draw after uninitialized</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66054/initialized-peripheral-current-draw-after-uninitialized</link><description>I&amp;#39;m working with a custom board that is using a nrf53840. The SDK is 16.0 and SoftDevice S140 version 7.0.1. Programming with SES. The board has various devices such as accelerometers, temperature, etc... communicating with the 52840 via SPI, I2C, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 19 Sep 2020 05:53:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66054/initialized-peripheral-current-draw-after-uninitialized" /><item><title>RE: initialized peripheral current draw after uninitialized</title><link>https://devzone.nordicsemi.com/thread/270402?ContentTypeID=1</link><pubDate>Sat, 19 Sep 2020 05:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20287611-d810-4fa7-859a-d3c24e0bae3a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. So I would have expected the current draw to be 0.4 uA if it was isolated to the nRF device. The chip is nearly powered off in this mode so peripherals and clock sources are all automatically powered down by the system. The only two things the application should make sure of before entering system off is that there are no ongoing DMA transactions and to re-configure used IOs if necessary (GPIO settings are retained in system OFF). &lt;/p&gt;
&lt;p&gt;Do the external sensors have inputs that may become floating? I&amp;#39;m wondering if the leakage may possibly be caused by that? It&amp;#39;s ok to leave nRF IOs floating when they are configured to their reset state (input/disconnect) but other chips may require a constant pull-up, etc. If the i2c bus doesn&amp;#39;t have external pull-ups mounted, maybe you can try to enable the internal pull-ups on the nRF before entering sleep and see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: initialized peripheral current draw after uninitialized</title><link>https://devzone.nordicsemi.com/thread/270370?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 14:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2ee73a3-5fcf-46fd-8414-6048eabdbd84</guid><dc:creator>matty</dc:creator><description>&lt;p&gt;Thank you. In the quoted sentence, peripheral devices means the external sensors. Yes, they are always powered.&lt;/p&gt;
&lt;p&gt;So, even if I leave TWI initialized and enabled, TWI and the resources it uses would be shutdown as soon as I&amp;nbsp;enter system off? In system off, the nRF52840 isn&amp;#39;t using any&amp;nbsp;thing, In fact, by entering system off I can&amp;#39;t inadvertently leave any nRF52840 resource/peripheral running?&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/66054/initialized-peripheral-current-draw-after-uninitialized/270342"](i.e assuming no IO or peripheral initialization, just entering system OFF).[/quote]
&lt;p&gt;Does&amp;nbsp;my code snippet contain IO or peripheral initialization? I suppose the #include could eventually lead to&amp;nbsp;&lt;span&gt;IO or peripheral initialization. Although in this case I don&amp;#39;t think it does. What I&amp;#39;m trying to get at is if I were to run just the following code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
int main(void)
{

    NRF_POWER-&amp;gt;SYSTEMOFF = 1;

    for (; ; )
    {
        __WFE();
    }

}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I should see a more or less flat line on my Otii at about 0.4 uA, given an ideal world. Anything more than 0.4uA is an indication of current use by the rest of the board? The nRF52840 is consuming 0.4uA, (I would add that the nRF52840 is part of a BMD340).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: initialized peripheral current draw after uninitialized</title><link>https://devzone.nordicsemi.com/thread/270342?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 13:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f9af236-5f54-450b-9647-8942097eb095</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]That indicates the peripheral devices are consuming power and need to be initialized and put to sleep.[/quote]
&lt;p&gt;&amp;nbsp;Just to confirm, is this referring to external sensors, or on-chip peripherals. And it if it&amp;#39;s external sensors, are they always powered? I&amp;#39;m basically asking if there is a chance you may have leakage current going through these.I would expect the current going into the nRF52840 to be around 0.4 uA with the code snippet you posted (i.e assuming no IO or peripheral initialization, just entering system OFF).&lt;/p&gt;
&lt;p&gt;The TWIM should not impact the base current once all transactions are completed. The peripheral should be powered down automatically by the power management unit. That&amp;#39;s also my experience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>