Datasheet
STM32F313xx Functional overview
Doc ID 023636 Rev 1 23/58
3.20 Universal asynchronous receiver transmitter (UART)
The STM32F313xx devices have 2 embedded universal asynchronous receiver transmitters
(UART4, and UART5). The UART interfaces support IrDA SIR ENDEC, multiprocessor
communication mode and single-wire half-duplex communication mode. The UART
interfaces can be served by the DMA controller.
Refer to Ta bl e 8 for the features available in all U(S)ARTs interfaces
3.21 Serial peripheral interface (SPI)/Inter-integrated sound
interfaces (I2S)
Up to three SPIs are able to communicate up to 18 Mbits/s in slave and master modes in
full-duplex and simplex communication modes. The 3-bit prescaler gives 8 master mode
frequencies and the frame size is configurable from 4 bits to 16 bits.
Two standard I2S interfaces (multiplexed with SPI2 and SPI3) supporting four different audio
standards can operate as master or slave at half-duplex and full duplex communication
modes. They 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 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.
Refer to Ta bl e 9 for the features available in SPI1, SPI2 and SPI3
Table 8. USART features
USART modes/features
(1)
USART1 USART2 USART3 USART4 USART5
Hardware flow control for modem X X X
Continuous communication using DMA X X X X X
Multiprocessor communication X X X X X
Synchronous mode X X X
Smartcard mode X X X
Single-wire half-duplex communication X X X X X
IrDA SIR ENDEC block X X X X X
LIN mode XXXXX
Dual clock domain and wakeup from Stop mode X X X X X
Receiver timeout interrupt X X X X X
Modbus communication X X X X X
Auto baud rate detection X X X
Driver Enable X X X
1. X = supported.