<?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: lpc5528 set to slave i2s role in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336389#M59472</link>
    <description>&lt;P&gt;hi harry 张，&lt;/P&gt;&lt;P&gt;谢谢你的支持&lt;/P&gt;&lt;P&gt;例程中用到I2S的共享，我看到的一般是有先设定源时钟到share0,在把share0 分配到电路对应的flexcomm组。例如下面这样&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-20 153923.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379930i39F8313ACCD1AA8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-20 153923.png" alt="屏幕截图 2026-03-20 153923.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;我做slave，是不是不需要按照上面方法配置SCLK和WS clk. 直接用两句&lt;SPAN&gt;SYSCTL_SetShareSet（...）;就可以了？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;第二个问题，关于时钟，是不是在slave模式下不需要下图配置i2s的时钟部分。&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-20 152916.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379929iE4EB78B3A86BA306/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-20 152916.png" alt="屏幕截图 2026-03-20 152916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;harry&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 07:41:04 GMT</pubDate>
    <dc:creator>harry3</dc:creator>
    <dc:date>2026-03-20T07:41:04Z</dc:date>
    <item>
      <title>lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336244#M59468</link>
      <description>&lt;P&gt;Hi nxp team,&lt;/P&gt;&lt;P&gt;I now need to set the I2S peripheral of the LPC5528 to slave mode. The I2S master role is provided by another MCU device. I have checked the LPC5528 example routines and found no method for setting I2S to slave mode. Could you please tell me how to configure the LPC5528 as an I2S slave?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-18 205458.png" style="width: 706px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379883i79DEF09AB16D5E73/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-18 205458.png" alt="屏幕截图 2026-03-18 205458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;harry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 01:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336244#M59468</guid>
      <dc:creator>harry3</dc:creator>
      <dc:date>2026-03-20T01:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336304#M59469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259484"&gt;@harry3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the SDK evkmimxrt685_i2s_interrupt_transfer demo.&lt;/P&gt;
&lt;P&gt;It includes the i2s master and i2s master slave.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-03-20_12-08-59.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379904iBA401D05481172B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-20_12-08-59.png" alt="Snipaste_2026-03-20_12-08-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 04:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336304#M59469</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-20T04:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336330#M59470</link>
      <description>hi zhang, After the i2s is set as the slave, all clock signals come from the external MCU. How should the mclk, bclk, and wsclk of i2s be configured? The clock in the example you provided comes from the 5528 itself, which is different from my schematic design. i2s做slave之后，时钟信号都是来自于外部的MCU。 i2s的mclk,bclk,wsclk要怎么配置呢？ 你举的这个例程的时钟是来自于5528自身，和我的图示设计是不同的。 thanks harry</description>
      <pubDate>Fri, 20 Mar 2026 05:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336330#M59470</guid>
      <dc:creator>harry3</dc:creator>
      <dc:date>2026-03-20T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336364#M59471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259484"&gt;@harry3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;两个 MCU 之间的 I2S 直连，通常只需要 BCLK+ LRCLK+ SD（数据） 三根线，不需要 MCLK。Master产生 BCLK/WS，Slave按该时钟采样/发送数据。I2S 最初定义的就是“三线总线”，MCLK 并不是数据传输必须的信号。&lt;/P&gt;
