RM0351
37.7.2
Control register 2 (LPUART_CR2)
Address offset: 0x04
Reset value: 0x0000
31
30
29
ADD[7:4]
rw
rw
rw
15
14
13
SWAP
Res.
STOP[1:0]
rw
rw
Bits 31:28 ADD[7:4]: Address of the LPUART node
This bit-field gives the address of the LPUART node or a character code to be recognized.
This is used in multiprocessor communication during Mute mode or Stop mode, for wakeup with 7-
bit address mark detection. The MSB of the character sent by the transmitter should be equal to 1.
It may also be used for character detection during normal reception, Mute mode inactive (for
example, end of block detection in Modbus protocol). In this case, the whole received character (8-
bit) is compared to the ADD[7:0] value and CMF flag is set on match.
This bit field can only be written when reception is disabled (RE = 0) or the LPUART is disabled
(UE=0)
Bits 27:24 ADD[3:0]: Address of the LPUART node
This bit-field gives the address of the LPUART node or a character code to be recognized.
This is used in multiprocessor communication during Mute mode or Stop mode, for wakeup with
address mark detection.
This bit field can only be written when reception is disabled (RE = 0) or the LPUART is disabled
(UE=0)
Bits 23:20 Reserved, must be kept at reset value
Bit 19 MSBFIRST: Most significant bit first
This bit is set and cleared by software.
0: data is transmitted/received with data bit 0 first, following the start bit.
1: data is transmitted/received with the MSB (bit 7/8/9) first, following the start bit.
This bit field can only be written when the LPUART is disabled (UE=0).
Bit 18 DATAINV: Binary data inversion
This bit is set and cleared by software.
0: Logical data from the data register are send/received in positive/direct logic. (1=H, 0=L)
1: Logical data from the data register are send/received in negative/inverse logic. (1=L, 0=H). The
parity bit is also inverted.
This bit field can only be written when the LPUART is disabled (UE=0).
Bit 17 TXINV: TX pin active level inversion
This bit is set and cleared by software.
0: TX pin signal works using the standard logic levels (V
1: TX pin signal values are inverted. (V
This allows the use of an external inverter on the TX line.
This bit field can only be written when the LPUART is disabled (UE=0).
Low-power universal asynchronous receiver transmitter (LPUART)
28
27
26
25
ADD[3:0]
rw
rw
rw
rw
12
11
10
9
Res.
Res.
Res.
rw
24
23
22
Res.
Res.
rw
8
7
6
Res.
Res.
Res.
=0/mark, Gnd=1/idle).
DD
DocID024597 Rev 3
21
20
19
18
MSBFI
Res.
Res.
DATAINV TXINV
RST
rw
rw
5
4
3
Res.
ADDM7
Res.
Res.
rw
=1/idle, Gnd=0/mark)
DD
17
16
RXINV
rw
rw
2
1
0
Res.
Res.
1271/1693
1282
Need help?
Do you have a question about the STM32L4x6 and is the answer not in the manual?
Questions and answers