<?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>Can&amp;#39;t configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state</link><description>Hi, 
 I try configure 2 gpio pins with opposite pull state, one NRF_GPIO_PIN_PULLUP, other NRF_GPIO_PIN_PULLDOWN : 
 
 
 nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false); in_config.pull = NRF_GPIO_PIN_PULLUP; err_code = nrf_drv_gpiote_in_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Sep 2020 08:39:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state" /><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/270496?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 08:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ad1aeb-aec0-44b1-8cc7-eb31f35dbb7a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Great, I am happy to hear that the application now works as intended!&amp;nbsp;&lt;/p&gt;
[quote user="Serhio"]Thank you for your help.[/quote]
&lt;p&gt;It is no problem at all, Serhio! I am happy to help.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/270423?ContentTypeID=1</link><pubDate>Sun, 20 Sep 2020 12:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee54c0a-7325-4077-9cf3-bfab95e960b7</guid><dc:creator>Serhio</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/269293"]Is the application now working as you had intended?[/quote]
&lt;p&gt;Yes, Karl, I&amp;#39;m satisfied how the application works now.&amp;nbsp;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/269293?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 07:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2feb468f-073b-46af-9a85-17de2d9d361b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Serhio"]I`m very&amp;nbsp;&lt;span&gt;sorry&amp;nbsp;for my&amp;nbsp;late&amp;nbsp;reply. I was on vacation.&lt;/span&gt;[/quote]
&lt;p&gt;No worries at all, I hope you had a great vacation!&lt;/p&gt;
[quote user="Serhio"]NRF52832_xxAA_REV2, SoftDevice S132 v5.0.0[/quote]
&lt;p&gt;Thank you for letting me know.&lt;/p&gt;
[quote user="Serhio"]I tried. And it works![/quote][quote user="Serhio"]I use&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_TOGGLE only for one button and now&lt;span&gt;...&lt;/span&gt; works both buttons..[/quote]
&lt;p&gt;I am glad to hear that! Then I would think the problem was caused due to the PORT event already being generated when the second one came in.&lt;br /&gt;Is the application now working as you had intended?&lt;br /&gt;If you are using TOGGLE on both, you can keep track of which direction it has transitioned since the last event.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/269247?ContentTypeID=1</link><pubDate>Sat, 12 Sep 2020 15:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcfac315-33be-4278-8d26-71ac5bf20d30</guid><dc:creator>Serhio</dc:creator><description>&lt;p&gt;Hello! I`m very&amp;nbsp;&lt;span&gt;sorry&amp;nbsp;for my&amp;nbsp;late&amp;nbsp;reply. I was on vacation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/266241"]So, what you are saying is that both GPIOs in questions are connected with a button, sensing a change in the level, correct?[/quote]
&lt;p&gt;Yes&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/266241"]What was the results of these trails, were you able to confirm the callback behavior using the LED?[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Yes, the LED state did not change&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/266241"]Which SoC version and variant are you working with?[/quote]
&lt;p&gt;NRF52832_xxAA_REV2, SoftDevice S132 v5.0.0&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/266650"]Could you also try to use&amp;nbsp;&lt;code&gt;GPIOTE_CONFIG_IN_SENSE_TOGGLE()&lt;/code&gt;&lt;span&gt;&amp;nbsp;instead of _LOTOHI for your buttons?&lt;/span&gt;[/quote]
&lt;p&gt;I tried. And it works! Code:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;{    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
    in_config.pull = NRF_GPIO_PIN_PULLUP;
    err_code = nrf_drv_gpiote_in_init(PIN_BUTTON, &amp;amp;in_config, button_handler);
    APP_ERROR_CHECK(err_code);
    nrf_drv_gpiote_in_event_enable(PIN_BUTTON, true);}/**/


    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
    in_config.pull = NRF_GPIO_PIN_PULLDOWN;
    err_code = nrf_drv_gpiote_in_init(PIN_IMPULSE, &amp;amp;in_config, impulse_handler);
    APP_ERROR_CHECK(err_code);
    nrf_drv_gpiote_in_event_enable(PIN_IMPULSE, true);
&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;I use&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_TOGGLE only for one button and now&lt;span class="mceItem mceNonEditable mceQuote" id="mceQuote4"&gt;...&lt;/span&gt; works both buttons..&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/266241"]Could you share with me a stripped down project in which you are seeing this behavior?&lt;br /&gt;I will then attempt to replicate the behavior on my end, so that I may better debug it.[/quote]
&lt;p&gt;For reproduce issue, just use code from my first message. And connect one button to &amp;quot;+&amp;quot; and other to &amp;quot;-&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/266650?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 08:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d02e4d3b-fc4f-474b-80bf-159f4a3cce36</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;Could you also try to use&amp;nbsp;&lt;code&gt;GPIOTE_CONFIG_IN_SENSE_TOGGLE()&lt;/code&gt;&lt;span&gt;&amp;nbsp;instead of _LOTOHI for your buttons?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I believe that if a port event is triggered on a low to high transition on a pin, a new port event can’t be triggered before that pin has gone low again or the pin is configured to sense low (which will trigger a new event on high to low transition). See the answers to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/question/38976/missing-interrupts-on-gpioe-port-events/"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/question/15696/nrf51822-sense-pin-in-port-mode-doesnt-solve-the-gpiote-overconsumption-in-event-mode/?comment=15962#comment-15962"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;post.&lt;br /&gt;&lt;br /&gt;The results of this test will also tell us more about what might be causing the unexpected behavior you are seeing.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/266241?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 13:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138f89a0-d5b2-4bea-bf48-85cc59a4db41</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;I am terribly sorry for the late reply.&lt;/p&gt;
[quote user="Serhio"]For testing purposes, I`m connecting&amp;nbsp;it with a plus. Thus, it is like a button.&amp;nbsp;In release, a phototransistor will be connected there.[/quote]
&lt;p&gt;Thank you for clarifying. So, what you are saying is that both GPIOs in questions are connected with a button, sensing a change in the level, correct?&lt;/p&gt;
[quote user="Serhio"]I like your holistic approach) I&amp;#39;ve tried using&amp;nbsp;nrf_gpio_pin_toggle(PIN_LED)[/quote]
&lt;p&gt;Great! What was the results of these trails, were you able to confirm the callback behavior using the LED?&lt;/p&gt;
[quote user="Serhio"]I am aware of this define. But thank you for not forgetting about that. It`s equal 4[/quote]
&lt;p&gt;Thank you for verifying this. It is indeed quickly overlooked, and so I just had to make sure this was not the case right now.&amp;nbsp;&lt;/p&gt;
[quote user="Serhio"]Now for the good news.&amp;nbsp;As you suggested. I setup pin with hi-&lt;span&gt;accuracy is true and&amp;nbsp;now it works.&lt;/span&gt;[/quote]
&lt;p&gt;That is good news indeed!&lt;/p&gt;
[quote user="Serhio"]But does this cause increased power consumption? The device under development is powered by a CR2032 battery and the issue of power consumption is very important.[/quote]
&lt;p&gt;Yes, high-accuracy GPIOTE IN_EVENTS does increase power consumption compared to the low-accuracy PORT event.&amp;nbsp;&lt;span&gt;The GPIOTE IN will enable the HFCLK source to run when a edge is triggered, then start sampling using the HFCLK.&lt;/span&gt;&lt;br /&gt;There is also some &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52832_errata.html"&gt;Erratas present for the GPIOTE on the nRF52832&lt;/a&gt;. Which SoC version and variant are you working with?&lt;/p&gt;
[quote user="Serhio"]Thus, low-accuracy don&amp;#39;t work for pins with opposite pull state?[/quote]
&lt;p&gt;I have never heard of this behavior before, and neither has my colleagues that I have conferred with. I would not expect this either.&lt;br /&gt;&lt;br /&gt;Could you share with me a stripped down project in which you are seeing this behavior?&lt;br /&gt;I will then attempt to replicate the behavior on my end, so that I may better debug it.&lt;br /&gt;&lt;br /&gt;Looking forward to getting to the bottom of this!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/265413?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 19:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2856bfe0-1c7a-46de-a471-35cd90baa129</guid><dc:creator>Serhio</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/265255"]Could you also tell me what this pin is connected to?[/quote]
&lt;p&gt;For testing purposes, I`m connecting&amp;nbsp;it with a plus. Thus, it is like a button.&amp;nbsp;In release, a phototransistor will be connected there.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/265255"]Instead, I would suggest using a LED or sending a message to verify that you have entered into one of the callbacks.[/quote]
&lt;p&gt;I like your holistic approach) I&amp;#39;ve tried using&amp;nbsp;nrf_gpio_pin_toggle(PIN_LED)&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/265255"]Could you tell me what your&amp;nbsp;&lt;em&gt;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;nbsp;&lt;/em&gt;is defined as in your sdk_config?[/quote]
&lt;p&gt;I am aware of this define. But thank you for not forgetting about that. It`s equal 4&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64839/can-t-configure-2-gpio-pins-with-opposite-pull-state/265255"]Furthermore, I would alert you to the difference between PORT event and IN_EVENT, since you are currently using low-accuracy configuration which means that both pins will generate the same PORT event, as opposed to high-accuracy configuration which has a dedicated IN_EVENT per pin.[/quote]
&lt;p&gt;Now for the good news.&amp;nbsp;As you suggested. I setup pin with hi-&lt;span&gt;accuracy is true and&amp;nbsp;now it works.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div class="tlid-input input has-transliteration"&gt;
&lt;div class="source-wrap"&gt;
&lt;div class="input-full-height-wrapper tlid-input-full-height-wrapper"&gt;
&lt;div class="source-input"&gt;
&lt;div class="tlid-source-transliteration-container source-transliteration-container transliteration-container"&gt;
&lt;div class="tlid-transliteration-content transliteration-content full"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="tlid-results-container results-container"&gt;
&lt;div class="tlid-result result-dict-wrapper"&gt;
&lt;div class="result tlid-copy-target"&gt;
&lt;div class="result-header"&gt;
&lt;div class="starbutton jfk-button-flat jfk-button unstarred"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="text-wrap tlid-copy-target"&gt;
&lt;div class="result-shield-container tlid-copy-target"&gt;But does this cause increased power consumption? The device under development is powered by a CR2032 battery and the issue of power consumption is very important.&lt;/div&gt;
&lt;div class="result-shield-container tlid-copy-target"&gt;&lt;/div&gt;
&lt;div class="result-shield-container tlid-copy-target"&gt;Thus, low-accuracy don&amp;#39;t work for pins with opposite pull state?&lt;/div&gt;
&lt;div class="result-shield-container tlid-copy-target"&gt;&lt;/div&gt;
&lt;div class="result-shield-container tlid-copy-target"&gt;Thanks for your answers.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/265255?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 09:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ace3a8e-a5ba-40e6-bee0-ed1b37e6eec7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Sorry for my late reply.&lt;br /&gt;&lt;br /&gt;Thank you for clarifying.&lt;/p&gt;
[quote user="Serhio"]PIN_IMPULSE - 9 (I use CONFIG_NFCT_PINS_AS_GPIOS define)[/quote]
&lt;p&gt;Could you also tell me what this pin is connected to?&amp;nbsp;&lt;/p&gt;
[quote user="Serhio"]callback called(log is displayed).[/quote]
&lt;p&gt;Are you using deferred logging, by the way?&lt;br /&gt;If you are, it is not a definite way to see the flow of your program using logs, since they will be written only when the CPU have no other task.&lt;br /&gt;Instead, I would suggest using a LED or sending a message to verify that you have entered into one of the callbacks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Serhio"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;And then use&amp;nbsp;nrf_gpio_pin_read(PIN_BUTTON)&lt;/p&gt;&lt;p&gt;But that doesn&amp;#39;t suit me..&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;No, I would not recommend this, this is far from ideal. &lt;br /&gt;I see now that you are configuring both your inputs as low-accuracy.&amp;nbsp;&lt;br /&gt;Could you tell me what your&amp;nbsp;&lt;em&gt;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;nbsp;&lt;/em&gt;is defined as in your sdk_config? I suspect it might be set to 1, in which case you should try increasing it to 2. Please try this, and let me know if this resolves your issue.&lt;br /&gt;&lt;br /&gt;Furthermore, I would alert you to the difference between PORT event and IN_EVENT, since you are currently using low-accuracy configuration which means that both pins will generate the same PORT event, as opposed to high-accuracy configuration which has a dedicated IN_EVENT per pin.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/264955?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 21:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a655f07-6a29-4967-9920-1c717c685053</guid><dc:creator>Serhio</dc:creator><description>&lt;p&gt;In same time, I can use this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_gpio_cfg_input(PIN_BUTTON, NRF_GPIO_PIN_PULLUP);

    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
    in_config.pull = NRF_GPIO_PIN_PULLDOWN;
    err_code = nrf_drv_gpiote_in_init(PIN_IMPULSE, &amp;amp;in_config, impulse_handler);
    APP_ERROR_CHECK(err_code);
    nrf_drv_gpiote_in_event_enable(PIN_IMPULSE, true);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then use&amp;nbsp;nrf_gpio_pin_read(PIN_BUTTON)&lt;/p&gt;
&lt;p&gt;But that doesn&amp;#39;t suit me..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/264953?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 21:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf7daf9a-3dcb-43ec-8d6e-1ae109319c6d</guid><dc:creator>Serhio</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello, Karl!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Callback code, for example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;void button_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
   NRF_LOG_INFO(&amp;quot;button_handler %d %d&amp;quot;, pin, action);
   nrf_gpio_pin_toggle(PIN_LED);
}

void impulse_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
   NRF_LOG_INFO(&amp;quot;impulse_handler %d %d&amp;quot;, pin, action);
}&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I configure 1(any) gpio pin then corresponding&amp;nbsp;callback called(log is displayed).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PIN_BUTTON - 25&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PIN_IMPULSE - 9 (I use CONFIG_NFCT_PINS_AS_GPIOS define)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use&amp;nbsp;custom board:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/800x240/__key/communityserver-discussions-components-files/4/6763.H4b27c5fd4af64d8da75a82d8e0b490dbm.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't configure 2 gpio pins with opposite pull state</title><link>https://devzone.nordicsemi.com/thread/264760?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 08:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf36948-83ce-4981-88f7-9f573595e7fb</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;That sounds strange.&lt;br /&gt;Could you detail your issue some more:&amp;nbsp;&lt;/p&gt;
[quote user=""]But, callback don`t called.[/quote]
&lt;p&gt;How are you testing this, and how does it behave differently than expected? I just want to make sure that I have understood you correctly.&lt;br /&gt;Could you also share the callback code, which is / is not being called?&lt;/p&gt;
[quote user=""]Why is this occurs? How to set up pins with diffrent pull state?[/quote]
&lt;p&gt;Which pins on the nRF52832 are you using, and what are they connected to?&lt;br /&gt;Are you working with a nRF52 DK, or a custom board?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>