MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 611

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
RM0008
23.4.5
Note:
To switch off the I
the last data reception. Even if I2SE is switched off while the last data are being transferred,
the clock and the transfer are maintained until the end of the current data transmission.
I
For the slave configuration, the I
The operating mode is following mainly the same rules as described for the I
configuration. In slave mode, there is no clock to be generated by the I
clock and WS signals are input from the external master connected to the I
There is then no need, for the user, to configure the clock.
The configuration steps to follow are listed below:
1.
2.
3.
Transmission sequence
The transmission sequence begins when a half-word (corresponding to channel Left data) is
written to the Tx buffer. When data are transferred from the Tx buffer to the shift register, the
TXE flag is set and data corresponding to the channel Right have to be written into the Tx
buffer. The CHSIDE flag indicates which channel is to be transmitted. Compared to the
master transmission mode, in slave mode, CHSIDE is sensitive to the WS signal coming
from the external master. This means that the slave needs to be ready to transmit the first
data before the clock is generated by the master. WS assertion corresponds to channel Left
transmitted first.
The I2SE has to be written at least two PCLK cycles before the first clock of the master
comes on the CK line.
The data half-word is parallel-loaded into the 16-bit shift register (from the internal bus)
during the first bit transmission, and then shifted out serially to the MOSI/SD pin MSB first.
The TXE flag is set after each transfer from the Tx buffer to the shift register and an interrupt
is generated if the TXEIE bit in the SPI_CR2 register is set.
Note that the TXE flag should be checked to be at 1 before attempting to write the Tx buffer.
For more details about the write operations depending on the I
refer to
To secure a continuous audio data transmission, it is mandatory to write the SPI_DR
register with the next data to transmit before the end of the current transmission. An
underrun flag is set and an interrupt may be generated if the data are not written into the
SPI_DR register before the first clock edge of the next data communication. This indicates
to the software that the transferred data are wrong. If the ERRIE bit is set into the SPI_CR2
register, an interrupt is generated when the UDR flag in the SPI_SR register goes high. In
this case, it is mandatory to switch off the I
channel left.
2
S slave mode
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.
If needed, select all the potential interrupt sources and the DMA capabilities by writing
the SPI_CR2 register.
The I2SE bit in SPI_I2SCFGR register must be set.
Section 23.4.2: Supported audio
2
2
S standard through the I2SSTD[1:0] bits, the data length through the
S in reception mode, I2SE has to be cleared during and before the end of
Doc ID 13902 Rev 9
2
S can be configured in transmission or reception mode.
protocols.
2
S and to restart a data transfer starting from the
Serial peripheral interface (SPI)
2
S standard mode selected,
2
S functionalities and
2
S interface. The
2
S interface.
2
S master
611/995

Related parts for MCBSTM32EXL