<?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>nRF5340 GPIOE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74261/nrf5340-gpioe</link><description>how to use nRF5340 GPIO capture a rising edge or high event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Apr 2021 13:30:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74261/nrf5340-gpioe" /><item><title>RE: nRF5340 GPIOE</title><link>https://devzone.nordicsemi.com/thread/306131?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 13:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c379475-14c5-4b74-8e46-e593c5312f80</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Take a look at the sample &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/basic/button/src/main.c#L56-L79"&gt;&amp;lt;ncs location&amp;gt;/zephyr/sample/basic/button&lt;/a&gt;&amp;nbsp;how this can be achieved. The third argument of &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/basic/button/src/main.c#L69-L71"&gt;gpio_pin_interrupt_configure(..)&lt;/a&gt;&amp;nbsp;configures how the GPIO interrupt should be triggered. Take a look at &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/include/drivers/gpio.h#L79-L202"&gt;zephyr/include/drivers/gpio.h&lt;/a&gt; to see the different trigger options, and use any of the options starting with GPIO_INT.&lt;/p&gt;
&lt;p&gt;The button sample will use the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/drivers/gpio/gpio_nrfx.c"&gt;gpio_nrfx.c driver&lt;/a&gt; under the hood, which will use the GPIOTE peripheral to generate events on GPIO changes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you would like to use GPIOTE in combination with PPI, you could check out the following sample:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs2/samples/boards/nrf/nrfx"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs2/samples/boards/nrf/nrfx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>