<?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>Needed example code of GPIOTE port event on NRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91183/needed-example-code-of-gpiote-port-event-on-nrf5340</link><description>Hello All, 
 
 I need an example code of the GPIOTE port event on NRF5340 based on the nRF Connect SDK v1.9.0. 
 
 Thanks in advance,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Aug 2022 08:41:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91183/needed-example-code-of-gpiote-port-event-on-nrf5340" /><item><title>RE: Needed example code of GPIOTE port event on NRF5340</title><link>https://devzone.nordicsemi.com/thread/382845?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 08:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a96c0948-daae-44c0-a4b7-db14b14c7ba0</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have example code for GPIOTE events at zephyr/samples/boards/nrf/nrfx&lt;/p&gt;
&lt;p&gt;Simply change the high_accuracy field of the in_config to &amp;quot;false&amp;quot; to use PORT event instead of IN event.&lt;/p&gt;
&lt;p&gt;To verify, you can&amp;nbsp;call&amp;nbsp;&lt;span&gt;nrfx_gpiote_in_event_get&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;pin&lt;/span&gt;&lt;span&gt;) in the button_handler and compare the return value with&amp;nbsp;&lt;/span&gt;NRF_GPIOTE_EVENT_PORT.&lt;/p&gt;
&lt;p&gt;Here is a main file for the sample, which has been edited with these changes:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/45041.main.c"&gt;devzone.nordicsemi.com/.../45041.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>