<?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>Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105226/generating-2-signals-with-accurate-frequency-period</link><description>Hi, 
 From a nRF52840 breakout board, I need to generate (at least) 2 low frequency square wave signals, between 1 Hz an 1 (or 2) kHz with integer values . 
 These 2+ signals will simply trigger 2+ circuits. 
 
 I need the frequency to be very stable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Nov 2023 12:13:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105226/generating-2-signals-with-accurate-frequency-period" /><item><title>RE: Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/thread/457542?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41749c4-a4ba-4447-821f-9b5935fb4c94</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for delays, Naeem is away today and will most likely look into this tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/thread/456314?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 07:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbabc9c3-029c-40b4-86d1-877c4a96184d</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;apologies for the delayed response.&lt;/p&gt;
&lt;p&gt;Is there update at your end?&lt;/p&gt;
&lt;p&gt;were you able to have a look and use the samples from the NCS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/thread/453797?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 15:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53939652-1584-499a-872a-9189d5fc43f6</guid><dc:creator>lumex</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;b&gt;About my requirements&lt;/b&gt;, you&amp;nbsp;can consider that I need a 2+ function generator that produces square wave signals with minimal tr (rise time) and excellent period/frequency accuracy, in order to trigger 2+ circuits (each one at a specific period/frequency).&lt;/p&gt;
&lt;p&gt;Accuracy (hence stability) is the key requirement.&lt;/p&gt;
&lt;p&gt;If I specify 200 Hz, it should be between, say, 199,999 Hz and 200,001 Hz (and not between 198 and 202 Hz), 199,99 200,01 Hz seems to be the worst accuracy required.&amp;nbsp;&lt;br /&gt;The frequency range is 1-1000 Hz, with &lt;u&gt;integer&lt;/u&gt; values (or 1-1000 ms).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;About how to achieve that with a nRF52840&lt;/b&gt;, I just believe that timer interrupts or low level related tools may be a good way (or the best way) to do that with excellent accuracy, without any risk to be impacted (tile drift)&amp;nbsp;by functions and tasks that are slowed or blocked. &lt;/p&gt;
&lt;p&gt;One more thing : &lt;br /&gt;as a prototype, I&amp;rsquo;m using an Adafruit Feather Sense board with nRF52840. I think I&amp;rsquo;ll be able to use any library that you may&amp;nbsp;recommend.&lt;br /&gt;Can&amp;nbsp;you confirm that ?&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/thread/453719?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 12:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801d92be-b123-423c-81a6-ca4a30ca0917</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;Your requirements are not 100% clear to me like what you want to achieve and how you are doing it.&lt;br /&gt;But if you want to generate square wave signals, then you can use the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/timer.html?cp=5_0_0_5_29"&gt;TIMER peripheral&lt;/a&gt; of the SoC.&lt;br /&gt;You may also look at &lt;a href="https://docs.zephyrproject.org/latest/kernel/services/timing/timers.html"&gt;Zephyr Timers&lt;/a&gt; if you are using NCS.&lt;/p&gt;
&lt;p&gt;You will be able to find samples like&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/counter/alarm/README.html"&gt;Zephyr Counter&lt;/a&gt;&amp;nbsp;sample.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generating 2+ signals with accurate frequency/period</title><link>https://devzone.nordicsemi.com/thread/453277?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 12:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:898187f5-a975-46c2-b3a2-72f320df6633</guid><dc:creator>lumex</dc:creator><description>&lt;p&gt;PS (Q1) : with an accuracy between 1E-1 and 1E-3 &lt;strong&gt;Hz&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to edit a message. Is there a way to edit it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>