<?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>Trouble getting GPIOTE event to fire directly manipulating registers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77013/trouble-getting-gpiote-event-to-fire-directly-manipulating-registers</link><description>Hi there, 
 I&amp;#39;m working on something with hard real-time requirements - for this and a number of other reasons, I&amp;#39;m writing directly to the registers. 
 I&amp;#39;m trying to generate an interrupt when pressing SW1 on the nRF52840-DONGLE board (connect to P1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 14:36:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77013/trouble-getting-gpiote-event-to-fire-directly-manipulating-registers" /><item><title>RE: Trouble getting GPIOTE event to fire directly manipulating registers</title><link>https://devzone.nordicsemi.com/thread/318273?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 14:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7ac0cd7-2d32-4aef-b6a8-f5da9c5f8f8e</guid><dc:creator>zigenz</dc:creator><description>&lt;p&gt;Oh dear, I should have known that - all good now. Thanks Vidar!&lt;/p&gt;
&lt;p&gt;Note: self-administered uppercut has been performed!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble getting GPIOTE event to fire directly manipulating registers</title><link>https://devzone.nordicsemi.com/thread/318215?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 12:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c42632b-d63a-4030-b239-3712e0106b4c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will need to call NVIC_EnableIRQ(GPIOTE_IRQn) to enable the interrupt in the NVIC as well. Also, remember to clear the GPIOTE event from your interrupt handler. Otherwise the interrupt will be triggered again as soon as you exit the handler.&lt;/p&gt;
&lt;p&gt;//Clearing IN event&lt;/p&gt;
&lt;p&gt;NRF_GPIOTE-&amp;gt;EVENTS_IN[CHANNEL_NUM] = 0;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>