<?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>Unstable ACLK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126793/unstable-aclk</link><description>Greetings, 
 We want to use the MCK of the I2S module as a clock output for an external device. For that, we need a freuqency of around 4,096MHz. ACLK originates from the 32MHz HFXO, and can be set to 12.288MHz (nrf5340_PS 4.11.1.3 Audio oscillator).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Feb 2026 15:19:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126793/unstable-aclk" /><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/561966?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2026 15:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2353759-5716-424c-9afc-e8f950b881f8</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again, and thanks for the patience.&lt;/p&gt;
[quote user="RafaelV"]&lt;p&gt;&lt;span&gt; but we can see an even higher deviation of about 19kHz, resulting in around 1500ppm.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At the same time, the duty cycle seems stable now. I suppose the distorted duty cycle we saw above&amp;nbsp;stems from&amp;nbsp;the MCK generator.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I am not sure if I understand - what is the deviation you are seeing if not duty cycle?&lt;/p&gt;
&lt;p&gt;I would also recommend that you check this with a frequency analyzer, even though&amp;nbsp;4GSa/s does sound okay.&lt;/p&gt;
[quote user="RafaelV"]&lt;p&gt;For us, it is mostly important that the frequency is stable long-term, and doesn&amp;#39;t drift. The relatively high jitter mainly makes us cautious about the clock source and its determinism.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Understood. Though this depends on the HFXO, you can always choose a crystal with better properties if you prefer. I wouldn&amp;#39;t say that we&amp;#39;ve found out that there is a 1500ppm jitter here, but even if it were that, shouldn&amp;#39;t lead to drift.&lt;/p&gt;
[quote user="RafaelV"]hfclkaudio comes from the 32MHz HFXO crystal. The 12,288MHz hfclkaudio can not be achieved through simple division of 32MHz. Do you know, how hfclkaudio is created internally? If we know it to be deterministic, so no delay being introduced, we could exclude an additional drift, that would suffice for us.&amp;nbsp;[/quote]
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/clock/doc/clock.html#ariaid-title5"&gt;This might help if you want more of a technical understanding.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/561474?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 12:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ef3c4e-9cd9-432d-8a86-9a073e0fbb3b</guid><dc:creator>RafaelV</dc:creator><description>&lt;p&gt;Hey Elfving,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so, selecting bypass isn&amp;#39;t directly possible in Zephyr; I cheated a bit and temporarily set &amp;quot;&lt;span&gt;.enable_bypass &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&amp;quot; in ncs/v3.2.1/modules/hal/nordic/nrfx/drivers/include/nrfx_i2s.h. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The result is a frequency around 12,288MHz, but we can see an even higher deviation of about 19kHz, resulting in around 1500ppm.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At the same time, the duty cycle seems stable now. I suppose the distorted duty cycle we saw above&amp;nbsp;stems from&amp;nbsp;the MCK generator.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For us, it is mostly important that the frequency is stable long-term, and doesn&amp;#39;t drift. The relatively high jitter mainly makes us cautious about the clock source and its determinism.&lt;/p&gt;
&lt;p&gt;hfclkaudio comes from the 32MHz HFXO crystal. The 12,288MHz hfclkaudio can not be achieved through simple division of 32MHz. Do you know, how hfclkaudio is created internally? If we know it to be deterministic, so no delay being introduced, we could exclude an additional drift, that would suffice for us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rafael&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/bypass_5F00_screenshot.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/561128?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2026 14:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4d5fef-ba50-45e7-a2f0-ba743dbf3cdf</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think it should &lt;a href="https://golledge.com/products/quartz-crystal-parts/96/GSX-223/MP06003"&gt;be 15ppm&lt;/a&gt;, so I agree this looks high. But I didn&amp;#39;tthink it would show itself as jitter. Are you seeing this&amp;nbsp;with eg. a spectrum analyzer as well?&lt;/p&gt;
&lt;p&gt;I would expect the jitter to become a bit worse with the i2s division as well. Are you seeing the same with the pure clock signal bypassed or just with this split?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards, and have a good week-end,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/561050?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2026 16:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f095fe7e-d900-429e-a3ff-451b633a9538</guid><dc:creator>RafaelV</dc:creator><description>&lt;p&gt;Hey Elfving!&lt;/p&gt;
&lt;p&gt;I added the function and it is running now.&amp;nbsp;&lt;/p&gt;
&lt;p data-start="278" data-end="484"&gt;I&amp;rsquo;ve attached a screenshot from our oscilloscope below. The average frequency is close to 4.096 MHz, which looks fine. However, the measured deviation is about 2.7 kHz, which corresponds to roughly 660 ppm.&lt;/p&gt;
&lt;p data-start="486" data-end="621"&gt;Theoretically the quarz should have a lower jitter, right?&lt;/p&gt;
&lt;p data-start="623" data-end="669"&gt;Additionally, the duty cycle is not symmetric.&lt;/p&gt;
&lt;p data-start="671" data-end="779"&gt;Do you know how ACLK is generated internally? We&amp;rsquo;re trying to trace where these inaccuracies are introduced.&lt;/p&gt;
&lt;p data-start="781" data-end="864"&gt;Most importantly, we need the clock to be stable over time with no long-term drift.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for all your help :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers, Rafael&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1376.screenshot2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560687?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2026 14:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5856408-40a4-42a5-afac-4b36ccbf2e53</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I do not think your code starts up the HFXO.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try adding&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/peripheral/radio_test/src/main.c#L28-L70"&gt;&amp;nbsp;this function and run it.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560566?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 15:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a6e76f-a625-43b9-a5ce-dc6318e177da</guid><dc:creator>RafaelV</dc:creator><description>&lt;p&gt;I uploaded it to git:&amp;nbsp;&lt;a id="" href="https://github.com/F0rtas/nrf5340_I2S_clock_output.git"&gt;https://github.com/F0rtas/nrf5340_I2S_clock_output.git&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;A few keypoints:&amp;nbsp;&lt;br /&gt;-I2S is set as slave (Bitclock slave etc)&lt;br /&gt;-I2S is set to RX mode&lt;br /&gt;&amp;nbsp; -&amp;gt; MCK still runs, but since there is no bitclock, no data is written to the buffer; I2S runs indefinitely&lt;br /&gt;-MCK is set to high drive, and pin 0.12&lt;br /&gt;-clock source is set to ACLK&lt;br /&gt;-hfclkaudio frequency set to 12288000 (&lt;span&gt;12,288MHz / 3 = 4,096MHz)&lt;/span&gt;&lt;br /&gt;-Zephyr:&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp;-Sample rate: 64MHz&lt;br /&gt;&amp;nbsp; &amp;nbsp;-word size bits: 32&lt;br /&gt;&amp;nbsp; &amp;nbsp;-channels: 2&lt;br /&gt;&amp;nbsp; &amp;nbsp;-&amp;gt;bitclock = 64000MHz * 32 * 2 = 4,096MHz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560551?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 13:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f31539fb-133c-4ec2-b640-ac5d732050ac</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;A sample project would be great! I&amp;#39;ll see if I can reproduce it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560550?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 13:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e06067b7-8666-4492-b9c3-a566b6b606ff</guid><dc:creator>RafaelV</dc:creator><description>&lt;p&gt;Hey Elfving,&lt;/p&gt;
&lt;p&gt;Thank you for forwarding this. I am testing this on the DK.&amp;nbsp;&lt;br /&gt;And yes, it is also weird to me, as I don&amp;#39;t understand where the instability&amp;nbsp;could even come from.&lt;/p&gt;
&lt;p&gt;Do you want me to upload the sample project, or make a proof video of the oscilloscope?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560548?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 13:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e0de488-f932-4826-a808-5e13da3c0aa2</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Thanks for waiting&amp;nbsp;Rafael,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested this myself, but getting an unstable frequency does sound weird to me. I&amp;#39;ve forwarded a question to the relevant R&amp;amp;D team about it as well.&lt;/p&gt;
&lt;p&gt;Are you seeing this on a DK or a custom board?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560147?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2026 15:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0088f96a-5a1f-4fe5-accd-3876ff5dcdd4</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Rafeal,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to get back to you on this later this week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ACLK</title><link>https://devzone.nordicsemi.com/thread/560041?ContentTypeID=1</link><pubDate>Fri, 30 Jan 2026 19:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71db1563-1aeb-42fa-b0ca-eff0ae8f55a7</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Try 64kHz with 32 bit samples. The I&amp;sup2;S peripherial is limited to max 96kHz LR clock, no idea if that could cause problems for MCK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>