<?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>Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17501/set-2-pins-to-wakeup-from-system-on-and-off-and-know-which-pin-was-pressed</link><description>I want to configure two pins to be able to wake up both from System ON and OFF and know which pin was pressed 
 is it possible?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Nov 2016 09:49:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17501/set-2-pins-to-wakeup-from-system-on-and-off-and-know-which-pin-was-pressed" /><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67272?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2016 09:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9492ceed-a7f6-41f8-aef2-b00620315679</guid><dc:creator>KnightYusuf</dc:creator><description>&lt;p&gt;I see thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67271?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2016 09:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd3991d-4d85-408b-8cb7-88487c5bcff8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It is right, but then we hope that when we press the button that woke the system, it is still pressed while we read the GPIO status. Normally it will take around 800us for the clocks to stabilize. So if you press longer and if you read the pin status fast after the boot then it is reasonable to think that this way will work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67273?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2016 09:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fe86142-5543-44e9-9046-a98ef88130e3</guid><dc:creator>KnightYusuf</dc:creator><description>&lt;p&gt;I&amp;#39;ve two buttons pins 16 and 17 just after wake up i&amp;#39;ll check in GPIO-&amp;gt;IN which one of them has the value 1 to know wich one was pressed. is it wrong?&lt;/p&gt;
&lt;p&gt;Thank you very much for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67270?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2016 09:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8685fb28-9a2e-41c4-aa17-dabf28669e9c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Oh yes, that should work, hopefully the pin state remains the same during the wakeup process and while reading the pins again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67269?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2016 08:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26f39af5-b8af-4b0e-a177-db4f0a83d14f</guid><dc:creator>KnightYusuf</dc:creator><description>&lt;p&gt;What about checking NRF_GPIO-&amp;gt;IN, I red that the GPIO is not reset on wake up from System off.
&lt;a href="https://devzone.nordicsemi.com/question/69787/cause-of-wake-up/?answer=69842#post-id-69842"&gt;https://devzone.nordicsemi.com/question/69787/cause-of-wake-up/?answer=69842#post-id-69842&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set 2 pins to wakeup from System ON and OFF, and know which pin was pressed</title><link>https://devzone.nordicsemi.com/thread/67268?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2016 20:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4f604f-7ae3-43e8-b0d7-f30b804d0b19</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not possible for SYSTEMOFF, as the wakeup will reset almost all the peripherals including GPIOs so you wont be able to tell which GPIO caused the wakeup.&lt;/p&gt;
&lt;p&gt;Only possible reasons that we could know are mentioned in NRF_POWER-&amp;gt;RESETREAS register in nrf51 reference manual section 12.3 Table 53.&lt;/p&gt;
&lt;p&gt;Bit number 16 will only tell you that the wakeup is from systemoff due to DETECT signal from gpio but it wont tell you which GPIO caused this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>