<?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>Frequency Measurement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45281/frequency-measurement</link><description>Hi, 
 I am relatively new to C coding, and need to use the NRF52832 for a school project. I need to write a program that measures frequency from a GPIO pin. From what I&amp;#39;ve gathered, I need to create a PPI channel with a GPIOTE event on rising edge linked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Mar 2019 15:02:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45281/frequency-measurement" /><item><title>RE: Frequency Measurement</title><link>https://devzone.nordicsemi.com/thread/178161?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 15:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd7c1ade-5db5-4e38-9183-35b3a33e5426</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;span&gt;Take a look at the answer given in&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/9036/measuring-input-gpio-pin-frequency-with-soft-device-running"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;thread, where the frequency is measured by using multiple PPI channels, two TIMER&amp;#39;s and the GPIOTE peripheral. I don&amp;#39;t think we have any examples doing this in the SDK, but It shouldn&amp;#39;t be too difficult to create it yourself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would recommend you to follow this approach:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Understand how the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fppi.html"&gt;PPI&lt;/a&gt; works&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Understand how the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fgpiote.html&amp;amp;cp=2_1_0_20&amp;amp;anchor=concept_knz_kww_lr"&gt;GPIO&lt;/a&gt;&amp;nbsp;and the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fgpiote.html&amp;amp;cp=2_1_0_20&amp;amp;anchor=concept_knz_kww_lr"&gt;GPIOTE&lt;/a&gt; works&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Understand how the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftimer.html&amp;amp;cp=2_1_0_23&amp;amp;anchor=concept_xbd_hqp_sr"&gt;TIMER&lt;/a&gt; works&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Take a look at the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fnrf_gpiote_example.html&amp;amp;cp=4_0_0_4_5_13"&gt;GPIOTE example&lt;/a&gt; and the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fppi.html"&gt;PPI example&lt;/a&gt;&amp;nbsp;and understand how they work&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Implement the solution&amp;nbsp;based on the drawing and code given in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/9036/measuring-input-gpio-pin-frequency-with-soft-device-running"&gt;this&lt;/a&gt; thread&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;If you encounter any problems along the way, please ask! I will assist you till you have a complete solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>