<?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>Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19882/configuration-of-gpio-to-wake-up-from-system-off</link><description>Hi, 
 I am working with a nrf51822 and I have seen that the way to wake up from System Off mode is by a GPIO interrupt. I wanted to know if it is needed to configure previously the GPIO pin to wake it up from System Off mode.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2017 08:10:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19882/configuration-of-gpio-to-wake-up-from-system-off" /><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77379?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 08:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc75a07-7502-4e49-aac0-6622c45a6a23</guid><dc:creator>mikelugarte</dc:creator><description>&lt;p&gt;I got it!! The only thing I had to change was the pin sense. This is how I did: &lt;code&gt;nrf_gpio_cfg_sense_input(4, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_HIGH);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help Daniel!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77378?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 08:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fab41f6-f17f-4415-8402-52d526b3e825</guid><dc:creator>mikelugarte</dc:creator><description>&lt;p&gt;Finally I put pin number 4 like the pin to wake up from system off. Now it wakes up in the moment that goes to sleep, without being activated the pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77377?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 08:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f6c38d-63b3-4d77-80e2-243a1c0adeab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which online compiler are you using? You are still running the compiled code on your board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77376?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 07:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a4fd58-57e0-42da-b56a-ac982864f314</guid><dc:creator>mikelugarte</dc:creator><description>&lt;p&gt;Sorry, now I used nrf_gpio_cfg_sense_input() but it keeps not working. I am not in debug mode, because I am using an online compiler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77375?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60f3afe-a8e9-469f-942c-ef3d0b7333fc</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Why do you use nrf_gpio_cfg_input()? I said you should use nrf_gpio_cfg_sense_input().&lt;/p&gt;
&lt;p&gt;Also note that if you are in debug mode, you will wake up from sleep mode immediately. Try to turn the DK on and off to exit debug mode, if it still doesnt work with nrf_gpio_cfg_sense_input().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77374?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f215333-fe61-4d66-b56e-7dcd52f36b65</guid><dc:creator>mikelugarte</dc:creator><description>&lt;p&gt;I use the P0_4. This is how I configure GPIO pin:&lt;code&gt;nrf_gpio_cfg_input(RecibePin, nrf_gpio_pin_pull_t pull_config)&lt;/code&gt;
To enter to system off mode I use NRF_POWER-&amp;gt;SYSTEMOFF=1 command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77373?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ede29b5-8d3d-47d4-accf-e3505bdb5bd1</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;What pin number did you use? How are you entering sleep mode? You need to pull the pin low to wake up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77372?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 14:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad66b0dc-450b-4afe-81c3-efcee64df580</guid><dc:creator>mikelugarte</dc:creator><description>&lt;p&gt;I used your settings but it&amp;#39;s not working with my program. My controller still in System Off. I changed PIN NUMBER for one of my pin names, which is a digital input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77381?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 13:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88cbf90-fb34-4974-b6fa-490b4398e625</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;You can configure the pin like this to wake up from sleep:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_sense_input(PIN NUMBER, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of GPIO to wake up from System Off</title><link>https://devzone.nordicsemi.com/thread/77380?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 13:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6ec3a2f-4874-4318-8056-ab6c0b6ec1bc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find examples on how to wakeup from system on and system off mode on our &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples"&gt;GitHub page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>