Hi @harry3
Based on your need.
For the master(RT685), you can refer to the evkmimxrt685_i2s_interrupt_transfer_cm33 demo.
RT685 clock configuration can be maintained in demo mode.
RT685 (Master) generate and output all three clocks: MCLK, BCLK (SCK), and WS (LRCLK).
For the slave(lpc55s28), you can refer to the lpcxpresso55s28_i2s_interrupt_transfer demo.
LPC55S28 (Slave) receive these three clocks. Only MCLK needs explicit SYSCON configuration.
/* Attach PLL clock to MCLK for I2S, no divider */
CLOCK_AttachClk(kPLL0_to_MCLK);
SYSCON->MCLKDIV = SYSCON_MCLKDIV_DIV(0U);
SYSCON->MCLKIO = 1U;
CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 0U, true);
CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 1U, false);
/*!< Switch PLL0 clock source selector to XTAL16M */
/* I2S clocks */
CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM6);
CLOCK_AttachClk(kPLL0_DIV_to_FLEXCOMM7);
need modify to
SYSCON->MCLKDIV = SYSCON_MCLKDIV_DIV(0U);
SYSCON->MCLKIO = 0U;
BCLK and WS do not require direction settings on LPC55S28; once the Flexcomm I2S is configured as Slave.
I think you can try it.
BR
Harry Zhang