<?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>Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118377/upto-6-frequency-measurement-through-gpios</link><description>nRF5340Dk with NCS 2.6.1 and toolchain 2.6.1. 
 I want to measure 6 frequencies for my application, these frequencies would be attached to GPIO pins and needs to be measured. 
 
 Few days ago I had this similar question ( Case ID : 339377 / LINK ) where</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Feb 2025 00:16:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118377/upto-6-frequency-measurement-through-gpios" /><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/522542?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 00:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b4e3de1-a706-4ca6-80d1-90d519cc0c3f</guid><dc:creator>Sigurd</dc:creator><description>[quote user="frogrammer"]But switching between GPIOs i can take a look. So, in the program above do i just loop between PIN numbers?[/quote]
&lt;p&gt;Correct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520352?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 11:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a805d40-e8ed-407b-b490-90e971044afc</guid><dc:creator>frogrammer</dc:creator><description>&lt;p&gt;It is a RC oscillator with Schmitt triggered output measuring changes in Capacitance. And the capacitance could vary or could stay stable depending on some external influence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520351?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 11:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d5f676-08d2-46dd-a2a2-d17a47592048</guid><dc:creator>Sigurd</dc:creator><description>[quote user="frogrammer"]My first target is to measure concurrently. because changes are instant and need to catch that. It might get lost during switching to another GPIO.&amp;nbsp;[/quote]
&lt;p&gt;How often does the&amp;nbsp;&lt;span&gt;frequencies&amp;nbsp;changes?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520286?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 23:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c9388a2-66ca-44cf-9000-f53f39615fb2</guid><dc:creator>frogrammer</dc:creator><description>&lt;p&gt;My first target is to measure concurrently. because changes are instant and need to catch that. It might get lost during switching to another GPIO.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But switching between GPIOs i can take a look. So, in the program above do i just loop between PIN numbers? or what &amp;nbsp;is the best way you suggest?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520275?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 21:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6071935-5718-4971-8e5d-26cfe1605106</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you need to it&amp;nbsp;concurrently? Or could you e.g. measure the frequency for x amount of time on pin 1, then switch to the next pin, measure for x amount of time, &lt;span&gt;switch&amp;nbsp;&lt;/span&gt;to next pin, etc, etc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520272?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 20:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c18d98b-1584-41e0-b4f9-ececb20804fe</guid><dc:creator>frogrammer</dc:creator><description>&lt;p&gt;Ok got it. Is there any work around to have 6 frequencies measured? I wanted to stick to nRF5340 solely.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upto 6 frequency measurement through GPIOs</title><link>https://devzone.nordicsemi.com/thread/520270?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 20:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cc2e984-e1de-4fa1-a7d9-c02ca05489d9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]Meaning, there is only one counter per timer which is my TIMER0&amp;nbsp; &amp;#39;&amp;#39;NRF_TIMER_TASK_COUNT&amp;#39;&amp;#39;[/quote]
&lt;p&gt;&lt;span&gt;Correct. In Counter mode, the TIMER&amp;#39;s internal Counter register is incremented by one each time the COUNT task is triggered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The app core have 3 timer instances. TIMER0, TIMER1, TIMER2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are also 3 timer instances in the network core, but when you use Bluetooth, then 2 of these are reserved and used by the Bluetooth stack.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/timer.html#d1873e184"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/timer.html#d1873e184&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>