<?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>About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112150/about-nrf5340-audio-i2s-sclk-settings</link><description>I want to edit the sample source (nRF5340 Audio) and program it on my own board. The connection is CIS. I am using NCS version 2.5.0. 
 I want to set the I2S clock as follows. MCLK: 12.288MHz BICLK: 3.072MHz LRCK: 480kHz Bit width: 32bit 
 What should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2024 09:04:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112150/about-nrf5340-audio-i2s-sclk-settings" /><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/493832?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 09:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0377a5d5-39c7-49e3-abf1-b7f8ea716a7f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;For getting exactly 12.288 MHz for MCLK you should use bypass mode which selects audio PLL as clock source. In this case MCKFREQ would be ignored.&lt;br /&gt;&lt;br /&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/pastedimage1721033986658v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/492476?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 13:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f1355c5-6fbd-453d-babf-a08cbd9eba19</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have not got an update on this yet. I will try to provide an update during next week, but please note that it is summer vacation period and delayed replies can be expected during this period.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/491513?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 08:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9266a5e4-995f-4980-9fdf-a5479b28d7da</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have requested more information on this internally. I expect to get back to you by the end of this week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/491005?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 07:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ae030e-7dc6-4960-a31c-79715c9e6e53</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;This is because I want to output a 12.288MHz MCLK to the IC on the other end of the I2S.&lt;/p&gt;
&lt;p&gt;The IC I&amp;#39;m connecting to is an AK4432, and I want to output a 12.288MHz MCLK to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/491003?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 07:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4f118d7-2630-478e-8e51-6796b2758407</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please provide information about your use case? Can you please also provide information why you need to set MCLK value directly in the code and what you try to achieve?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/490138?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 05:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0af1645-988f-4954-a452-4de190d79a0d</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;The current setting of 48kHz for LRCK is fine, so to change the bit width to 32bit I added the following to the prj_release.conf file:&lt;/p&gt;
&lt;p&gt;CONFIG_AUDIO_BIT_DEPTH_32=y&lt;/p&gt;
&lt;p&gt;I was also able to check the waveform with an oscilloscope.&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t know how to change MCLK.&lt;/p&gt;
&lt;p&gt;Which part of which file should I change, and how?&lt;/p&gt;
&lt;p&gt;Please tell me specifically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/489713?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 11:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077fbd38-c396-4218-8286-6b61b305b22f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I would first recommend that you update to the NCS v2.6.1.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For setting the clock and bit width to the ones supported by the application, please refer to the nrf\applications\nrf5340_audio\src\audio\Kconfig and specifically to AUDIO_SAMPLE_RATE_HZ and AUDIO_BIT_DEPTH. This would result in correct I2S settings without further actions from your side. However, if you have requirements that does not fall within supported settings, you can look at the&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;nrf\applications\nrf5340_audio\src\modules\audio_i2s.c file. This file contains configuration for I2S. There you can find MCLK configuration. Currently, clock supports only 16 KHz, 24 KHz and 48 KHz sampling rates. By selecting the ratio located in the Kconfig file in combination with sample width from the same Kconfig file, LRCK and BCLK can be obtained. If you want to have a different ratio then you can refer to CS47L63 TRM in nrf\application\nrf5340_audio\src\drivers\cs47l63_reg_conf.h and modules\hal\nordic\nrfx\hal\nrfx_i2s.h for register settings. New sample ratio would need to be defined in&amp;nbsp;nrf\applications\nrf5340_audio\src\modules\audio_i2s.c and the Kconfig mentioned above should be updated to allow that frequency to be selected.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/489394?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 00:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:024b0c9d-f0b9-4d99-a0af-eb618b2ebf3a</guid><dc:creator>Junichi</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I checked, but I don&amp;#39;t quite understand.&lt;/p&gt;
&lt;p&gt;Please tell me specifically which parts of nRF5340 Audio I should change and how.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF5340 Audio I2S SCLK settings</title><link>https://devzone.nordicsemi.com/thread/489190?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 06:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b245d3ea-c2f7-4aa9-9b64-d2491eee53ba</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.1.pdf"&gt;nRF5340 product specification&lt;/a&gt;&amp;nbsp;provides information about I2S peripheral in its chapter 7.15. In master mode, both serial clock (chapter 7.15.3) and left right clock (chapter 7.15.4) are generated from the master clock (MCK, chapter 7.15.5). MCK is generated from the clock source&amp;nbsp;&lt;span&gt;selected in the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/i2s.html?cp=4_0_0_6_14_4#register.CONFIG.CLKCONFIG"&gt;CONFIG.CLKCONFIG&lt;/a&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/i2s.html?cp=4_0_0_6_14_4#register.CONFIG.MCKFREQ"&gt;CONFIG.MCKFREQ&lt;/a&gt;&lt;span&gt;&amp;nbsp;registers.&amp;nbsp;The clock source for the master clock generator can be selected in the register&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/i2s.html?cp=4_0_0_6_14_4#register.CONFIG.CLKCONFIG"&gt;CONFIG.CLKCONFIG&lt;/a&gt;. Depending on which clock source you use PCLK32M or ACLK, there are tables (chapter 7.15.5, Table 83 and 84) which provide configuration examples. Additionally, you can refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfx/drivers/i2s/driver.html"&gt;nrfx I2S driver&lt;/a&gt;&amp;nbsp;and its&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfx/drivers/i2s/driver.html#c.nrfx_i2s_config_t"&gt;nrfx_i2s_config_t&lt;/a&gt;&amp;nbsp;configuration structure. One example of using this structure can be found in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101879/nrf5340-i2s-is-great-for-adc-clock-generation-assuming-this-is-valid"&gt;discussion&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>