<?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>52832 PPI and GPIOTE, TIMER</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94065/52832-ppi-and-gpiote-timer</link><description>hi, I want to use PPI function for timer trigger GPIOTE, 
 when timer interrupt comes, my output pin will toggle, but I find my code doesn&amp;#39;t work, I think it is GPIOTE mistake, because I use timer for triggering other timer task, its ok. 
 could you check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Nov 2022 11:35:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94065/52832-ppi-and-gpiote-timer" /><item><title>RE: 52832 PPI and GPIOTE, TIMER</title><link>https://devzone.nordicsemi.com/thread/397146?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 11:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d274eda-44ff-4b23-ac26-3dcc974a3f5e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So now it works?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 PPI and GPIOTE, TIMER</title><link>https://devzone.nordicsemi.com/thread/397051?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 05:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ea889a-9fbe-4f54-849d-3709f54d0756</guid><dc:creator>K-night</dc:creator><description>&lt;p&gt;yes,&amp;nbsp; I added &amp;quot;nrf_drv_gpiote_out_config_t config = GPIOTE_CONFIG_OUT_TASK_TOGGLE(false);&amp;quot;&amp;nbsp;before my GPIOTE init, now it is ok.&lt;/p&gt;
&lt;p&gt;thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 PPI and GPIOTE, TIMER</title><link>https://devzone.nordicsemi.com/thread/396778?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 01:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd573be-8187-409b-9133-9bd5bb64a2d0</guid><dc:creator>K-night</dc:creator><description>&lt;p&gt;not toggle, I hope when compare pin output low, and GPIOTE output low,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;compare pin output high, and GPIOTE output high,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but I check compare high and low register are correct, GPIOTE pin doesn&amp;#39;t output, does my GPIOTE output pin register&amp;nbsp;set wrong?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 PPI and GPIOTE, TIMER</title><link>https://devzone.nordicsemi.com/thread/396710?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 14:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d45d974e-9d9b-4e85-8c95-67dee23b2a7d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;On exactly what condition do you want your pin to toggle? I see that you set&amp;nbsp;&lt;strong&gt;compare_evt_addr_down&amp;nbsp;&lt;/strong&gt;and &lt;strong&gt;compare_evt_addr_up&amp;nbsp;&lt;/strong&gt;but don&amp;#39;t&amp;#39; actually use them in the code? Right now you set the pin to toggle when timer 0 and timer 1 generate a COMPARE event based on CC[0]. You also need to initialize&amp;nbsp;m_gpiote correctly before passing it to&amp;nbsp;nrf_drv_gpiote_out_init().&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_gpiote_out_config_t config = GPIOTE_CONFIG_OUT_TASK_TOGGLE(false);

    err_code = nrf_drv_gpiote_out_init(GPIO_OUTPUT_PIN_NUMBER, &amp;amp;config);
    APP_ERROR_CHECK(err_code);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>