<?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>How to use zephyr counter api with GPIOTE PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116019/how-to-use-zephyr-counter-api-with-gpiote-ppi</link><description>Hello, 
 I need to use timer1 in counter mode. 
 how can I use GPIOTE to start the interrupt of the timer( NRF_TIMER1-&amp;gt;TASKS_START = 1) ? 
 when using directly the nrfx timers we used to &amp;quot;connect&amp;quot; the ppi like this - but to use this i need the register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2024 13:10:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116019/how-to-use-zephyr-counter-api-with-gpiote-ppi" /><item><title>RE: How to use zephyr counter api with GPIOTE PPI</title><link>https://devzone.nordicsemi.com/thread/508812?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 13:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8676905e-6a69-4333-b266-6d7624e27c52</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you had a look at this sample?&lt;/p&gt;
&lt;p&gt;This uses GPIOTE + PPI:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/samples/boards/nrf/nrfx/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/samples/boards/nrf/nrfx/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which NCS version are you using?&lt;/p&gt;
&lt;p&gt;I shared an example for NCS v2.4.0 that times two signals here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104771/best-way-to-measure-time-between-falling-rising-edges-ncs-zephyr-nrf52840"&gt;Best way to measure time between falling/rising edges (NCS, Zephyr, NRF52840)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>