<?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: RT1021 TDM Configuration clock in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638835#M204691</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;I&amp;nbsp;&lt;SPAN&gt;use the DMA method,&amp;nbsp;The data is there, but I don't think the clock is right. I got the MCLK is 12000kHz and BCLK is 500kHz, FSync is 15.625kHz.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But i use the&amp;nbsp;&lt;SPAN&gt;interrupt TDM,&amp;nbsp;&lt;SPAN class=""&gt;MCLK is 12288kHz and BCLK is 512kHz, FSync is 16kHz.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;If the clock is wrong, I don't think the data is right.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 09:51:42 GMT</pubDate>
    <dc:creator>jarman_zhou</dc:creator>
    <dc:date>2023-04-24T09:51:42Z</dc:date>
    <item>
      <title>RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1632830#M204120</link>
      <description>&lt;P&gt;RT1021 The TDM mode fs clock of the SAI is incorrect. Attached are the code of the configuration and the oscilloscope screenshot.&lt;/P&gt;&lt;P&gt;/* Select Audio/Video PLL (786.48 MHz) as sai1 clock source */&lt;BR /&gt;#define DEMO_SAI1_CLOCK_SOURCE_SELECT (2U)&lt;BR /&gt;/* Clock pre divider for sai1 clock source */&lt;BR /&gt;#define DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER (1U)&lt;BR /&gt;/* Clock divider for sai1 clock source */&lt;BR /&gt;#define DEMO_SAI1_CLOCK_SOURCE_DIVIDER (15U)&lt;BR /&gt;/* Get frequency of sai1 clock */&lt;BR /&gt;#define DEMO_SAI_CLK_FREQ \&lt;BR /&gt;(CLOCK_GetFreq(kCLOCK_AudioPllClk) / (DEMO_SAI1_CLOCK_SOURCE_DIVIDER + 1U) / \&lt;BR /&gt;(DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER + 1U))&lt;/P&gt;&lt;P&gt;/* demo audio sample rate */&lt;BR /&gt;#define DEMO_AUDIO_SAMPLE_RATE (kSAI_SampleRate16KHz)&lt;BR /&gt;/* demo audio data channel */&lt;BR /&gt;#define DEMO_AUDIO_DATA_CHANNEL (2U)&lt;BR /&gt;/* demo audio bit width */&lt;BR /&gt;#define DEMO_AUDIO_BIT_WIDTH (kSAI_WordWidth16bits)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int SaiTask(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;edma_config_t dmaConfig = {0};&lt;BR /&gt;char input = '1';&lt;BR /&gt;uint8_t userItem = 1U;&lt;/P&gt;&lt;P&gt;CLOCK_InitAudioPll(&amp;amp;audioPllConfig);&lt;/P&gt;&lt;P&gt;/* I2C */&lt;BR /&gt;/*Clock setting for LPI2C*/&lt;BR /&gt;CLOCK_SetMux(kCLOCK_Lpi2cMux, LPI2C_CLOCK_SOURCE_SELECT);&lt;BR /&gt;CLOCK_SetDiv(kCLOCK_Lpi2cDiv, LPI2C_CLOCK_SOURCE_DIVIDER);&lt;/P&gt;&lt;P&gt;/*Clock setting for SAI1*/&lt;BR /&gt;CLOCK_SetMux(kCLOCK_Sai1Mux, DEMO_SAI1_CLOCK_SOURCE_SELECT);&lt;BR /&gt;CLOCK_SetDiv(kCLOCK_Sai1PreDiv, DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER);&lt;BR /&gt;CLOCK_SetDiv(kCLOCK_Sai1Div, DEMO_SAI1_CLOCK_SOURCE_DIVIDER);&lt;/P&gt;&lt;P&gt;/*Enable MCLK clock*/&lt;BR /&gt;BOARD_EnableSaiMclkOutput(true);&lt;/P&gt;&lt;P&gt;/* Init DMAMUX */&lt;BR /&gt;DMAMUX_Init(DEMO_DMAMUX);&lt;BR /&gt;DMAMUX_SetSource(DEMO_DMAMUX, DEMO_TX_EDMA_CHANNEL, (uint8_t)DEMO_SAI_TX_SOURCE);&lt;BR /&gt;DMAMUX_EnableChannel(DEMO_DMAMUX, DEMO_TX_EDMA_CHANNEL);&lt;BR /&gt;DMAMUX_SetSource(DEMO_DMAMUX, DEMO_RX_EDMA_CHANNEL, (uint8_t)DEMO_SAI_RX_SOURCE);&lt;BR /&gt;DMAMUX_EnableChannel(DEMO_DMAMUX, DEMO_RX_EDMA_CHANNEL);&lt;/P&gt;&lt;P&gt;PRINTF("SAI Demo started!\n\r");&lt;/P&gt;&lt;P&gt;/* Create EDMA handle */&lt;BR /&gt;/*&lt;BR /&gt;* dmaConfig.enableRoundRobinArbitration = false;&lt;BR /&gt;* dmaConfig.enableHaltOnError = true;&lt;BR /&gt;* dmaConfig.enableContinuousLinkMode = false;&lt;BR /&gt;* dmaConfig.enableDebugMode = false;&lt;BR /&gt;*/&lt;BR /&gt;EDMA_GetDefaultConfig(&amp;amp;dmaConfig);&lt;BR /&gt;EDMA_Init(DEMO_DMA, &amp;amp;dmaConfig);&lt;BR /&gt;EDMA_CreateHandle(&amp;amp;dmaTxHandle, DEMO_DMA, DEMO_TX_EDMA_CHANNEL);&lt;BR /&gt;EDMA_CreateHandle(&amp;amp;dmaRxHandle, DEMO_DMA, DEMO_RX_EDMA_CHANNEL);&lt;BR /&gt;#if defined(FSL_FEATURE_EDMA_HAS_CHANNEL_MUX) &amp;amp;&amp;amp; FSL_FEATURE_EDMA_HAS_CHANNEL_MUX&lt;BR /&gt;EDMA_SetChannelMux(DEMO_DMA, DEMO_TX_EDMA_CHANNEL, DEMO_SAI_TX_EDMA_CHANNEL);&lt;BR /&gt;EDMA_SetChannelMux(DEMO_DMA, DEMO_RX_EDMA_CHANNEL, DEMO_SAI_RX_EDMA_CHANNEL);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;/* SAI init */&lt;BR /&gt;SAI_Init(DEMO_SAI);&lt;/P&gt;&lt;P&gt;SAI_TransferTxCreateHandleEDMA(DEMO_SAI, &amp;amp;txHandle, txCallback, NULL, &amp;amp;dmaTxHandle);&lt;BR /&gt;SAI_TransferRxCreateHandleEDMA(DEMO_SAI, &amp;amp;rxHandle, rxCallback, NULL, &amp;amp;dmaRxHandle);&lt;/P&gt;&lt;P&gt;/* I2S mode configurations */&lt;BR /&gt;//SAI_GetClassicI2SConfig(&amp;amp;saiConfig, DEMO_AUDIO_BIT_WIDTH, kSAI_Stereo, 1U &amp;lt;&amp;lt; DEMO_SAI_CHANNEL);&lt;BR /&gt;SAI_GetTDMConfig(&amp;amp;saiConfig, kSAI_FrameSyncLenOneBitClk, DEMO_AUDIO_BIT_WIDTH, DEMO_AUDIO_DATA_CHANNEL, 1U &amp;lt;&amp;lt; DEMO_SAI_CHANNEL);&lt;BR /&gt;saiConfig.frameSync.frameSyncEarly = true;&lt;BR /&gt;//saiConfig.syncMode = DEMO_SAI_TX_SYNC_MODE;&lt;BR /&gt;//saiConfig.masterSlave = DEMO_SAI_MASTER_SLAVE;&lt;BR /&gt;SAI_TransferTxSetConfigEDMA(DEMO_SAI, &amp;amp;txHandle, &amp;amp;saiConfig);&lt;BR /&gt;//saiConfig.syncMode = DEMO_SAI_RX_SYNC_MODE;&lt;BR /&gt;SAI_TransferRxSetConfigEDMA(DEMO_SAI, &amp;amp;rxHandle, &amp;amp;saiConfig);&lt;/P&gt;&lt;P&gt;/* set bit clock divider */&lt;BR /&gt;SAI_TxSetBitClockRate(DEMO_SAI, DEMO_AUDIO_MASTER_CLOCK, DEMO_AUDIO_SAMPLE_RATE, DEMO_AUDIO_BIT_WIDTH,&lt;BR /&gt;DEMO_AUDIO_DATA_CHANNEL);&lt;BR /&gt;SAI_RxSetBitClockRate(DEMO_SAI, DEMO_AUDIO_MASTER_CLOCK, DEMO_AUDIO_SAMPLE_RATE, DEMO_AUDIO_BIT_WIDTH,&lt;BR /&gt;DEMO_AUDIO_DATA_CHANNEL);&lt;/P&gt;&lt;P&gt;/* master clock configurations */&lt;BR /&gt;BOARD_MASTER_CLOCK_CONFIG();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//tlv320&lt;BR /&gt;tlv6410_i2c_init();&lt;BR /&gt;tlv6410_config();&lt;BR /&gt;tlv6410_Status();&lt;/P&gt;&lt;P&gt;#if 0&lt;BR /&gt;/* Use default setting to init codec */&lt;BR /&gt;if (CODEC_Init(&amp;amp;codecHandle, &amp;amp;boardCodecConfig) != kStatus_Success)&lt;BR /&gt;{&lt;BR /&gt;assert(false);&lt;BR /&gt;}&lt;BR /&gt;if (CODEC_SetVolume(&amp;amp;codecHandle, kCODEC_PlayChannelHeadphoneLeft | kCODEC_PlayChannelHeadphoneRight,&lt;BR /&gt;DEMO_CODEC_VOLUME) != kStatus_Success)&lt;BR /&gt;{&lt;BR /&gt;assert(false);&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;/* Enable interrupt to handle FIFO error */&lt;BR /&gt;SAI_TxEnableInterrupts(DEMO_SAI, kSAI_FIFOErrorInterruptEnable);&lt;BR /&gt;SAI_RxEnableInterrupts(DEMO_SAI, kSAI_FIFOErrorInterruptEnable);&lt;BR /&gt;EnableIRQ(DEMO_SAI_TX_IRQ);&lt;BR /&gt;EnableIRQ(DEMO_SAI_RX_IRQ);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MCLK.jpg" style="width: 749px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/219039iA40E9E75824F818B/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCLK.jpg" alt="MCLK.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BCLK.jpg" style="width: 749px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/219040i6BC6CA3C1A2BD24A/image-size/large?v=v2&amp;amp;px=999" role="button" title="BCLK.jpg" alt="BCLK.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FS.jpg" style="width: 749px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/219041i59A07170446C2CC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="FS.jpg" alt="FS.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:22:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1632830#M204120</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-04-13T06:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1633050#M204146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What's the detail wave in your attached picture, SYNC, BCLK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It's better to put it together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Now, which frequency you want to get in SYNC? 16KHZ? then what's the result?&lt;/P&gt;
