29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Serial peripheral interface (SPI)<br />

RM0008<br />

CRC error<br />

This flag is used to verify the validity of the value received when the CRCEN bit in the<br />

SPI_CR1 register is set. The CRCERR flag in the SPI_SR register is set if the value<br />

received in the shift register (after transmission of the transmitter SPI_TXCRCR value) does<br />

not match the receiver SPI_RXCRCR value.<br />

23.3.9 Disabling the SPI<br />

Note:<br />

When transfer is terminated, the application can stop the communication by disabling the<br />

SPI peripheral. This is done by resetting the SPE bit. Disabling the SPI peripheral while the<br />

last data transfer is still ongoing does not affect the data reliability if the device is not in<br />

Master transmit mode.<br />

In Master transmit mode (full-duplex or simplex transmit only), the application must make<br />

sure that no data transfer is ongoing by checking the BSY flag in the SPI_SR register before<br />

disabling the SPI master.<br />

23.3.10 SPI interrupts<br />

Table 165.<br />

SPI interrupt requests<br />

Interrupt event Event flag Enable Control bit<br />

Transmit buffer empty flag TXE TXEIE<br />

Receive buffer not empty flag RXNE RXNEIE<br />

Master Mode fault event<br />

Overrun error<br />

CRC error flag<br />

MODF<br />

OVR<br />

CRCERR<br />

ERRIE<br />

23.4 I 2 S functional description<br />

The I 2 S audio protocol is not available in low- <strong>and</strong> medium-density devices. This section<br />

concerns only high-density <strong>and</strong> connectivity line devices.<br />

23.4.1 General description<br />

The block diagram of the I 2 S is shown in Figure 211.<br />

598/995 Doc ID 13902 Rev 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!