<?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>Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44301/periodic-current-spikes-while-sleeping-when-twis-is-enabled</link><description>I need the nrf52 as a I2C slave, so I set up a very minimal example: 
 
 which seems to work so far. the chip wakes up, receives the i2c msg and is able to send back data. 
 but if I look at the current consumption, I see a periodic peek (700Hz) and I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 14:40:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44301/periodic-current-spikes-while-sleeping-when-twis-is-enabled" /><item><title>RE: Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/thread/176239?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 14:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed0093d-76fe-4514-a599-f09733374e12</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, that was for the nRF52840. Here is one for nRF52832:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7bb6d14e194c45ed87c55ec2585e1dae/nrf52832_5F00_xxaa.hex"&gt;devzone.nordicsemi.com/.../nrf52832_5F00_xxaa.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/thread/176086?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 07:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0cc4aa-9f72-47d6-b773-6fdcf8943055</guid><dc:creator>bearsh</dc:creator><description>&lt;p&gt;Thanks for looking into this. The 10uA doesn&amp;#39;t sound nice &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt; but at the end it explains the behavior.&lt;/p&gt;
&lt;p&gt;I assume your hex file is for a&amp;nbsp;nRF52840 DK? unfortunately I don&amp;#39;t have that board, I only have a nRF52 DK. For the nRF52840 I have a DK and module from ublox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/thread/174872?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 16:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b55ab813-e2de-4d57-b4f8-1c7d73cf08a4</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;You should get about 10uA when TWIS is enabled and waiting for an interrupt. Testing I&amp;#39;ve done here seems to indicate that this corresponds to a refresh spike frequency of 350Hz. But there are chip to chip variations, so this might be higher as well. To see if this is chip to chip variation or the code you are running can you try to flash the attached hex file, and see what average current you get?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7bb6d14e194c45ed87c55ec2585e1dae/nrf52840_5F00_xxaa.hex"&gt;devzone.nordicsemi.com/.../nrf52840_5F00_xxaa.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/thread/174292?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 14:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a8d14d-4a3b-425c-a24d-6cab8150beab</guid><dc:creator>bearsh</dc:creator><description>&lt;p&gt;so this means I have somewhere a &lt;em&gt;small&lt;/em&gt; leak? in the first picture the average current is around 30uA. so it would also mean that the pins, once configured as twi, leak most of the 30uA because if disabled, the refresh interval is much higher?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic current spikes while sleeping when twis is enabled</title><link>https://devzone.nordicsemi.com/thread/174279?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 13:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72516d06-254b-43b5-ae77-e42243dbcfac</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;This is probably the chip operating in refresh mode. This is the lowest power consumption mode, and it works by regularly charging up a capacitor to provide power to the chip. When the chip consumes more current the spikes will occur more often because the capacitor is emptied faster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>