<?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 Configuration for high frequency. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Sgtl5000-Configuration-for-high-frequency/m-p/850644#M130197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nishant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check recommendations for programming given in AN3663&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/media-and-audio/audio-converters/audio-codec/ultra-low-power-audio-codec:SGTL5000?tab=Documentation_Tab" title="https://www.nxp.com/products/media-and-audio/audio-converters/audio-codec/ultra-low-power-audio-codec:SGTL5000?tab=Documentation_Tab"&gt;Ultra-Low-Power Audio Codec|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;linux sgtl5000 codes&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/imx6-sgtl5000-microphone/" title="https://boundarydevices.com/imx6-sgtl5000-microphone/"&gt;Microphone input on the SABRE Lite and Nitrogen6x - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Tue, 20 Nov 2018 23:45:43 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-11-20T23:45:43Z</dc:date>
    <item>
      <title>Sgtl5000 Configuration for high frequency.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sgtl5000-Configuration-for-high-frequency/m-p/850643#M130196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to connect SGTL5000 to receive mic data for frequency between 15Khz to 20 Khz but not able to do.&lt;/P&gt;&lt;P&gt;As per my configuration it is taking data well in range of voice and around 2Khz to 3Khz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to meet the requirement of 15Khz to 20Khz frequency input and share the configuration of sgtl5000 for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void sgtl_5000_init(void)&lt;BR /&gt;{&lt;BR /&gt; send_i2c(CHIP_ANA_POWER, 0x4060);&lt;BR /&gt; send_i2c(CHIP_LINREG_CTRL, 0x006C); // VDDA &amp;amp; VDDIO both over 3.1V&lt;BR /&gt; send_i2c(CHIP_REF_CTRL, 0x01F2); // VAG=1.575, normal ramp, +12.5% bias current&lt;BR /&gt; send_i2c(CHIP_LINE_OUT_CTRL, 0x0F22); // LO_VAGCNTRL=1.65V, OUT_CURRENT=0.54mA&lt;BR /&gt; send_i2c(CHIP_SHORT_CTRL, 0x4446); // allow up to 125mA&lt;BR /&gt; send_i2c(CHIP_ANA_CTRL, 0x0137); // enable zero cross detectors&lt;BR /&gt; send_i2c(CHIP_ANA_POWER, 0x40FF); // power up: lineout, hp, adc, dac&lt;BR /&gt; send_i2c(CHIP_DIG_POWER, 0x0073); // power up all digital stuff=0x0073 //DAP OFF=0x0063&lt;BR /&gt; delay_ms(400);&lt;BR /&gt; send_i2c(CHIP_LINE_OUT_VOL, 0x1D1D); // default approx 1.3 volts peak-to-peak&lt;BR /&gt; send_i2c(CHIP_CLK_CTRL, 0x0004); // 44.1 kHz, 256*Fs SYS_FS specifies the rate 0x1 = Rate is 1/2 of the SYS_FS rate&lt;BR /&gt; send_i2c(CHIP_I2S_CTRL, 0x0130); // SCLK=32*Fs, 16bit, I2S format //16bit&lt;BR /&gt; // default signal routing is ok?&lt;BR /&gt; send_i2c(CHIP_SSS_CTRL, 0x0013); // ADC-&amp;gt;I2S, I2S-&amp;gt;DAC(0x0010) Default (0x0000)= MIC IN to ADC&lt;BR /&gt; send_i2c(CHIP_ADCDAC_CTRL, 0x0000); // disable dac mute&lt;BR /&gt; send_i2c(CHIP_DAC_VOL, 0x3C3C); // digital gain, 0dB&lt;BR /&gt; send_i2c(CHIP_ANA_HP_CTRL, 0x7F7F); // set volume (lowest level)&lt;BR /&gt; send_i2c(CHIP_ANA_CTRL, 0x0036); // enable zero cross detectors 0x0026 0x0036 (0x0022)=ADC input is MIC.&lt;BR /&gt; &lt;BR /&gt; //send_i2c(CHIP_PAD_STRENGTH,0x0000);&lt;BR /&gt; &lt;BR /&gt; send_i2c(DAP_CONTROL,0x0011); //DAP CONTROL&lt;BR /&gt; send_i2c(DAP_PEQ, 0x0007);&lt;BR /&gt; send_i2c(DAP_AUDIO_EQ, 0x0001);&lt;BR /&gt; send_i2c(DAP_AVC_THRESHOLD, 0x0A40);&lt;BR /&gt; send_i2c(DAP_AVC_ATTACK, 0x0014);&lt;BR /&gt; send_i2c(DAP_AVC_DECAY , 0x0028);&lt;BR /&gt; send_i2c(DAP_AVC_CTRL, 0x0001);&lt;BR /&gt; send_i2c(DAP_BASS_ENHANCE,0x0040);&lt;BR /&gt; //send_i2c(DAP_BASS_ENHANCE_CTRL , 0x1F3F);&lt;BR /&gt; delay_ms(100); &lt;BR /&gt; //send_i2c(CHIP_ANA_HP_CTRL, 0x0101); // set volume (11.5db both channel)&lt;BR /&gt; /*send_i2c(CHIP_LINREG_CTRL,0x0008);&lt;BR /&gt; send_i2c(CHIP_ANA_POWER,0x7260);&lt;BR /&gt; send_i2c(CHIP_ANA_POWER,0x4260);&lt;BR /&gt; send_i2c(CHIP_CLK_TOP_CTRL,0x0800);&lt;BR /&gt; send_i2c(CHIP_ANA_POWER,0x4A60);&lt;BR /&gt; send_i2c(CHIP_LINREG_CTRL,0x006C);&lt;BR /&gt; send_i2c(CHIP_REF_CTRL,0x004E);&lt;BR /&gt; send_i2c(CHIP_LINE_OUT_CTRL,0x322);&lt;BR /&gt; send_i2c(CHIP_REF_CTRL,0x004F);&lt;BR /&gt; send_i2c(CHIP_SHORT_CTRL,0x1106);&lt;BR /&gt; send_i2c(CHIP_ANA_CTRL,0x0133);&lt;BR /&gt; send_i2c(CHIP_ANA_POWER,0x6AFF);&lt;BR /&gt; send_i2c(CHIP_DIG_POWER,0x0073);*/&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void input_init(bool n)&lt;BR /&gt;{&lt;BR /&gt; if(n==0)&lt;BR /&gt; {&lt;BR /&gt; send_i2c(CHIP_MIC_CTRL,0x0133); // mic preamp gain = +40dB last 2 means +30db&lt;BR /&gt; send_i2c(CHIP_ANA_ADC_CTRL,0x00FF); // input gain +12dB (is this enough?) 3 byte 1 to drop the gain to -6db&lt;BR /&gt; send_i2c(CHIP_ANA_CTRL,(0x0036 &amp;amp; ~(1&amp;lt;&amp;lt;2))); // enable mic&lt;BR /&gt; }&lt;BR /&gt; else &lt;BR /&gt; {&lt;BR /&gt; //send_i2c(CHIP_ANA_ADC_CTRL,0x0055); // +7.5dB gain (1.3Vp-p full scale)&lt;BR /&gt; send_i2c(CHIP_ANA_ADC_CTRL,0x0100);&lt;BR /&gt; send_i2c(CHIP_ANA_CTRL,(0x0036 | (1&amp;lt;&amp;lt;2))); // enable linein&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sgtl5000-Configuration-for-high-frequency/m-p/850643#M130196</guid>
      <dc:creator>nishantpashine</dc:creator>
      <dc:date>2018-11-20T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sgtl5000 Configuration for high frequency.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Sgtl5000-Configuration-for-high-frequency/m-p/850644#M130197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nishant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check recommendations for programming given in AN3663&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/media-and-audio/audio-converters/audio-codec/ultra-low-power-audio-codec:SGTL5000?tab=Documentation_Tab" title="https://www.nxp.com/products/media-and-audio/audio-converters/audio-codec/ultra-low-power-audio-codec:SGTL5000?tab=Documentation_Tab"&gt;Ultra-Low-Power Audio Codec|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;linux sgtl5000 codes&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/imx6-sgtl5000-microphone/" title="https://boundarydevices.com/imx6-sgtl5000-microphone/"&gt;Microphone input on the SABRE Lite and Nitrogen6x - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Tue, 20 Nov 2018 23:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Sgtl5000-Configuration-for-high-frequency/m-p/850644#M130197</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-11-20T23:45:43Z</dc:date>
    </item>
  </channel>
</rss>

