Datasheet
DocID025743 Rev 6 21/106
STM32F031x4 STM32F031x6 Functional overview
22
3.15 Serial peripheral interface (SPI) / Inter-integrated sound
interface (I
2
S)
The SPI is able to communicate up to 18 Mbit/s in slave and master modes in full-duplex
and half-duplex communication modes. The 3-bit prescaler gives 8 master mode
frequencies and the frame size is configurable from 4 bits to 16 bits.
One standard I
2
S interface (multiplexed with SPI1) supporting four different audio standards
can operate as master or slave at half-duplex communication mode. It can be configured to
transfer 16 and 24 or 32 bits with 16-bit or 32-bit data resolution and synchronized by a
specific signal. Audio sampling frequency from 8 kHz up to 192 kHz can be set by an 8-bit
programmable linear prescaler. When operating in master mode, it can output a clock for an
external audio component at 256 times the sampling frequency.
Table 8. STM32F031x4/x6 USART implementation
USART modes/features
(1)
1. X = supported.
USART1
Hardware flow control for modem X
Continuous communication using DMA X
Multiprocessor communication X
Synchronous mode X
Smartcard mode X
Single-wire half-duplex communication X
IrDA SIR ENDEC block X
LIN mode X
Dual clock domain and wakeup from Stop mode X
Receiver timeout interrupt X
Modbus communication X
Auto baud rate detection X
Driver Enable X
Table 9. STM32F031x4/x6 SPI/I
2
S implementation
SPI features
(1)
1. X = supported.
SPI
Hardware CRC calculation X
Rx/Tx FIFO X
NSS pulse mode X
I
2
S mode X
TI mode X
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.