<?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 FRDM K66F: Question about setting audio codec sample rate (sai_edma_transfer example) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K66F-Question-about-setting-audio-codec-sample-rate-sai/m-p/1568782#M64441</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;I noticed in the sai_edma_transfer example, that in the sai_edma_transfer.c file, the audio codec seems to be configured twice. Once, the parameters of the audio are given by&amp;nbsp;DEMO_AUDIO_BIT_WIDTH,&amp;nbsp;DEMO_AUDIO_SAMPLE_RATE, etc. And additionally, a struct&amp;nbsp;da7212Config,&amp;nbsp;&lt;STRONG&gt;also&lt;/STRONG&gt; takes the audio sample rate and bit width.&lt;/P&gt;&lt;P&gt;Is anyone able to explain the differences between the two repeated sets of parameters to me?&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 05:58:40 GMT</pubDate>
    <dc:creator>joseph_decunha</dc:creator>
    <dc:date>2022-12-13T05:58:40Z</dc:date>
    <item>
      <title>FRDM K66F: Question about setting audio codec sample rate (sai_edma_transfer example)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K66F-Question-about-setting-audio-codec-sample-rate-sai/m-p/1568782#M64441</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;I noticed in the sai_edma_transfer example, that in the sai_edma_transfer.c file, the audio codec seems to be configured twice. Once, the parameters of the audio are given by&amp;nbsp;DEMO_AUDIO_BIT_WIDTH,&amp;nbsp;DEMO_AUDIO_SAMPLE_RATE, etc. And additionally, a struct&amp;nbsp;da7212Config,&amp;nbsp;&lt;STRONG&gt;also&lt;/STRONG&gt; takes the audio sample rate and bit width.&lt;/P&gt;&lt;P&gt;Is anyone able to explain the differences between the two repeated sets of parameters to me?&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 05:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K66F-Question-about-setting-audio-codec-sample-rate-sai/m-p/1568782#M64441</guid>
      <dc:creator>joseph_decunha</dc:creator>
      <dc:date>2022-12-13T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K66F: Question about setting audio codec sample rate (sai_edma_transfer example)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K66F-Question-about-setting-audio-codec-sample-rate-sai/m-p/1570049#M64462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Only for being sure are you referring to this macro,&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#define DEMO_AUDIO_BIT_WIDTH    kSAI_WordWidth16bits
#define DEMO_AUDIO_SAMPLE_RATE  (kSAI_SampleRate16KHz)&lt;/LI-CODE&gt;
&lt;P&gt;and why this macro is not called in this structure?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    .format       = {.mclk_HZ = DEMO_AUDIO_MASTER_CLOCK, .sampleRate = 16000, .bitWidth = 16},
&lt;/LI-CODE&gt;
&lt;P&gt;Did I understand well your question?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 00:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K66F-Question-about-setting-audio-codec-sample-rate-sai/m-p/1570049#M64462</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-12-15T00:38:47Z</dc:date>
    </item>
  </channel>
</rss>

