<?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>Kinetis Microcontrollers中的主题 Re: No Audio on KL17 with TFA9882.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744550#M45346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing Pan,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Later what i found while doing debug is , BCK clock is not seen properly in the scope.&lt;/P&gt;&lt;P&gt;As per hardware document I2s is connected on PTC1, PTC2,PTC3 on GPIOC.&lt;/P&gt;&lt;P&gt;I have done the configurations as below.&lt;/P&gt;&lt;P&gt;Can you please let me know is this correct way of initilizing the hardware and I2S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_PortC);&lt;BR /&gt; PORT_SetPinMux(PORTC, 1, kPORT_MuxAlt6); &lt;BR /&gt; PORT_SetPinMux(PORTC, 2, kPORT_MuxAlt6); &lt;BR /&gt; PORT_SetPinMux(PORTC, 3, kPORT_MuxAlt6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Set the system clock dividers in SIM to safe value. */&lt;BR /&gt; CLOCK_SetSimSafeDivs();&lt;BR /&gt; /* Set MCG to HIRC mode. */&lt;BR /&gt; CLOCK_SetMcgliteConfig(&amp;amp;mcgliteConfig_BOARD_BootClockRUN);&lt;BR /&gt; /* Set the clock configuration in SIM module. */&lt;BR /&gt; CLOCK_SetSimConfig(&amp;amp;simConfig_BOARD_BootClockRUN);&lt;BR /&gt; /* Set SystemCoreClock variable. */&lt;BR /&gt; SystemCoreClock = 48000000U;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; SAI_TxGetDefaultConfig(&amp;amp;config);&lt;/P&gt;&lt;P&gt;SAI_TxInit(DEMO_SAI, &amp;amp;config);&lt;/P&gt;&lt;P&gt;format.bitWidth = kSAI_WordWidth16bits;&lt;BR /&gt; format.channel = 0U;&lt;BR /&gt; format.sampleRate_Hz = kSAI_SampleRate32KHz;&lt;BR /&gt; format.masterClockHz = DEMO_SAI_CLK_FREQ;&lt;BR /&gt; format.protocol = config.protocol;&lt;BR /&gt; format.stereo = kSAI_MonoLeft;&lt;BR /&gt; format.isFrameSyncCompact = false;&lt;/P&gt;&lt;P&gt;SAI_TransferTxCreateHandle(DEMO_SAI, &amp;amp;txHandle, callback, NULL);&lt;BR /&gt; mclkSourceClockHz = DEMO_SAI_CLK_FREQ;&lt;BR /&gt; //SAI_TransferTxSetFormat(DEMO_SAI, &amp;amp;txHandle, &amp;amp;format, mclkSourceClockHz, format.masterClockHz);&lt;BR /&gt; SAI_TransferTxSetFormat(DEMO_SAI, &amp;amp;txHandle, &amp;amp;format, mclkSourceClockHz, 48000000);&lt;BR /&gt; temp = (uint32_t)music;&lt;BR /&gt; xfer.data = (uint8_t *)temp;&lt;BR /&gt; xfer.dataSize = MUSIC_LEN;&lt;BR /&gt; SAI_TransferSendNonBlocking(DEMO_SAI, &amp;amp;txHandle, &amp;amp;xfer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2018 08:42:52 GMT</pubDate>
    <dc:creator>rajeshreddy</dc:creator>
    <dc:date>2018-04-23T08:42:52Z</dc:date>
    <item>
      <title>No Audio on KL17 with TFA9882.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744548#M45344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Audio on KL17 with TFA9882.&lt;BR /&gt;TFA9882 is connected with KL17(i2s) on pins PCT1(I2S_TXD),PCT2(I2S_TX_FS),PCT3(I2S_TX_BCLK),&lt;BR /&gt;Have tried to send some data on i2s, can see the data on i2s line to tfa9882.can't hear any sound.&lt;BR /&gt;As part of the debug check the current drawing by TFA9882 is 0mA.(power down mode).&lt;BR /&gt;as per the data sheet , if the BCK like is pulled up, TFA9882 should enter into mute or operating mode.&lt;BR /&gt;Can any one help to solve this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 11:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744548#M45344</guid>
      <dc:creator>rajeshreddy</dc:creator>
      <dc:date>2018-04-18T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: No Audio on KL17 with TFA9882.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744549#M45345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;The Power-down to Operating mode transition&amp;nbsp;of TFA9882&amp;nbsp;is triggered when a clock signal is detected on the bit clock input (BCK). If you are sure that solder is ok, maybe it is in protection mode.&lt;/P&gt;&lt;P&gt;The following protection circuits are included in the TFA9882:&lt;BR /&gt;• OverTemperature Protection (OTP)&lt;BR /&gt;• OverVoltage Protection (OVP)&lt;BR /&gt;• UnderVoltage Protection (UVP)&lt;BR /&gt;• OverCurrent Protection (OCP)&lt;BR /&gt;The reaction of the device to fault conditions differs depending on the protection circuit involved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Another point is TFA9882 is only support 32k/44/1k/48k. Frequency lower than those will cause mute which is also very low power consumption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 08:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744549#M45345</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-04-19T08:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: No Audio on KL17 with TFA9882.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744550#M45346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing Pan,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Later what i found while doing debug is , BCK clock is not seen properly in the scope.&lt;/P&gt;&lt;P&gt;As per hardware document I2s is connected on PTC1, PTC2,PTC3 on GPIOC.&lt;/P&gt;&lt;P&gt;I have done the configurations as below.&lt;/P&gt;&lt;P&gt;Can you please let me know is this correct way of initilizing the hardware and I2S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_PortC);&lt;BR /&gt; PORT_SetPinMux(PORTC, 1, kPORT_MuxAlt6); &lt;BR /&gt; PORT_SetPinMux(PORTC, 2, kPORT_MuxAlt6); &lt;BR /&gt; PORT_SetPinMux(PORTC, 3, kPORT_MuxAlt6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Set the system clock dividers in SIM to safe value. */&lt;BR /&gt; CLOCK_SetSimSafeDivs();&lt;BR /&gt; /* Set MCG to HIRC mode. */&lt;BR /&gt; CLOCK_SetMcgliteConfig(&amp;amp;mcgliteConfig_BOARD_BootClockRUN);&lt;BR /&gt; /* Set the clock configuration in SIM module. */&lt;BR /&gt; CLOCK_SetSimConfig(&amp;amp;simConfig_BOARD_BootClockRUN);&lt;BR /&gt; /* Set SystemCoreClock variable. */&lt;BR /&gt; SystemCoreClock = 48000000U;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; SAI_TxGetDefaultConfig(&amp;amp;config);&lt;/P&gt;&lt;P&gt;SAI_TxInit(DEMO_SAI, &amp;amp;config);&lt;/P&gt;&lt;P&gt;format.bitWidth = kSAI_WordWidth16bits;&lt;BR /&gt; format.channel = 0U;&lt;BR /&gt; format.sampleRate_Hz = kSAI_SampleRate32KHz;&lt;BR /&gt; format.masterClockHz = DEMO_SAI_CLK_FREQ;&lt;BR /&gt; format.protocol = config.protocol;&lt;BR /&gt; format.stereo = kSAI_MonoLeft;&lt;BR /&gt; format.isFrameSyncCompact = false;&lt;/P&gt;&lt;P&gt;SAI_TransferTxCreateHandle(DEMO_SAI, &amp;amp;txHandle, callback, NULL);&lt;BR /&gt; mclkSourceClockHz = DEMO_SAI_CLK_FREQ;&lt;BR /&gt; //SAI_TransferTxSetFormat(DEMO_SAI, &amp;amp;txHandle, &amp;amp;format, mclkSourceClockHz, format.masterClockHz);&lt;BR /&gt; SAI_TransferTxSetFormat(DEMO_SAI, &amp;amp;txHandle, &amp;amp;format, mclkSourceClockHz, 48000000);&lt;BR /&gt; temp = (uint32_t)music;&lt;BR /&gt; xfer.data = (uint8_t *)temp;&lt;BR /&gt; xfer.dataSize = MUSIC_LEN;&lt;BR /&gt; SAI_TransferSendNonBlocking(DEMO_SAI, &amp;amp;txHandle, &amp;amp;xfer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 08:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744550#M45346</guid>
      <dc:creator>rajeshreddy</dc:creator>
      <dc:date>2018-04-23T08:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: No Audio on KL17 with TFA9882.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744551#M45347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The default value of config.protocol is SAI. You should change it to I2S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 08:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Audio-on-KL17-with-TFA9882/m-p/744551#M45347</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-04-25T08:57:36Z</dc:date>
    </item>
  </channel>
</rss>

