<?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>I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102698/i2s-mlck-clock-problem-on-nrf5340</link><description>Hello. I use nrf5340 audio development kit with Zephyr OS. I configured I2S peripheral as master and sample frequency 44100 Hz. Using oscilloscope i measured that SCLK and MCK are 1.4 MHz. That&amp;#39;s fine but my codec requires 11.2896 MHz MCLK. So in zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Mar 2024 08:36:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102698/i2s-mlck-clock-problem-on-nrf5340" /><item><title>RE: I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/thread/474511?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 08:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bbc017a-e360-4f5f-8693-135afca34ab0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The reason for&amp;nbsp;why there was no clock, was because the code was crashing due to zero division. Reported here:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/70316"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/70316&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/thread/441300?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 07:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e57bcf9-32a5-416b-98af-3a54e83a3a5d</guid><dc:creator>nrf5340_nrf5340</dc:creator><description>&lt;p&gt;drivers/i2s/echo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/thread/441222?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 15:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3329af69-93bf-4926-a69b-c3119a210166</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can try to reproduce it here. What sample did you use to reproduce this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/thread/440684?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 09:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466e1ce3-4b1b-4a48-860d-debe133ff897</guid><dc:creator>nrf5340_nrf5340</dc:creator><description>&lt;p&gt;Hi. Thanks for the replay. Initialy clock was present when all ratios were present but the problem is MCLK and SClK are both 1.4 MHz. I need 11.286 Mhz for MCK, and since sample rate is 44.1 kHz SCLK frequency needs to stay at 1.4MHz. So, because I wanted to have MCLK that oscilates at different radio than SCLK, I figured that I can comment&amp;nbsp; elements of array. If I comment all elements but let&amp;#39;s say 64x, I will get 2.8 Mhz MCLK clock and SCLK will be 1.4MHz. If I comment all elements but 128x I will get 5.6Mhz MCLK clock and 1.4 SCLK. But when I commented all elements but 256X MHz clocks were not present.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S MLCK Clock problem on nrf5340</title><link>https://devzone.nordicsemi.com/thread/440565?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 17:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45077a1c-eee8-4496-8b20-a1ccf6fdeeeb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But when I meassured clock pin, clock was not present[/quote][quote user=""]When I reduced to ratio to 128 and 64, I successfully got 2.8 MHz and 5.6 MHz clocks[/quote]
&lt;p&gt;I&amp;#39;m a bit confused here. The clock was not present, you then started commenting out values in&amp;nbsp;&lt;span&gt;ratios[], and after that you suddenly got a clock output ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>