ST STM32F40 Series Reference Manual page 23

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

Contents
26.3.4
26.3.5
26.3.6
26.3.7
26.3.8
26.3.9
26.3.10 Single-wire half-duplex communication . . . . . . . . . . . . . . . . . . . . . . . . 772
26.3.11 Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773
26.3.12 IrDA SIR ENDEC block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 775
26.3.13 Continuous communication using DMA . . . . . . . . . . . . . . . . . . . . . . . . 777
26.3.14 Hardware flow control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779
26.4
USART interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 781
26.5
USART mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782
26.6
USART registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782
26.6.1
26.6.2
26.6.3
26.6.4
26.6.5
26.6.6
26.6.7
26.6.8
27
Serial peripheral interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
27.1
SPI introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
27.2
27.2.1
27.2.2
27.3
SPI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
27.3.1
27.3.2
27.3.3
27.3.4
27.3.5
27.3.6
27.3.7
23/1422
Fractional baud rate generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
USART receiver tolerance to clock deviation . . . . . . . . . . . . . . . . . . . . 764
Multiprocessor communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765
Parity control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
LIN (local interconnection network) mode . . . . . . . . . . . . . . . . . . . . . . 768
USART synchronous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770
Status register (USART_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782
Data register (USART_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784
Baud rate register (USART_BRR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
Control register 1 (USART_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
Control register 2 (USART_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 788
Control register 3 (USART_CR3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 789
Guard time and prescaler register (USART_GTPR) . . . . . . . . . . . . . . 792
USART register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793
2
S main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
SPI features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
2
S features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
Configuring the SPI in slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 800
Configuring the SPI in master mode . . . . . . . . . . . . . . . . . . . . . . . . . . 803
Configuring the SPI for half-duplex communication . . . . . . . . . . . . . . . 805
Data transmission and reception procedures . . . . . . . . . . . . . . . . . . . 805
CRC calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 812
Status flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814
Doc ID 018909 Rev 4
RM0090

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F40 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF