7.2.6.4 I2S Reception and Transmission Sequence

As specified in the I2S protocol, data bits are left-justified in the word select time slot, with the MSB transmitted first, starting one clock period after the transition on the word select line.

Figure 7-3. I2S Reception and Transmission Sequence

Data bits are sent on the falling edge of the serial clock and sampled on the rising edge of the serial clock. The word select line indicates the channel in transmission, a low level for the left channel and a high level for the right channel.

The length of words managed in transmit and/or receive holding registers can be chosen among 8, 16, 18, 20, 24, and 32 bits by writing I2SMCC_MRA.DATALENGTH. The length of the data transmitted or received on the I2S line (Slot length) depends on I2SMCC_MRA.DATALENGTH/IWS and I2SMCC_MRB.I2SLINESIZE.

The slot length is defined in the following tables.

Table 7-2. Slot Length (I2S format) when I2SMCC_MRB.I2SLINESIZE = 0
I2SMCC_MRA.DATALENGTHWord LengthSlot Length
032 bits32
124 bits32 if I2SMCC_MRA.IWS = 0

24 if I2SMCC_MRA.IWS = 1

220 bits
318 bits
416 bits16
516 bits compact stereo
68 bits8
78 bits compact stereo
Table 7-3. Slot Length (I2S format) when I2SMCC_MRB.I2SLINESIZE > 0
I2SMCC_MRA.DATALENGTHWord LengthSlot Length
032 bitsDefined by I2SMCC_MRB.I2SLINESIZE (see I2SMCC_MRB)
124 bits
220 bits
318 bits
416 bits
516 bits compact stereo
68 bits
78 bits compact stereo

If the time slot allows for more data bits than written in I2SMCC_MRA.DATALENGTH, zeroes are appended to the transmitted data word or extra received bits are discarded (see examples in the following figures).

Figure 7-4. I2S Transfer Format with TX Zero Padding and RX LBS Discarding when I2LINESIZE=0
Figure 7-5. I2S Transfer Format with TX Truncation and RX LSB Padding when I2LINESIZE > 0