<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC Microcontrollers中的主题 Re: 44.100 KHz I2S</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1896031#M56331</link>
    <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello again &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226550"&gt;@gary-h&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Sorry for taking a while to get back to you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Another point that is important is configurate the I2S clock divider, this would be correctly configurated to obtain an expected sample rate.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Retaking the same example, you can change this register modifying the structure of I2S, where the part of the code is showing in the next image:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1719591558151.png" style="width: 426px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286263iD608E596D0E2B89A/image-dimensions/426x87?v=v2" width="426" height="87" role="button" title="Habib_MS_0-1719591558151.png" alt="Habib_MS_0-1719591558151.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Can you please corroborate that the value is correctly configurated?&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Also, In order to support you better, can you provide me the file ".mex" if you used Config tools, or the structure that configures the PLL0 if you configured manually ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;You can obtain the file .mex in the last files in the project:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_1-1719591558152.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286264i3872C5D1D7A5C98F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Habib_MS_1-1719591558152.png" alt="Habib_MS_1-1719591558152.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Habib.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 16:20:11 GMT</pubDate>
    <dc:creator>Habib_MS</dc:creator>
    <dc:date>2024-06-28T16:20:11Z</dc:date>
    <item>
      <title>44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1883006#M56203</link>
      <description>&lt;P&gt;I need to send I2S data to the codec at 44.100 KHz.&lt;/P&gt;&lt;P&gt;Every example design I have found has the I2S running at 48.000 KHz - for example,&amp;nbsp; lpcxpresso55s69_i2s_dma_transfer&lt;/P&gt;&lt;P&gt;In all of the examples the PLL setting is done outside of the Clock Configurator and doesn't look to be well documented.&amp;nbsp; The connections to the crystal and FLEXCOM are also done outside of the configurator.&amp;nbsp; Any MEX file generated from the example design does not work.&lt;/P&gt;&lt;P&gt;Will someone give me guidance on how to run the I2S at 44.100 KHz?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 19:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1883006#M56203</guid>
      <dc:creator>gary-h</dc:creator>
      <dc:date>2024-06-06T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1884560#M56213</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226550"&gt;@gary-h&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I will provide you an example to how use the I2S module modifying the SDK (version 2.15.1) example called "I2S interrupt transfer" that uses the next parameters (this in order to show an example that might help you):&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Sample Rate:44.1kHz&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Channels:2(default by the example).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Bit With: 16 (default by the example).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Protocol: I2S (default by the example).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Codec: &lt;/SPAN&gt;&lt;SPAN&gt;WM8904 (codec of EVK).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In order to run the I2S at 44.1kHz we need to start modifying the MCLK of I2S, this depends totally on the sample rate according to the next formula:&lt;!-- [if gte msEquation 12]&gt;&lt;m:oMath xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;#119872;&amp;#119862;&amp;#119871;&amp;#119870;&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;=&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;#119878;&amp;#119886;&amp;#119898;&amp;#119901;&amp;#119897;&amp;#119890;&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;nbsp;&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;#119877;&amp;#119886;&amp;#119905;&amp;#119890;&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;∗2∗256=44.1&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;#119896;&amp;#119867;&amp;#119911;&lt;/m:t&gt;&lt;/m:r&gt;&lt;m:r&gt;&lt;m:t&gt;&amp;nbsp;∗2∗256=&lt;/m:t&gt;&lt;/m:r&gt;&lt;/m:oMath&gt;&lt;![endif]--&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_3-1718066538908.png" style="width: 516px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/283302i6CD82D0271C260AF/image-dimensions/516x21?v=v2" width="516" height="21" role="button" title="Habib_MS_3-1718066538908.png" alt="Habib_MS_3-1718066538908.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;This value can be changed in the code modifying this macro:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_4-1718066575025.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/283303i8FBF62D917755D5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Habib_MS_4-1718066575025.png" alt="Habib_MS_4-1718066575025.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Consequently, the example uses 48kHz of sample rate. However, this can be changed modifying these sections of the code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp; In the section of the macros, you need to change the next values:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_5-1718066602817.png" style="width: 505px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/283305i9E486879C302F2C4/image-dimensions/505x164?v=v2" width="505" height="164" role="button" title="Habib_MS_5-1718066602817.png" alt="Habib_MS_5-1718066602817.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;Finally, in the part to configure the codec, you need to change this value (&lt;/SPAN&gt;&lt;SPAN&gt;note&lt;/SPAN&gt;&lt;SPAN&gt;: the SDK provides an enumeration that helps you switch more easily):&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_6-1718066646206.png" style="width: 518px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/283307iF9799FC3CECCE3D6/image-dimensions/518x162?v=v2" width="518" height="162" role="button" title="Habib_MS_6-1718066646206.png" alt="Habib_MS_6-1718066646206.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;To obtain more information about of the I2S functionally, you can see this application note: &lt;A href="https://www.nxp.com/docs/en/application-note/AN12749.pdf?_gl=1*mw482g*_ga*MTExMTg1ODc3OS4xNzE4MDU2NTM2*_ga_WM5LE0KMSH*MTcxODA1NjUzNS4xLjAuMTcxODA1NjUzNS4wLjAuMA.." target="_blank"&gt;I2S(Inter-IC Sound Bus) Transmit and Receive on RT600 HiFi4 (nxp.com)&lt;/A&gt;. Although this application note was made to the RT600 the information can helps you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Also, if you experience any issue, do not hesitate to let me know.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Habib.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 00:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1884560#M56213</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2024-06-11T00:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1885569#M56222</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I made the changes you suggested, and I have a couple of observations.&lt;/P&gt;&lt;P&gt;The difference between 48,000 and 44,100 is (about) 9%.&amp;nbsp; The measured frequency difference between the original values and the values you provided is less than 6%.&amp;nbsp; I see this as it only making 66% of the intended difference?&lt;/P&gt;&lt;P&gt;I also noticed in the PLL setup that it is set to&amp;nbsp;24.576MHz - the frequency for 48KHz audio.&amp;nbsp; If I change this to match the 44.100KHz audio - 22.579200MHZ - that the sound goes back to 48KHz, independent of the other settings you said to change.&lt;/P&gt;&lt;P&gt;All of the calculations seem to be correct.&amp;nbsp; Perhaps they aren't getting set properly?&amp;nbsp; What else should I be looking at?&lt;/P&gt;&lt;P&gt;Gary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 00:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1885569#M56222</guid>
      <dc:creator>gary-h</dc:creator>
      <dc:date>2024-06-12T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1889822#M56269</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello again &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226550"&gt;@gary-h&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Sorry for taking a while to get back to you.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;You can change the frequency of the I2S clock changing the PLL frequency, this because the PLL is who generate the source clock of the module.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In your case the frequency is 22,579,200 Hz as shown the response that I provided you. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Specifically, the part of the code that change the PLL frequency is the next:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_1-1718752019324.png" style="width: 504px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284749iEFB89763FC53676C/image-dimensions/504x102?v=v2" width="504" height="102" role="button" title="Habib_MS_1-1718752019324.png" alt="Habib_MS_1-1718752019324.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In the last structure the code configures the PLL with diverse dividers and multipliers to obtain the specifically frequency (in this case is 24576000 Hz).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In the other hand, to corroborate in which frequency is providing the PLL clock you can use the function called "CLOCK_GetPll0OutFreq()". At the same time, config tools could be help you to configurate the PLL clock in the next window:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_2-1718752027060.png" style="width: 170px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284750iEC80AF0FE1B382BD/image-dimensions/170x190?v=v2" width="170" height="190" role="button" title="Habib_MS_2-1718752027060.png" alt="Habib_MS_2-1718752027060.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Also, if you experience any issue, do not hesitate to let me know. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;BR&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Habib.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 23:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1889822#M56269</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2024-06-18T23:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1893070#M56301</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had tried what you suggested and reported the results previously.&lt;/P&gt;&lt;P&gt;When I configure the PLL for&amp;nbsp;&lt;SPAN&gt;22.579200 MHz the sound plays at 48.000 KHz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have the other settings as you describe; is there another configuration that needs to be set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1893070#M56301</guid>
      <dc:creator>gary-h</dc:creator>
      <dc:date>2024-06-24T18:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1896031#M56331</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello again &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226550"&gt;@gary-h&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Sorry for taking a while to get back to you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Another point that is important is configurate the I2S clock divider, this would be correctly configurated to obtain an expected sample rate.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Retaking the same example, you can change this register modifying the structure of I2S, where the part of the code is showing in the next image:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1719591558151.png" style="width: 426px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286263iD608E596D0E2B89A/image-dimensions/426x87?v=v2" width="426" height="87" role="button" title="Habib_MS_0-1719591558151.png" alt="Habib_MS_0-1719591558151.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Can you please corroborate that the value is correctly configurated?&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Also, In order to support you better, can you provide me the file ".mex" if you used Config tools, or the structure that configures the PLL0 if you configured manually ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;You can obtain the file .mex in the last files in the project:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_1-1719591558152.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286264i3872C5D1D7A5C98F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Habib_MS_1-1719591558152.png" alt="Habib_MS_1-1719591558152.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Habib.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 16:20:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1896031#M56331</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2024-06-28T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1896864#M56341</link>
      <description>&lt;P&gt;I am testing the clocking with the sample program you show.&lt;/P&gt;&lt;P&gt;As I stated in my first post, that example does not come with a MEX file, and one created from the project &lt;EM&gt;does not work&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;You can see the secondary PLL configuration in that example.&amp;nbsp; I would like to move that configuration into the MEX file, but that does not seem possible.&lt;/P&gt;&lt;P&gt;I would also like to configure the I2S in the MEX file.&amp;nbsp; Again, that does not seem to be possible - errors are always reported.&lt;/P&gt;&lt;P&gt;Testing is very easy:&amp;nbsp; The example program you show (configured for 48 KHz) generates a 442 Hz tone.&amp;nbsp; When properly set to 44.1 KHz the output will be 406 Hz.&amp;nbsp; This is easy to measure with an instrument tuner - there are free ones available for IOS and Android.&lt;/P&gt;&lt;P&gt;Reference files are available here:&amp;nbsp;&lt;A href="https://www.mediacollege.com/audio/tone/download/" target="_blank" rel="noopener"&gt;www.mediacollege.com/audio/tone/download/&lt;/A&gt;&amp;nbsp;- it's trivial to extract the PCM from a WAV file.&amp;nbsp; I used them to verify my customers defect report.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 19:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1896864#M56341</guid>
      <dc:creator>gary-h</dc:creator>
      <dc:date>2024-07-01T19:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1899800#M56383</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello again &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226550"&gt;@gary-h&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I found this example that configures the I2S to 44.1KHz were is attached below. I expect that this example can help you in your application.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Also, if you experience any issue or if you have further doubts about the code, do not hesitate to let me know.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Habib.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 22:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1899800#M56383</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2024-07-04T22:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: 44.100 KHz I2S</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1901707#M56407</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I got the example running - there was an error in the pin configuration that I was able to correct using the MEX file.&lt;/P&gt;&lt;P&gt;Attached is a 1KHz test tone.&amp;nbsp; Include it &lt;EM&gt;instead&lt;/EM&gt; of &lt;U&gt;music.h&lt;/U&gt; to use it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my DAW it shows up as 1000.2 Hz.&amp;nbsp;&amp;nbsp;Using the example you sent, I see 1001.4 Hz - within my customer's tolerance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gary.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 04:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/44-100-KHz-I2S/m-p/1901707#M56407</guid>
      <dc:creator>gary-h</dc:creator>
      <dc:date>2024-07-08T04:33:34Z</dc:date>
    </item>
  </channel>
</rss>

