<?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 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107864/nrf-9160-dk-i2c-sleep-current-consumption</link><description>Hello! 
 I&amp;#39;ve been playing around with nRF9160DK for a while now and so far the device seems great and the vast majority of available resources for development is really great. But I&amp;#39;ve stumbled upon an issue for the last couple of days and can&amp;#39;t find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Feb 2024 14:09:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107864/nrf-9160-dk-i2c-sleep-current-consumption" /><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/468087?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 14:09:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e20df0-6c82-44ad-a356-8dff67672ade</guid><dc:creator>kuchx</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Okay, thanks for the heads up. For now the VDD is good enough!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did some investigation about why I saw the 370uA when sensor wasn&amp;#39;t working and i2c should be suspended. Without digging deep in code my assumption is that if one of I2C line is pulled low (in my case when 5V was actually 0, both SDA and SCL was pulled low) the I2C peripheral wasn&amp;#39;t actually suspended. The driver probably thinks that slave is pulling the line low so it can&amp;#39;t suspend the peripheral when there is ongoing communication.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, this issue is solved now and hope this can help someone in future! Thanks for the assistance &lt;span&gt;H&amp;aring;kon&lt;/span&gt;!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/467953?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 14:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca80c5e-e065-42d9-8597-f99c2684ee64</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Andris,&lt;/p&gt;
&lt;p&gt;Great that you found the cause. Thank you very much for posting the solution, this is helpful to others as the DK is flexible but complex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;5V&lt;/code&gt; comes directly from VBUS. If you short SB40 in the image below, the voltage will then bypass the diode, going back to 5V5. This will let the &lt;code&gt;External supply&lt;/code&gt; net also go out to &lt;code&gt;5V&lt;/code&gt; on J1. (In case you are not using nRF9160 DK Revision 1.1.0: Double check the solder bridge number in the schematics as this potentially could vary from revision to revision.)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1707317421768v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/467597?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 14:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27aafe7-8112-40d5-b296-279080742a32</guid><dc:creator>kuchx</dc:creator><description>&lt;p&gt;So I did some investigation and it turns out everything works okay. There were series of my own mistakes which led me to think that there is something wrong with HW.&amp;nbsp;&lt;br /&gt;First about the previous response. As I said, I tried to test I2C sleep without I2C lines connected to slave device - there was a bug in code and the i2c peripheral wasn&amp;#39;t suspended, that is why I saw the same ~370uA.&lt;/p&gt;
&lt;p&gt;About the original issue. The slave device was powered from nRF9160-DK (5V and GND on P1). It turns out that 5V is 0V when powered externally and I only noticed this when I connected Salae to SDA and SCL and did not understand why the lines are pulled low instead of high. I connected the + to VDD and now everything works as expected. I guess the slave device was draining SDA and SCL trying to source itself while on VIN there were no voltage.&lt;/p&gt;
&lt;p&gt;It was my fault that I didn&amp;#39;t check DK schematic were it is obvious that 5V is only available when USB is connected. Anyway, thank you for your help, the problem is solved now and I can move on with next steps!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/467505?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 07:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e8a924-c0e6-4e44-a9c7-01cde0395f8c</guid><dc:creator>kuchx</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestions.&lt;/p&gt;
&lt;p&gt;Indeed, I have external 10k pull-ups on SDA and SCL lines. As a quick test whether this issues is due to slave device or because of the pull-ups I just disconnected the I2C lines from the slave device and left the I2C driver running. Unfortunately I got the same result ~370uA when I2C should be suspended. So I guess the only option is to deep dive into the code and check the 1) suggestion you mentioned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/467253?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 21:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219ea5c7-95b9-4bbd-8d99-8497807169ff</guid><dc:creator>helsing</dc:creator><description>[quote user=""]Now comes the question what is wrong with i2c, why I did not see any current drop when i2c is in sleep mode?[/quote]
&lt;p&gt;Here are three thoughts to begin with:&lt;/p&gt;
&lt;p&gt;1) It could be that a TWI clock request is not released. In that case one will have to look at the driver implementation.&lt;/p&gt;
&lt;p&gt;2) Another cause could be the GPIO configuration, for example that there is a pull-up on some of the lines and that it is pulled down externally. In order to investigate this further you could read out the GPIO registers to see if everything is as expected(nrfjprog --memrd &amp;lt;address&amp;gt;). TWI typically has a pull-up on SDA and SCL, and perhaps this is removed when suspending. This could lead to floating lines and a target(slave) drawing excessive current.&lt;/p&gt;
&lt;p&gt;3) A third scenario with high current consumption could be if the GPIOs are set to LOW in suspend, while at the same time there is an external pull-up. Current will then flow through the resistors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/466845?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 21:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72fa42ed-66b0-478f-aa14-de44eb926337</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Andris, thank you for the update. Just wanted to let you know we have started looking into this.&lt;/p&gt;
&lt;p&gt;Regards, &lt;br /&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF 9160-DK i2c sleep current consumption</title><link>https://devzone.nordicsemi.com/thread/466542?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 13:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404767b0-15f6-47a3-88e5-19d5e936f7b6</guid><dc:creator>kuchx</dc:creator><description>&lt;p&gt;Oh I forgot to mention, I&amp;#39;m working in VS code with nRF SDK 2.5.0 version. &amp;quot;CONFIG_SERIAL=y&amp;quot; was left there after the UART low power test (during measurements on i2c I set it to &amp;#39;n&amp;#39;), so when I measure ~370uA when i2c should be sleeping, the UART wasn&amp;#39;t enabled&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>