<?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>System Off and GPIOTE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19859/system-off-and-gpiote</link><description>I have multiple GPIOs that are configured to use GPIOTE in my application. When one of these GPIOs is in the active state I start timer. Once the timer expires I want to enter system off using sd_power_system_off() and I want the GPIO that started the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2017 10:17:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19859/system-off-and-gpiote" /><item><title>RE: System Off and GPIOTE</title><link>https://devzone.nordicsemi.com/thread/77243?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 10:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c991fb-e2fd-48dc-852c-0aec188185a0</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;GPIOTE will not wake the processor up from SYSTEM OFF, the sense mechanism in the GPIO peripheral will. If you enable the sense mechanism, a DETECT signal will be generated if the correct sense is detected on one of the pins. As the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_2_0_19_0#concept_o12_bgv_bs"&gt;specification&lt;/a&gt; says this can be used to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;POWER: uses the DETECT signal to exit
from System OFF.&lt;/li&gt;
&lt;li&gt;GPIOTE: uses the DETECT signal to generate the PORT event.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before you enter SYSTEM OFF you need to disable the sense mechanism for the pins that are not going to wake up the chip and enable it on the one that are going to wake up the chip.&lt;/p&gt;
&lt;p&gt;Also, if you use GPIOTE in port event mode (low power mode or hi_accuracy = false):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GPIOTE_CONFIG_IN_SENSE_...(false);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The sense mechanism will be set for that pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System Off and GPIOTE</title><link>https://devzone.nordicsemi.com/thread/77242?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 18:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24412d5-944f-4e9d-9f90-056c49fdc891</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Ole,&lt;/p&gt;
&lt;p&gt;Thank you for the reply it helps!&lt;/p&gt;
&lt;p&gt;I have some follow up questions.&lt;/p&gt;
&lt;p&gt;My custom board has several GPIOs configured to use GPIOTE as I stated above.  Out of all of these GPIOs I only want 1 to wake the processor up from System Off.  Am I correct in thinking that I need to disable all of the GPIOTE events except for the 1 pin I want?&lt;/p&gt;
&lt;p&gt;Also I am a little confused between the using GPIOTE and &lt;code&gt;nrf_gpio_cfg_sense_input()&lt;/code&gt; as which is the best to wake the processor up from System Off at the same allows the lowest power operation.&lt;/p&gt;
&lt;p&gt;Cheers,
Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System Off and GPIOTE</title><link>https://devzone.nordicsemi.com/thread/77241?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 11:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d63e80f-5155-4c43-b8b0-56cdafb986d3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not need to disable the GPIOTE events for that pin. The only peripherals that are partially kept active in SYSTEM OFF are &lt;em&gt;GPIO&lt;/em&gt;, &lt;em&gt;LPCOMP&lt;/em&gt; and &lt;em&gt;NFC&lt;/em&gt;. Remember that the &lt;code&gt;nrf_gpio_cfg_sense_set()&lt;/code&gt;function only sets the SENSE field of the pin so the other fields (direction, pull etc) will be the same. &lt;code&gt;nrf_gpio_cfg_sense_input()&lt;/code&gt; will set all fields.&lt;/p&gt;
&lt;p&gt;Other peripherals are not functional in SYSTEM OFF and are reset when the device wakes up after SYSTEM OFF, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_2_0_17_7#unique_1820575579"&gt;here&lt;/a&gt;. So there is no need to stop the peripherals and disable interrupts before going to SYSTEM OFF.&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>