<?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>How to output 12.288MHz MCLK with nRF5340 Audio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112965/how-to-output-12-288mhz-mclk-with-nrf5340-audio</link><description>I tried the following settings to output 12.288MHz I2S MCLK with nRF5340 Audio, but it did not work as expected. 
 The I2S settings I want to output are as follows. 
 MCLK: 12.288MHz BICLK: 3.072MHz LRCK: 480kHz Bit width: 32bit 
 1. Set to output using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2024 08:34:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112965/how-to-output-12-288mhz-mclk-with-nrf5340-audio" /><item><title>RE: How to output 12.288MHz MCLK with nRF5340 Audio</title><link>https://devzone.nordicsemi.com/thread/493825?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 08:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05dd05d6-268b-47fb-b079-3c53532760ce</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some more information from the Audio team w.r.t your questions&lt;/p&gt;
&lt;p&gt;Since the MCLK request by customer is 12.288MHz&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;that is the maximum output rate which nRF5340 MCLK can achieve&lt;/li&gt;
&lt;li&gt;so we should enable &amp;quot;bypass&amp;quot; mode. And the MCLK will just output the clock from the internal clock source directly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This exaplained why customer found there&amp;#39;s no waveform once if the bypass mode is disabled.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]a) Is there a range in which mck_setup can be set?[/quote]
&lt;p&gt;&lt;br /&gt; If you customer would like to use 12.288MHz for MCLK, then we have to use bypass mode, and MCKFREQ will be ignore&lt;br /&gt; Ref&lt;span&gt;&lt;span dir="ltr"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721032340090v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]b) Why does synchronization not work when using the bypass function?[/quote]
&lt;p&gt;We would need device logs to be able to say anything regarding this. See&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/&lt;/a&gt;&amp;nbsp;for more information about how to debug and get out logs&lt;/p&gt;
[quote user=""]c) Please tell me the range in which the I2S MCLK can be output on the nRF5340[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The maximum MCK frequency is 12.288MHz&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1721032446834v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additionally we strongly recommend that you use NCS 2.7.0 instead of NCS 2.5.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 12.288MHz MCLK with nRF5340 Audio</title><link>https://devzone.nordicsemi.com/thread/493430?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 12:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ada3f388-b33b-4496-8456-9669eb1f34eb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From what I can see you&amp;#39;ve asked some of the same questions in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112559/about-nrf5340-audio-synchronization"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/112559/about-nrf5340-audio-synchronization&lt;/a&gt;, i.e the one about synch.&lt;/p&gt;
&lt;p&gt;As Amanda has written, we need logs to be able to state anything as to why it does not work, so you will have to set up logging in some way, either over RTT, USB or fix the UART issues in other ways.&lt;/p&gt;
&lt;p&gt;Regarding the other questions, have you seen&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfx_3.5.0/page/drivers/i2s/hal.html"&gt;https://docs.nordicsemi.com/bundle/nrfx_3.5.0/page/drivers/i2s/hal.html&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>