&lt;P&gt;Please give me more description about your question, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 09:45:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1633050#M204146</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-04-13T09:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1633784#M204216</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Look at the above code, after I changed the audio to TMD (SAI_GetTDMConfig), SAI data line IOMUXC_GPIO_AD_B1_03_SAI1_TX_DATA00 could not receive data,&lt;/SPAN&gt;&lt;SPAN class=""&gt; But when configured as I2S (SAI_GetClassicI2SConfig) there is data, the clock is always 16kHz, 16Bit, 2 channels. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;If I want to configure it as TDM, is there anything missing in the above code? What should I configure?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 09:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1633784#M204216</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-04-14T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1634334#M204268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Which SDK version you have test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please also attach your project which can reproduce the issues, then I will find time to test it on the MIMXRT1020-EVK board, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 04:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1634334#M204268</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-04-17T04:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1634414#M204277</link>
      <description>&lt;P&gt;&lt;SPAN&gt;SDK_2_11_0_EVK-MIMXRT1020.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On this project, I changed to TDM mode, the code is blocked at SAI_TransferSendNonBlocking&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 06:39:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1634414#M204277</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-04-17T06:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638697#M204684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So sorry for my later reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I find the issue is in the interrupt code, you can use the DMA method, that totally works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please check my attached code for the TDM, this is the test result when I sendout the following data:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;__ALIGN_BEGIN const uint8_t music[] __ALIGN_END =&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;0x55, 0xaa, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00, 0x05, 0x00, 0x06, 0x00, 0x07, 0x00,&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TDM.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220496i95A4FF5DD3C96BCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="TDM.jpg" alt="TDM.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RT1020_TDM_16BIT_16KHZ.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220495i92EBA7DB26CBF69B/image-size/large?v=v2&amp;amp;px=999" role="button" title="RT1020_TDM_16BIT_16KHZ.png" alt="RT1020_TDM_16BIT_16KHZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see the DMA method can output the data correctly.&lt;/P&gt;
