<?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>GPIOTE Set/Clr vs. Out task</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115502/gpiote-set-clr-vs-out-task</link><description>I would like to set a gpio pin on Radio RX Ready and clear it on Radio Disable all via PPI. Below is my code. I only get the pin to change levels when the OUT task polarity is set to NRF_GPIOTE_POLARITY_TOGGLE. Why is this? I&amp;#39;m using the Set &amp;amp; Clear tasks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Oct 2024 18:35:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115502/gpiote-set-clr-vs-out-task" /><item><title>RE: GPIOTE Set/Clr vs. Out task</title><link>https://devzone.nordicsemi.com/thread/506578?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 18:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d2978a-32b1-4462-bd94-7d016db11447</guid><dc:creator>KWolfe81</dc:creator><description>&lt;p&gt;Worked perfectly fine.&amp;nbsp; And I see, taking a look at the nrfx_gpiote.c code why.&amp;nbsp; In nrfx_gpiote_output_configure(), there&amp;#39;s the block:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;        nrf_gpiote_te_default(NRF_GPIOTE, ch);
        m_cb.pin_flags[pin] &amp;amp;= ~(PIN_FLAG_TE_USED | PIN_TE_ID_MASK);
        if (p_task_config-&amp;gt;polarity != NRF_GPIOTE_POLARITY_NONE)
        {
            nrf_gpiote_task_configure(NRF_GPIOTE, ch, pin,
                                      p_task_config-&amp;gt;polarity,
                                      p_task_config-&amp;gt;init_val);
            m_cb.pin_flags[pin] |= PIN_FLAG_TE_ID(ch);
        }
    }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That conditional if statement&amp;nbsp;on the third line is&amp;nbsp;stopping my setup.&amp;nbsp; Probably an oversight in the library, but at least it all makes sense. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE Set/Clr vs. Out task</title><link>https://devzone.nordicsemi.com/thread/506421?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 07:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cef7790-0918-48e7-9de1-6f824fabcde3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Could you try to set the .polarity field to NRF_GPIO_POLARITY_NONE when you use the set and clear&amp;nbsp; tasks?&lt;/p&gt;
&lt;p&gt;Please try this and let me know how it goes.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>