&lt;P&gt;MCLK 多见于 CODEC/ADC/DAC 等音频器件作为其内部过采样与数字滤波的参考时钟，对 MCU↔MCU 的 I2S 链路并非硬性要求。&lt;/P&gt;
&lt;P&gt;如果你的RT685是master，BCLK+ LRCLK是由RT685产生。LPC55S28不需要产生BCLK+ LRCLK。&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;   /* Set flexcomm3 SCK, WS from shared signal set 0 */
    I2S_BRIDGE_SetFlexcommSignalShareSet(kI2S_BRIDGE_Flexcomm3, kI2S_BRIDGE_SignalSCK, kI2S_BRIDGE_ShareSet0);
    I2S_BRIDGE_SetFlexcommSignalShareSet(kI2S_BRIDGE_Flexcomm3, kI2S_BRIDGE_SignalWS, kI2S_BRIDGE_ShareSet0);&lt;/LI-CODE&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 07:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336364#M59471</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-20T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336389#M59472</link>
      <description>&lt;P&gt;hi harry 张，&lt;/P&gt;&lt;P&gt;谢谢你的支持&lt;/P&gt;&lt;P&gt;例程中用到I2S的共享，我看到的一般是有先设定源时钟到share0,在把share0 分配到电路对应的flexcomm组。例如下面这样&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-20 153923.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379930i39F8313ACCD1AA8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-20 153923.png" alt="屏幕截图 2026-03-20 153923.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;我做slave，是不是不需要按照上面方法配置SCLK和WS clk. 直接用两句&lt;SPAN&gt;SYSCTL_SetShareSet（...）;就可以了？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;第二个问题，关于时钟，是不是在slave模式下不需要下图配置i2s的时钟部分。&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-20 152916.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379929iE4EB78B3A86BA306/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-20 152916.png" alt="屏幕截图 2026-03-20 152916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;harry&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 07:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2336389#M59472</guid>
      <dc:creator>harry3</dc:creator>
      <dc:date>2026-03-20T07:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2338068#M59477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259484"&gt;@harry3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your need.&lt;/P&gt;
&lt;P&gt;For the master(RT685), you can refer to the&amp;nbsp;evkmimxrt685_i2s_interrupt_transfer_cm33 demo.&lt;/P&gt;
&lt;P&gt;RT685 clock configuration can be maintained in demo mode.&lt;/P&gt;
&lt;P&gt;RT685 (Master)&amp;nbsp; generate and output all three clocks: MCLK, BCLK (SCK), and WS (LRCLK).&lt;/P&gt;
&lt;P&gt;For the slave(lpc55s28), you can refer to the lpcxpresso55s28_i2s_interrupt_transfer demo.&lt;/P&gt;
&lt;DIV&gt;LPC55S28 (Slave)&amp;nbsp; receive these three clocks. Only MCLK needs explicit SYSCON configuration.&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;    /* Attach PLL clock to MCLK for I2S, no divider */
    CLOCK_AttachClk(kPLL0_to_MCLK);
    SYSCON-&amp;gt;MCLKDIV = SYSCON_MCLKDIV_DIV(0U);
    SYSCON-&amp;gt;MCLKIO  = 1U;

    CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 0U, true);
    CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 1U, false);

    /*!&amp;lt; Switch PLL0 clock source selector to XTAL16M */
    /* I2S clocks */
    CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM6);
    CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM7);&lt;/LI-CODE&gt;
&lt;P&gt;need modify&amp;nbsp; to&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    SYSCON-&amp;gt;MCLKDIV = SYSCON_MCLKDIV_DIV(0U);
    SYSCON-&amp;gt;MCLKIO  = 0U;
&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;BCLK and WS do not require direction settings on LPC55S28; once the Flexcomm I2S is configured as Slave.&lt;/DIV&gt;
&lt;DIV&gt;I think you can try it.&lt;/DIV&gt;
&lt;DIV&gt;BR&lt;/DIV&gt;
&lt;DIV&gt;Harry Zhang&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Mar 2026 03:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2338068#M59477</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-24T03:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: lpc5528 set to slave i2s role</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2338082#M59478</link>
      <description>&lt;P&gt;你好Harry，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;非常感谢你的支持。&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 先不讨论做主还是做从的问题，我请教一个关于channel的问题，在sdk例程中的有关DMA i2s的例程都是默认FC7做I2S TX，FC6做i2s RX,并且FC7共享时钟给FC6。对应的channel是tx对应19和rx对应16。它们之间的对应关系是怎么得到的呢？我试过把&lt;SPAN&gt;DEMO_I2S_TX_CHANNEL改成18，或导致EVK无法输出。说明它们之间的这个值是有对应逻辑关系的。这个关系在哪里可以找到？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2026-03-24 115229.png" style="width: 610px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380140i80EA8AC81803F162/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图 2026-03-24 115229.png" alt="屏幕截图 2026-03-24 115229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thansk&amp;nbsp;&lt;/P&gt;&lt;P&gt;harry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 04:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc5528-set-to-slave-i2s-role/m-p/2338082#M59478</guid>
      <dc:creator>harry3</dc:creator>
      <dc:date>2026-03-24T04:01:57Z</dc:date>
    </item>
  </channel>
</rss>

