<?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>NRF5340 GPIO Interrupt and low power problem.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73132/nrf5340-gpio-interrupt-and-low-power-problem</link><description>Hi everyone. 
 I am developing a product with nRF5340. But I found some problems with the power consumption of the device. I&amp;#39;m not sure what I am doing wrong. 
 Condition When disable button Interrups : ~5uA When enable button interrups : ~100uA 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Apr 2023 11:03:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73132/nrf5340-gpio-interrupt-and-low-power-problem" /><item><title>RE: NRF5340 GPIO Interrupt and low power problem.</title><link>https://devzone.nordicsemi.com/thread/421232?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 11:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cafb2f1b-13b2-4f4a-a18f-eb5e75643187</guid><dc:creator>u9357</dc:creator><description>&lt;p&gt;My interrupt handler releases a semaphore which i wait for inside the main thread. If latency is set to zero, CPU will keep sleeping until &lt;code&gt;k_sem_take()&lt;/code&gt; times out. At which point it is executing the ISR and then starts executing my application code. I&amp;#39;ve verified this by recordingj the time of execution of ISR and &lt;code&gt;k_sem_take()&lt;/code&gt; return, with &lt;code&gt;k_uptime_get()&lt;/code&gt;. There is less than 1ms difference.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 GPIO Interrupt and low power problem.</title><link>https://devzone.nordicsemi.com/thread/421217?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 10:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062106d3-df78-4ec5-b2fc-cb2901faafd3</guid><dc:creator>u9357</dc:creator><description>&lt;p&gt;In my case after calling gpio_pin_interrupt_configure_dt() current increases by 300uA but if i set latency to 0, interrupts stops working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 GPIO Interrupt and low power problem.</title><link>https://devzone.nordicsemi.com/thread/301520?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 16:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5c2449-0ee9-4125-8e91-3ee4e303629d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nRF5340 has a new&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpiote.html?cp=3_0_0_6_13_3#register.LATENCY"&gt;LATENCY&lt;/a&gt;&amp;nbsp;register that will affect the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/current_consumption/doc/current_consumption.html#unique_5475256"&gt;current consumption of the GPIOTE peripheral&lt;/a&gt;, see&amp;nbsp;&lt;a title="Low power" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/gpiote.html#low_power"&gt;Low power&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I cannot see that this is set in the GPIO driver in Zephyr.&lt;/p&gt;
&lt;p&gt;Can you test if forcing it to LowPower affects the current, by setting the following after&amp;nbsp;gpio_pin_interrupt_configure():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_GPIOTE-&amp;gt;LATENCY = 0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>