<?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>how to reduce NRF52840 GPIOTE&amp;#39;s  power consume under NCS 2.9.1 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121215/how-to-reduce-nrf52840-gpiote-s-power-consume-under-ncs-2-9-1</link><description>hi,i am using zephyr`s sample of gpiote,it works well,but i don`t know how to optimize the power consume of gpiote: 
 1,how to setup PORT EVENT? 
 2,Sometimes i want to reduce power consume like these: 
 nrfx_gpiote_in_event_disable() 、 nrfx_gpiote_in_uninit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 May 2025 05:12:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121215/how-to-reduce-nrf52840-gpiote-s-power-consume-under-ncs-2-9-1" /><item><title>RE: how to reduce NRF52840 GPIOTE's  power consume under NCS 2.9.1 ?</title><link>https://devzone.nordicsemi.com/thread/534012?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 05:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cd808c-480e-4305-8d17-e2c571f0d012</guid><dc:creator>always18</dc:creator><description>&lt;p&gt;ok，i see.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to reduce NRF52840 GPIOTE's  power consume under NCS 2.9.1 ?</title><link>https://devzone.nordicsemi.com/thread/534011?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 05:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440407f0-f20e-4d20-bf42-3eed5caf8cbb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can call&amp;nbsp;gpio_pin_interrupt_configure_dt() with the&amp;nbsp;GPIO_INT_DISABLE flag if you need to reset the configuration. But this is not&amp;nbsp;necessary to reduce the power consumption when using PORT events&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to reduce NRF52840 GPIOTE's  power consume under NCS 2.9.1 ?</title><link>https://devzone.nordicsemi.com/thread/534010?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 05:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ffa500c-9dd4-4b01-aa3b-b1c7aa94a012</guid><dc:creator>always18</dc:creator><description>&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Is it necessary to do something to reduce power consumption like these?&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;nrfx_gpiote_in_event_disable() 、&lt;/span&gt;&lt;span&gt;nrfx_gpiote_in_uninit() and nrfx_gpiote_uninit().&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt; i can`t find zephyr api to do this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My prj.conf has included:&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_GPIOTE0&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_DEVICE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;span&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to reduce NRF52840 GPIOTE's  power consume under NCS 2.9.1 ?</title><link>https://devzone.nordicsemi.com/thread/534007?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 04:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8de552-b61c-4934-b452-3cb5310da965</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/e96bf44d934050b404e53aefdcb9756290b4c18e/dts/bindings/gpio/nordic%2Cnrf-gpio.yaml#L22C3-L22C18"&gt;sense-edge-mask&lt;/a&gt;&amp;nbsp;property in your gpio node(s) in your devicetree to make&amp;nbsp;&lt;span&gt;gpio_pin_interrupt_configure_dt()&amp;nbsp;use PORT event for edge triggering. Unlike GPIOTE IN events, PORT events do not have any impact on the sleep current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;gpio0 {
	/* Use PORT event rather than GPIOTE IN event, to save power */
	sense-edge-mask = &amp;lt;0xffffffff&amp;gt;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>