&lt;P&gt;Your configuration code is correct, just interrupt method have issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I suggest you use the DMA method at first.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 07:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638697#M204684</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-04-24T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638821#M204690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Interrupt solutions, check this post reply:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/RT1021-SAI-TDM-mode-transmitter-abnormality/td-p/1634160" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/RT1021-SAI-TDM-mode-transmitter-abnormality/td-p/1634160&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If your question is solved, please help to mark the correct answer, thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638821#M204690</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-04-24T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638835#M204691</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;I&amp;nbsp;&lt;SPAN&gt;use the DMA method,&amp;nbsp;The data is there, but I don't think the clock is right. I got the MCLK is 12000kHz and BCLK is 500kHz, FSync is 15.625kHz.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But i use the&amp;nbsp;&lt;SPAN&gt;interrupt TDM,&amp;nbsp;&lt;SPAN class=""&gt;MCLK is 12288kHz and BCLK is 512kHz, FSync is 16kHz.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;If the clock is wrong, I don't think the data is right.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 09:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1638835#M204691</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-04-24T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 TDM Configuration clock</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1639402#M204751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Now, both the DMA and the interrupt works.&lt;/P&gt;
&lt;P&gt;1. DMA clock issues:&lt;/P&gt;
&lt;P&gt;Check attached code:evkmimxrt1020_sai_edma_transfer_TDM_clock.zip&lt;/P&gt;
&lt;P&gt;Just use the following clock configuration to the audio PLL.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;const clock_audio_pll_config_t audioPllConfig = {
    .loopDivider = 32,  /* PLL loop divider. Valid range for DIV_SELECT divider value: 27~54. */
    .postDivider = 1,   /* Divider after the PLL, should only be 1, 2, 4, 8, 16. */
    .numerator   = 77,  /* 30 bit numerator of fractional loop divider. */
    .denominator = 100, /* 30 bit denominator of fractional loop divider */
};
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will find the MCLK is :12288750hz&lt;/P&gt;
&lt;P&gt;BCLK is 512Khz&lt;/P&gt;
&lt;P&gt;SYNC is 16Khz.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. the interrupt issues, check your another post link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/RT1021-SAI-TDM-mode-transmitter-abnormality/td-p/1634160" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/RT1021-SAI-TDM-mode-transmitter-abnormality/td-p/1634160&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I already share it with you.&lt;/P&gt;
&lt;P&gt;If your issue is solved, please help to mark the correct answer, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 04:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-TDM-Configuration-clock/m-p/1639402#M204751</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-04-25T04:57:00Z</dc:date>
    </item>
  </channel>
</rss>

