<?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 LRCK FREQ</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97074/i2s-lrck-freq</link><description>Hi, 
 I am trying to develop an MP3 player I want to configure LRCK to 44100 but I only able to configure it to 43530 with configuration available in document as CONFIG.RATIO = 32X and CONFIG.MCKFREQ = 32MDIV23. 
 The exact configuration that I want is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Feb 2023 04:02:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97074/i2s-lrck-freq" /><item><title>RE: I2S LRCK FREQ</title><link>https://devzone.nordicsemi.com/thread/412395?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 04:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8862fb51-f9be-4f4d-9a6c-60d5416b10a5</guid><dc:creator>Shariff</dc:creator><description>&lt;p&gt;Hi susheel,&lt;/p&gt;
&lt;p&gt;I tried these configurations and now i am getting exact 44.1kHz&lt;/p&gt;
&lt;p&gt;RF_I2S_MCK_32MDIV3&amp;nbsp; &amp;nbsp;= I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV3,&lt;/p&gt;
&lt;p&gt;#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV3 (0x50000000UL)&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Ajmal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S LRCK FREQ</title><link>https://devzone.nordicsemi.com/thread/412300?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 14:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c02361c-2daf-4fd8-9553-c24cb96b4384</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Ajmal,&lt;/p&gt;
&lt;p&gt;Those divisors are from the hardware and only few combinations of LRCK are possible on this hardware.&lt;/p&gt;
&lt;p&gt;the closest RATIO I can come up with is 32MDIV15/48 = 44,444&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S LRCK FREQ</title><link>https://devzone.nordicsemi.com/thread/412141?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 04:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfa1f291-14a7-4cd0-ae7a-3fceb9ba2dc6</guid><dc:creator>Shariff</dc:creator><description>&lt;p&gt;Hi thanks for&amp;nbsp;the reply.&lt;/p&gt;
&lt;p&gt;Now I am able to achieve&amp;nbsp; LRCK of 44100 but the mp3 audio is playing very fast and I am using fatfs f_read function with buffer size of 512.&lt;/p&gt;
&lt;p&gt;And I am copying this buffer and streaming through i2s.&lt;/p&gt;
&lt;p&gt;Thanks, and regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S LRCK FREQ</title><link>https://devzone.nordicsemi.com/thread/412080?ContentTypeID=1</link><pubDate>Sat, 25 Feb 2023 11:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d2abf4-d891-4cb1-a4be-9611cf24a68b</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Which codec do you use? Its sometimes simpler to make the codec chip the I&amp;sup2;S master, especially if it has a PLL.&lt;/p&gt;
&lt;p&gt;The electrical spec in PS limits MCK to 4 MHz maximum, that is why you cannot have a divider smaller than 8 agains the 32 MHz clock source.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that I don&amp;#39;t think that the NRF52840 will be fast enough for real time MP3 decoding, even the NRF5340 will be at the limit.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve used minimp3 on a 600 MHz Teensy 4.1, it runs at roughly 50% CPU usage with a high quality MP3 file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>