<?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>GPIO sense interval?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4073/gpio-sense-interval</link><description>Dear Nordic Developer Zone, 
 I&amp;#39;m using nrf51822 EK testing the GPIO sense function. The code I&amp;#39;m using is based on what a nordic employee has posted elsewhere in this dev Zone. 
 I configured PIN 0 as input sensing for low level. It worked but couldn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Oct 2014 15:20:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4073/gpio-sense-interval" /><item><title>RE: GPIO sense interval?</title><link>https://devzone.nordicsemi.com/thread/14617?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 15:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84fcf7e9-4ae0-45f7-bdb5-38836f6660ce</guid><dc:creator>Tony.X</dc:creator><description>&lt;p&gt;Yeah, it worked. But it stimulates me thinking what if I want to use not the buttons but a general GPIO pin then how should I config that pin. From what I&amp;#39;ve known, those pins don&amp;#39;t have pull_up/down resistors connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO sense interval?</title><link>https://devzone.nordicsemi.com/thread/14616?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 15:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3195f7-1aad-4e11-a09f-969caa6f6161</guid><dc:creator>Tony.X</dc:creator><description>&lt;p&gt;I will try this out. Thanks for your advice. Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO sense interval?</title><link>https://devzone.nordicsemi.com/thread/14615?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 00:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37ca0289-2be0-4b0e-86df-c7f12714e05e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes your problem is here ..&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;| (NRF_GPIO_PIN_NOPULL &amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The evaluation kit doesn&amp;#39;t have pullup resistors on the buttons so when you release the button the voltage is just drifting slowly back up towards Vdd from 0 .. which in my experience takes about 1-2 seconds. You need NRF_GPIO_PIN_PULLUP.&lt;/p&gt;
&lt;p&gt;If you import the boards.h include and use the &amp;#39;BUTTON_PULL&amp;#39; define, it works for all boards because it&amp;#39;s defined appropriately there for each one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO sense interval?</title><link>https://devzone.nordicsemi.com/thread/14614?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 16:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dcbace3-56c7-4934-9191-822b63053e95</guid><dc:creator>Tony.X</dc:creator><description>&lt;p&gt;Thanks for your fast reply.
It wasn&amp;#39;t a __WFI before. Even without __WEF and __WFI, it has same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO sense interval?</title><link>https://devzone.nordicsemi.com/thread/14613?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 16:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e835ca0f-c7d5-4d6a-aad4-5d5904df4977</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if this is the issue or not, but could you try a __WFE rather than a __WFI?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>