<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Max. measurable GPIO input frequency</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/82599/max-measurable-gpio-input-frequency</link><description>Hi all, 
 I have to measure the frequency of a PWM signal routed to one of the nRF52840 GPIO pins. 
 The signal frequency is ~3MHz. 
 The measurement is done with the help of two timers, the code is taken from this thread : 
 
 As long as the PWM frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Dec 2021 14:23:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/82599/max-measurable-gpio-input-frequency" /><item><title>RE: Max. measurable GPIO input frequency</title><link>https://test-devzone.nordicsemi.com/thread/343219?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 14:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e45ece-f796-408e-b59d-8c2c1e69eb1c</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello hypn0,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Without having checked or done the math, I believe this frequency is about the maximum frequency possible to measure using PPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PPI itself is running at 16MHz. There i up to 1 tick delay on the PPI, so that gives you a 8MHz. The you have some delay in the GPIO itself. The pad capacitance is 5pF. Depending on the input signal you are measuring it will take a certain amount of time from you set the output high until the input on the nRF is actually pulled high. If this takes a few µs, then that would explain the delay you are seeing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you try to use a logic analyzer to measure your input signal, and then use the PPI to toggle a pin on every GPIO event (so that you basically duplicate the input signal), what sort of delay are you seeing between the (PWM) input and the (GPIO) output using the PWM generator that you are using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>