<?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>NRF9160 Low Power GPIO interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57374/nrf9160-low-power-gpio-interrupt</link><description>I am currently working on a low power application using the NRF9160 chip. During power optimalisation I found out that my sleep current can be reduced from around 50uA to as low as 7uA. In order to get to these low power values I needed to disable GPIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2020 09:55:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57374/nrf9160-low-power-gpio-interrupt" /><item><title>RE: NRF9160 Low Power GPIO interrupt</title><link>https://devzone.nordicsemi.com/thread/233670?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 09:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61df1446-5e8f-4d6e-8172-34812fe16ca0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="76764" url="~/f/nordic-q-a/57374/nrf9160-low-power-gpio-interrupt"]Is there a solution to get the GPIOTE peripheral to be used to reduce power, but to keep the ability to get only a single interrupt on a rising/falling edge?[/quote]
&lt;p&gt;As of today, the Zephyr GPIO driver only support&amp;nbsp;&lt;span&gt;edge triggering with&amp;nbsp;GPIOTE channel. Improvements on this has been has been requested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But, if you are using these pins to wake-up from System OFF mode, it might be easier to just access the GPIO&amp;nbsp;peripheral directly, configure it with sense, and then go to System OFF sleep.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;gpio.h&amp;gt;
#include &amp;lt;hal/nrf_regulators.h&amp;gt;
#include &amp;lt;hal/nrf_gpio.h&amp;gt;
#include &amp;lt;hal/nrf_power.h&amp;gt;



nrf_gpio_cfg_input(WAKEUP_PIN_1,NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_sense_set(WAKEUP_PIN_1,NRF_GPIO_PIN_SENSE_LOW);

lte_lc_power_off();
bsd_shutdown(); // Method to gracefully shutdown the BSD library.
nrf_regulators_system_off(NRF_REGULATORS_NS);

&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>