RM0461
34.4.11 LPUART single-wire Half-duplex communication . . . . . . . . . . . . . . . 1120
34.4.12 Continuous communication using DMA and LPUART . . . . . . . . . . . . 1120
34.4.13 RS232 Hardware flow control and RS485 Driver Enable . . . . . . . . . 1123
34.4.14 LPUART low-power management . . . . . . . . . . . . . . . . . . . . . . . . . . . 1125
34.5
LPUART in low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1128
34.6
LPUART interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1129
34.7
LPUART registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1130
34.7.1
34.7.2
34.7.3
34.7.4
34.7.5
34.7.6
34.7.7
34.7.8
34.7.9
34.7.10 LPUART receive data register (LPUART_RDR) . . . . . . . . . . . . . . . . 1151
34.7.11 LPUART transmit data register (LPUART_TDR) . . . . . . . . . . . . . . . . 1151
34.7.12 LPUART prescaler register (LPUART_PRESC) . . . . . . . . . . . . . . . . 1152
34.7.13 LPUART register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
35
Serial peripheral interface / integrated interchip sound (SPI/I2S) . 1155
35.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1155
35.2
SPI main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1155
35.3
I2S main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1156
35.4
SPI/I2S implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1156
35.5
SPI functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1157
35.5.1
35.5.2
35.5.3
35.5.4
35.5.5
35.5.6
35.5.7
35.5.8
35.5.9
LPUART control register 1 (LPUART_CR1) . . . . . . . . . . . . . . . . . . . 1130
LPUART control register 1 [alternate] (LPUART_CR1) . . . . . . . . . . . 1133
LPUART control register 2 (LPUART_CR2) . . . . . . . . . . . . . . . . . . . 1136
LPUART control register 3 (LPUART_CR3) . . . . . . . . . . . . . . . . . . . 1138
LPUART baud rate register (LPUART_BRR) . . . . . . . . . . . . . . . . . . 1141
LPUART request register (LPUART_RQR) . . . . . . . . . . . . . . . . . . . . 1142
LPUART interrupt and status register (LPUART_ISR) . . . . . . . . . . . 1142
LPUART interrupt and status register [alternate] (LPUART_ISR) . . . 1147
LPUART interrupt flag clear register (LPUART_ICR) . . . . . . . . . . . . 1150
General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1157
Communications between one master and one slave . . . . . . . . . . . . 1158
Standard multi-slave communication . . . . . . . . . . . . . . . . . . . . . . . . . 1160
Multi-master communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1161
Slave select (NSS) pin management . . . . . . . . . . . . . . . . . . . . . . . . . 1162
Communication formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1163
Configuration of SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165
Procedure for enabling SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1166
Data transmission and reception procedures . . . . . . . . . . . . . . . . . . 1166
RM0461 Rev 5
Contents
35/1306
40
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?