<?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>topic SGTL5000 Sample Rate Master mode Calculation in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482244#M76859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want to configure SGTL5000 as master for 8 KHz sample rate with our custom board .&lt;/P&gt;&lt;P&gt;My SGTL5000 version is 0XA011.&lt;/P&gt;&lt;P&gt;VDDIO = VDDA = 3.3 V and externally applied VDDD is around 1.8 V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our environment, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;First Scenario - Asynchronous System Main Clock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SYS_FS = 48 KHz&amp;nbsp; , RATE_MODE = 0x3 (1/6 of SYS_FS rate)&lt;/P&gt;&lt;P&gt;provided System main clock = 12 MHz,&lt;/P&gt;&lt;P&gt;SCLKFREQ = 32Fs&lt;/P&gt;&lt;P&gt;PLL used with integer divisor and fractional divisor equal to 16 and 786 respectively.&lt;/P&gt;&lt;P&gt;With this configuration , bit-clock value is equal to 512 KHz and Sample Clock(LR clock) is 16 KHz.&lt;/P&gt;&lt;P&gt;As mentioned in the datasheet , sample clock value should be 8 KHz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Second Scenario - Synchronous System Main Clock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SYS_FS = 48 KHz , RATE_MODE = 0x1 (1/2 of SYS_FS rate)&lt;/P&gt;&lt;P&gt;provided System Main Clock = 2.048 MHz,&lt;/P&gt;&lt;P&gt;SCLKFREQ = 32 Fs&lt;/P&gt;&lt;P&gt;PLL not used&lt;/P&gt;&lt;P&gt;VDDIO = VDDA = 3.3 V and externally applied VDDD is around 1.8 V&lt;/P&gt;&lt;P&gt;With this configuration , bit clock I am getting around 256 KHz and Sample Clock(LR clock) is 8 KHz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this Datasheet , &lt;/P&gt;&lt;P&gt;SYS_FS / RATE_MODE = Fs (Sampling Frequency)&lt;/P&gt;&lt;P&gt;Is there anything I am missing here or else what are the required steps to configure sample clock equal to 8 KHz in master mode ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Pinkesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 08:42:50 GMT</pubDate>
    <dc:creator>pinkesh</dc:creator>
    <dc:date>2016-03-16T08:42:50Z</dc:date>
    <item>
      <title>SGTL5000 Sample Rate Master mode Calculation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482244#M76859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want to configure SGTL5000 as master for 8 KHz sample rate with our custom board .&lt;/P&gt;&lt;P&gt;My SGTL5000 version is 0XA011.&lt;/P&gt;&lt;P&gt;VDDIO = VDDA = 3.3 V and externally applied VDDD is around 1.8 V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our environment, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;First Scenario - Asynchronous System Main Clock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SYS_FS = 48 KHz&amp;nbsp; , RATE_MODE = 0x3 (1/6 of SYS_FS rate)&lt;/P&gt;&lt;P&gt;provided System main clock = 12 MHz,&lt;/P&gt;&lt;P&gt;SCLKFREQ = 32Fs&lt;/P&gt;&lt;P&gt;PLL used with integer divisor and fractional divisor equal to 16 and 786 respectively.&lt;/P&gt;&lt;P&gt;With this configuration , bit-clock value is equal to 512 KHz and Sample Clock(LR clock) is 16 KHz.&lt;/P&gt;&lt;P&gt;As mentioned in the datasheet , sample clock value should be 8 KHz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Second Scenario - Synchronous System Main Clock&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SYS_FS = 48 KHz , RATE_MODE = 0x1 (1/2 of SYS_FS rate)&lt;/P&gt;&lt;P&gt;provided System Main Clock = 2.048 MHz,&lt;/P&gt;&lt;P&gt;SCLKFREQ = 32 Fs&lt;/P&gt;&lt;P&gt;PLL not used&lt;/P&gt;&lt;P&gt;VDDIO = VDDA = 3.3 V and externally applied VDDD is around 1.8 V&lt;/P&gt;&lt;P&gt;With this configuration , bit clock I am getting around 256 KHz and Sample Clock(LR clock) is 8 KHz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this Datasheet , &lt;/P&gt;&lt;P&gt;SYS_FS / RATE_MODE = Fs (Sampling Frequency)&lt;/P&gt;&lt;P&gt;Is there anything I am missing here or else what are the required steps to configure sample clock equal to 8 KHz in master mode ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Pinkesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482244#M76859</guid>
      <dc:creator>pinkesh</dc:creator>
      <dc:date>2016-03-16T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 Sample Rate Master mode Calculation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482245#M76860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Synchronous mode ,&lt;/P&gt;&lt;P&gt;MCLK_FREQ = 256*Fs has been written&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:55:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482245#M76860</guid>
      <dc:creator>pinkesh</dc:creator>
      <dc:date>2016-03-16T08:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 Sample Rate Master mode Calculation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482246#M76861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. For PLL mode, the SYS_FS / RATE_MODE = Fs equation is only true with SCLKFREQ setting of 64Fs (SCLKFREQ=0). For SCLKFREQ setting of 32Fs (as in your case), Fs is higher twice. So, for PLL mode and SCLKFREQ of 32Fs, when calculating the PLL settings, use the SYS_MCLK frequency value that is a half of the actual input frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In synchronous mode, the the frequency of the SCLK bit clock just directly depends on the frequency of the SYS_MCLK input clock. It can be calculated as follows depending on the MCLK_FREQ bit settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCLK = SYS_MCLK/8&amp;nbsp;&amp;nbsp;&amp;nbsp; for MCLK_FREQ = 0 (256Fs)&lt;/P&gt;&lt;P&gt;SCLK = SYS_MCLK/12&amp;nbsp;&amp;nbsp;&amp;nbsp; for MCLK_FREQ = 1 (384Fs)&lt;/P&gt;&lt;P&gt;SCLK = SYS_MCLK/16&amp;nbsp;&amp;nbsp;&amp;nbsp; for MCLK_FREQ = 2 (512Fs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the Fs frequency can be calculated as SCLK/32 or SCLK/64 depending on the SCLKFREQ bit setting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:01:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482246#M76861</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2016-03-16T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 Sample Rate Master mode Calculation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482247#M76862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arthur for the info .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;So, for PLL mode and SCLKFREQ of 32Fs, when calculating the PLL settings, &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;use the SYS_MCLK frequency value that is a half of the actual input frequency&lt;/SPAN&gt; .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Arthur I think there is something not clear about input freq.&lt;/EM&gt;Actually in our program , We take the double the value of actual input frequency which makes integer divisor 8 .&lt;/P&gt;&lt;P&gt;After this , we are getting sample clock as required (8 KHz).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482247#M76862</guid>
      <dc:creator>pinkesh</dc:creator>
      <dc:date>2016-03-16T13:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 Sample Rate Master mode Calculation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482248#M76863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pinkesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to configure the SGTL5000 in master mode. Can you please share your SGTL5000 configuration code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ajay-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 11:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Sample-Rate-Master-mode-Calculation/m-p/482248#M76863</guid>
      <dc:creator>ajaypatel</dc:creator>
      <dc:date>2016-07-20T11:58:08Z</dc:date>
    </item>
  </channel>
</rss>

