I 2 S Slave Mode - ST STM32F205 series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F205 series:
Table of Contents

Advertisement

RM0033
For more details about the read operations depending on the I
refer to
Section 25.4.2: Supported audio
If data are received while the previously received data have not been read yet, an overrun is
generated and the OVR flag is set. If the ERRIE bit is set in the SPI_CR2 register, an
interrupt is generated to indicate the error.
To switch off the I
transfer cycle properly without initiating a new data transfer. The sequence depends on the
configuration of the data and channel lengths, and on the audio protocol mode selected. In
the case of:
16-bit data length extended on 32-bit channel length (DATLEN = 00 and CHLEN = 1)
using the LSB justified mode (I2SSTD = 10)
a)
b)
c)
16-bit data length extended on 32-bit channel length (DATLEN = 00 and CHLEN = 1) in
MSB justified, I
respectively)
a)
b)
c)
For all other combinations of DATLEN and CHLEN, whatever the audio mode selected
through the I2SSTD bits, carry out the following sequence to switch off the I
a)
b)
c)
Note:
The BSY flag is kept low during transfers.
2
25.4.5
I
S slave mode
In slave mode, the I
mode is following mainly the same rules as described for the I
slave mode, there is no clock to be generated by the I
signals are input from the external master connected to the I
need, for the user, to configure the clock.
The configuration steps to follow are listed below:
1.
Set the I2SMOD bit in the SPI_I2SCFGR register to reach the I
choose the I
DATLEN[1:0] bits and the number of bits per channel for the frame configuring the
CHLEN bit. Select also the mode (transmission or reception) for the slave through the
I2SCFG[1:0] bits in SPI_I2SCFGR register.
2.
If needed, select all the potential interrupt sources and the DMA capabilities by writing
the SPI_CR2 register.
3.
The I2SE bit in SPI_I2SCFGR register must be set.
2
S, specific actions are required to ensure that the I
Wait for the second to last RXNE = 1 (n – 1)
2
Then wait 17 I
S clock cycles (using a software loop)
2
Disable the I
S (I2SE = 0)
2
S or PCM modes (I2SSTD = 00, I2SSTD = 01 or I2SSTD = 11,
Wait for the last RXNE
2
Then wait 1 I
S clock cycle (using a software loop)
2
Disable the I
S (I2SE = 0)
Wait for the second to last RXNE = 1 (n – 1)
2
Then wait one I
S clock cycle (using a software loop)
2
Disable the I
S (I2SE = 0)
2
S can be configured in transmission or reception mode.The operating
2
S standard through the I2SSTD[1:0] bits, the data length through the
protocols.
2
RM0033 Rev 8
Serial peripheral interface (SPI)
2
S standard mode selected,
2
S completes the
2
S master configuration. In
S interface. The clock and WS
2
S interface. There is then no
2
S functionalities and
2
S:
721/1378
735

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F205 series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f207 seriesStm32f215 seriesStm32f217 series

Table of Contents