<?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>PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24391/port-event-vs-nrf_drv_gpiote_in_init</link><description>nrf_drv_gpiote_in_config_t in_config_lotohi = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
if(!nrf_drv_gpiote_is_init())
{
 err_code = nrf_drv_gpiote_init();
 APP_ERROR_CHECK(err_code);
}
err_code = nrf_drv_gpiote_in_init(GPIO_AC_INTP1_PIN, &amp;amp;in_config_lotohi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2019 07:04:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24391/port-event-vs-nrf_drv_gpiote_in_init" /><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/210280?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 07:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0596827a-bb93-4bb0-9e4f-82c59ba6e5e5</guid><dc:creator>GT</dc:creator><description>&lt;p&gt;What is the&amp;nbsp;&lt;span&gt;difference between IN EVENT and PORT event?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96050?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2017 14:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc08d74c-3a7b-41c6-a447-27f6c9e09bbb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;strong&gt;1:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For high accuracy mode(IN_EVENT) there is a limit of 8 pins on the nRF52. On nRF51 the limit is 4. This limit is set by the number of GPIOTE channels available. For low accuracy mode (PORT event) there is no such limit. You must specify &lt;code&gt;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&lt;/code&gt;, which is the number of pins used for low power EVENTS_PORT. This define can be found in &lt;code&gt;sdk_config.h&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Yes, you need to call &lt;code&gt;nrf_drv_gpiote_init()&lt;/code&gt; if you want to use PORT or IN_EVENT. This function is needed for initializing the GPIOTE module.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Yes, you can do that. Also, for buttons you might want to look into the app_button library if you have problem with debounce on the buttons(so a single button press doesn&amp;#39;t appear like multiple presses).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96053?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2017 05:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d682cc-ef6f-46da-8cdc-a5dfd5fabbbb</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Yes you right, i changed it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96049?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2017 03:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120f0080-42cb-46aa-a767-5a22512a038e</guid><dc:creator>Jeong Hyun Seok</dc:creator><description>&lt;p&gt;Can I have more questions?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;So I can use &lt;strong&gt;nrf_drv_gpiote_in_init()&lt;/strong&gt; for every 31 GPIO pins? or there is limitations for pin numbers. (ex, 8 pin)&lt;/li&gt;
&lt;li&gt;if I don&amp;#39;t use IN_EVENT, still I need to init GPIOTE with &lt;strong&gt;nrf_drv_gpiote_init()&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Can I register (with nrf_drv_gpiote_in_init())  and use all different event handler functions for each GPIO pin?
ex) pin 1 Port Event -&amp;gt; key1_event_handler function
pin 2 Port Event -&amp;gt; key2_event_handler function&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96054?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2017 03:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b177e5-9b5b-4399-8007-c7a0e097e89e</guid><dc:creator>Jeong Hyun Seok</dc:creator><description>&lt;p&gt;Thank you. but I think you mention false to true, true to false&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96052?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 08:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:759c0ffe-a090-4ae8-af43-6c27f3d699d5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It&amp;#39;s the other way around&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96048?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 08:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc21065-40dc-4102-b3ec-90b031730889</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you set the flag to &lt;code&gt;true&lt;/code&gt; you use IN_EVENT(high accuracy mode), if you set the flag to &lt;code&gt;false&lt;/code&gt;
you use PORT event (low accuracy mode).&lt;/p&gt;
&lt;p&gt;GPIOTE_CONFIG_IN_SENSE_LOTOHI(false) is a PORT event&lt;/p&gt;
&lt;p&gt;GPIOTE_CONFIG_IN_SENSE_LOTOHI(true) is an IN_EVENT.&lt;/p&gt;
&lt;p&gt;See API Reference &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/group__nrf__drv__gpiote.html?cp=4_0_3_6_6_4_0_4#ga609b67d10277c1ceaf7eecb6f5e9d1a9"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PORT Event vs nrf_drv_gpiote_in_init()</title><link>https://devzone.nordicsemi.com/thread/96051?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 07:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18542156-d6fc-46b4-b8d9-e1b763ac0fae</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;GPIOTE_CONFIG_IN_SENSE_LOTOHI(true)  is an IN_EVENT.&lt;/p&gt;
&lt;p&gt;GPIOTE_CONFIG_IN_SENSE_LOTOHI(false)  is a PORT event&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>