已解决! 转到解答。
HI,
I copy the part from UM10912.pdf, which is UM of LPC546xx family.
The I2S of LPC546xx supports 8 slots, it has additional registers such as
P1CFG1 - offset 0xC20;
P2CFG1 - offset 0xC40;
P3CFG1 - offset 0xC60;
P1CFG2 - offset 0xC24;
P2CFG2 - offset 0xC44;
P1CFG2 -offset 0xC64
But the I2S of LPC5411x in UM10914.pdf(UM of LPC5411x) does not have the registers, pls check yourself.
In conclusion, the I2S of LPC5411x only support I2S mode(2 slots) rather than 8 slots(TDM mode).
Hope it can help you
BR
XiangJun Rong
Hi, Valdemar,
Pls refer to section 23.6.1 Function Summary in UM10914.pdf for LPC5411x, in TDM mode, the I2S only supports two slots, but you required 4 slots, the I2S of LPC5411x does not support 4 slots.
You can consider LPC546xx, it supports at most 8 slots in TDM mode for each I2S module, there are 2 I2S modules.
You can also consider i.mxrt600 family, each I2S module supports at most 8 slots, there are 8 I2S modules.
You can also consider Kinetis or i.mxrt10xx family, it supports 32 slots I suppose.
Hope it can help you
BR
XiangJun Rong
Hi XiangJun,
thanks for the reply.
But why :
1)The same user manual have CFG1 register configuration 3:2 PAIRCOUNT
with option to set 4 channel pairs in (see attachment)
2) Fig.76 show 4 slots on diagram in TDM and DSP modes, mono, with WS pulsed for one SCK time
3) LPC5411X datasheet on 7.19.8 chapter states that
"In the LPC5411x, the I2S function is included in Flexcomm Interface 6 and
Flexcomm Interface 7. Each of these Flexcomm Interfaces implement four I2S channel
pairs"
It seems pretty aligned with
DSP mode packs channel data together in the bit stream and
does not use WS to identify left and right data and
each data transfer between the bus and the FIFO will be a single value with
FIFO configured as 32 bits wide and 8 entries deep.
HI,
I copy the part from UM10912.pdf, which is UM of LPC546xx family.
The I2S of LPC546xx supports 8 slots, it has additional registers such as
P1CFG1 - offset 0xC20;
P2CFG1 - offset 0xC40;
P3CFG1 - offset 0xC60;
P1CFG2 - offset 0xC24;
P2CFG2 - offset 0xC44;
P1CFG2 -offset 0xC64
But the I2S of LPC5411x in UM10914.pdf(UM of LPC5411x) does not have the registers, pls check yourself.
In conclusion, the I2S of LPC5411x only support I2S mode(2 slots) rather than 8 slots(TDM mode).
Hope it can help you
BR
XiangJun Rong
Got it, thanks
So,
1) maximum possible, how much bits we can receive in FIFO from one SDA line between two WS pulses with LPC5411X ?
2) Is DSP mode can fill FIFO by packing channels data together in the bit stream until next WS ?
Hi,
As you know that there are only two slots, each slot can cover 32bits stream bits, so the maximum data stream bits between two pulses is 32bits*2=64bits
Hope it can help you
BR
XiangJun Rong