<?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>Low accuracy GPIO pins, interrupt control, system wake up mechanism</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73134/low-accuracy-gpio-pins-interrupt-control-system-wake-up-mechanism</link><description>Board: nRF51-DK (nRF51422 chip) 
 SDK: 12.3.0 
 SoftDevice: S130 
 Compilation settings 
 
 Optimization level O1 
 Debug information generated 
 
 First GPIO pin is mapped to Button 1 (not shown in code) to wake up from SYSTEM OFF state. 
 Second GPIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Mar 2021 14:38:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73134/low-accuracy-gpio-pins-interrupt-control-system-wake-up-mechanism" /><item><title>RE: Low accuracy GPIO pins, interrupt control, system wake up mechanism</title><link>https://devzone.nordicsemi.com/thread/302171?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b228d74-73a8-4d00-bc13-d358d56a4a04</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;a. You can configure the pin polarity to toggle: &lt;span style="font-family:monospace;font-size:11.6667px;left:533.473px;top:806.725px;"&gt; Event mode: Generate&lt;/span&gt;&lt;span style="font-family:monospace;font-size:11.6667px;left:533.473px;top:820.725px;"&gt;IN[n] when any change on pin.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;b. If I remember correctly you do not need to clear the interrupt. but you need to clear the event that triggered the interrupt.&lt;/p&gt;
&lt;p&gt;c. Yes, I think this should be fine.&lt;/p&gt;
&lt;p&gt;d. See: &lt;span&gt;&lt;a title="Usage" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/hardware_driver_gpiote.html?cp=7_5_9_2_5_4_1#gpiote_in_usage"&gt;Usage&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;e. I am sure if will &amp;quot;disable&amp;quot; the wakeup while in system on. In system off. if the pin is configured correctly in detect mode, I think it will wake up/reset regardless.&lt;/p&gt;
&lt;p&gt;f. In system on you will be woken by an interrupt or event. In system off you will be woken by the gpio in &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf?cp=5_2_0#%5B%7B%22num%22%3A570%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C56.692%2C439.292%2Cnull%5D"&gt;detect mode&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>