<?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 Re: SGTL5000 - Microphone Noise -- Need Help in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483844#M77205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor -- I rechecked with the AN3663 -- also the configuration is not different (even changed the initialization sequence to match that in the i.MX53 suggested) but without any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The continuous background hum is always present. My sampling being 8KHz, I fed it 2.048MHz (8*256) and my MCU can only feed it 2048780 Hz, can the 0.000780 MHz difference cause this ? I also tried feeding 12MHz in PLL mode with same results...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2016 13:18:30 GMT</pubDate>
    <dc:creator>akshaymishra</dc:creator>
    <dc:date>2016-04-28T13:18:30Z</dc:date>
    <item>
      <title>SGTL5000 - Microphone Noise -- Need Help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483842#M77203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the SGTL5000 in following setting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an I2S slave, configured for 8KHz sampling. I have tried both synchronous and asynchronous mode. I am using the Teensy Audio board (&lt;A href="https://www.pjrc.com/store/teensy3_audio.html" title="https://www.pjrc.com/store/teensy3_audio.html"&gt;PJRC Store&lt;/A&gt; ) for the setup. It takes 3.3V and has external 1.8V VDDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configuration is given at end of my query. The observation is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a constant background noise being heard, even when we do a SGTL Internal Loopback. After too much hair-pulling, setting the BIAS_CTRL to -50%, the noise went away but so did the audio. At -37.5% BIAS_CTRL the noise is less but still present and unacceptable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the solution to get rid of this noise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---Configuration-----&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: 12.8px; font-family: verdana, sans-serif;"&gt;/ Value which is used in Bitbucket code with PLL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t delay;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_POWER, 0x4060); // Power down everything but ADC, DAC&amp;nbsp; and Ref Currents Power Up&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_LINREG_CTRL, 0x006C);&amp;nbsp; // Manually assign charge pump source to VDDIO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_REF_CTRL, 0x001F2);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set VAG = 1.575&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_LINE_OUT_CTRL, 0x0000);// No-op&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_SHORT_CTRL, 0x4446);&amp;nbsp;&amp;nbsp; // Disable short control&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_CTRL, 0x0122);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Unmute DAC/ADC and select proper sources for mic/headphone&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_PLL_CTRL,0x8312);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: 12.8px; font-family: verdana, sans-serif;"&gt;#ifdef USE_MONO_CHANNEL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_POWER, 0x53A); // Power down everything but mic, dac, HP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_POWER, 0x5BA); // Enable VAG&lt;BR /&gt;#else@&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_POWER, 0x457A); // Power down everything but mic, dac, HP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_POWER, 0x45FA); // Enable VAG&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: 12.8px; font-family: verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_DIG_POWER, 0x0063); // ADC, DAC, I2S_IN, I2S_OUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay = 1000000u;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(--delay);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_LINE_OUT_VOL, 0x0F0F); // Max out the attenuation for line out&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_CLK_CTRL, 0x003B);&amp;nbsp; // Fs = 48/6 KHz, MCLK=256*Fs&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_I2S_CTRL, 0x01B0);&amp;nbsp; // 16-bit, Master, SCLK = 32Fs, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_SSS_CTRL, 0x0010);&amp;nbsp; // I2S_IN-&amp;gt;DAC, ADC-&amp;gt;I2S_OUT&lt;/P&gt;&lt;DIV style="margin: 2px 0 0;"&gt;&lt;IMG class="CToWUd jive-image" src="https://ci6.googleusercontent.com/proxy/RnNZfQn2o2xpggJQqefCOervMbPIci5mujDPJnvl43kv6Rtxjyh5gHN_JKVzeU-aaGz3pePFgxfoAAtZJZNx8mveVTc-11j98EfuAJVcumUenA=s0-d-e1-ft#https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ADCDAC_CTRL, 0x0000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_DAC_VOL, 0x3C3C);&amp;nbsp;&amp;nbsp; // 0dB for both channels&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_HP_CTRL, 0x0C0C);&amp;nbsp; // 0dB volume in both HP channels&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_ANA_ADC_CTRL, 0x0000); // No loss in ADC volume&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_MIC_CTRL, 0x0170);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MIC BIAS output impedance 2kOhm, BiasV = 3V, ampli gain = +0dB&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_CHIP_CLK_TOP_CTRL, 0x0000); // Disable the internal osc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SgtlRegWrite(SGTL5000_DAP_CTRL, 0x0000);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disable DAP&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 16:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483842#M77203</guid>
      <dc:creator>akshaymishra</dc:creator>
      <dc:date>2016-04-27T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 - Microphone Noise -- Need Help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483843#M77204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check AN3663 programming app note&lt;/P&gt;&lt;P&gt;Application Notes (3) &lt;/P&gt;&lt;P&gt;AN3663, SGTL5000 Initialization and Programming - Application Note (REV 3.0)&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Fwebapp%2Fsps%2Fsite%2Fprod_summary.jsp%3Fcode%3DSGTL5000%26fpsp%3D1%26tab%3DDocumentation_Tab" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=SGTL5000&amp;amp;fpsp=1&amp;amp;tab=Documentation_Tab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or SGTL5000 example in i.MX53 OBDS&lt;/P&gt;&lt;P&gt;Lab and Test Software (2)&lt;/P&gt;&lt;P&gt;On-Board Diagnostic Suit for the i.MX53 Quick Start Board (REV 2011.39)&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fpower-management%2Fpmics%2Fpmics-for-i.mx-processors%2Fi.mx53-quick-start-board%3AIMX53QSB%3Ffpsp%3D1%26tab%3DDesign_Tools_Tab" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/power-management/pmics/pmics-for-i.mx-processors/i.mx53-quick-start-board:IMX53QSB?fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 00:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483843#M77204</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-04-28T00:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 - Microphone Noise -- Need Help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483844#M77205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor -- I rechecked with the AN3663 -- also the configuration is not different (even changed the initialization sequence to match that in the i.MX53 suggested) but without any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The continuous background hum is always present. My sampling being 8KHz, I fed it 2.048MHz (8*256) and my MCU can only feed it 2048780 Hz, can the 0.000780 MHz difference cause this ? I also tried feeding 12MHz in PLL mode with same results...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 13:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483844#M77205</guid>
      <dc:creator>akshaymishra</dc:creator>
      <dc:date>2016-04-28T13:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 - Microphone Noise -- Need Help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483845#M77206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the cause of the problem is the frequency of the main oscillator used for clocking the system.&lt;BR /&gt;I am very much sure that if you would use 24.576Mhz crystal oscillator or 12.288MHz one, you will get much better result.&lt;/P&gt;&lt;P&gt;You may want to see this post:&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/316166"&gt;What am I doing wrong with TWR-SGTL-AUDIO, SCH-26816 REV B, why can't I seem to get LINEIN-&amp;amp;gt;DAP(Main)-&amp;amp;gt;DAC-&amp;amp;gt;LINEOUT work…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-Microphone-Noise-Need-Help/m-p/483845#M77206</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2016-06-03T13:45:10Z</dc:date>
    </item>
  </channel>
</rss>

