Universal synchronous asynchronous receiver transmitter (USART)
30.6.2
Data register (USART_DR)
Address offset: 0x04
Reset value: 0xXXXX XXXX
Bits 31:9 Reserved, must be kept at reset value
Bits 8:0 DR[8:0]: Data value
30.6.3
Baud rate register (USART_BRR)
Note:
The baud counters stop counting if the TE or RE bits are disabled respectively.
Address offset: 0x08
Reset value: 0x0000 0000
31
30
29
15
14
13
rw
rw
rw
Bits 31:16 Reserved, must be kept at reset value
Bits 15:4 DIV_Mantissa[11:0]: mantissa of USARTDIV
Bits 3:0 DIV_Fraction[3:0]: fraction of USARTDIV
30.6.4
Control register 1 (USART_CR1)
Address offset: 0x0C
Reset value: 0x0000 0000
31
30
29
15
14
13
OVER8
Reserved
UE
rw
Res.
rw
1002/1731
Contains the Received or Transmitted data character, depending on whether it is read from
or written to.
The Data register performs a double function (read and write) since it is composed of two
registers, one for transmission (TDR) and one for reception (RDR)
The TDR register provides the parallel interface between the internal bus and the output shift
register (see Figure 1).
The RDR register provides the parallel interface between the input shift register and the
internal bus.
When transmitting with the parity enabled (PCE bit set to 1 in the USART_CR1 register), the
value written in the MSB (bit 7 or bit 8 depending on the data length) has no effect because
it is replaced by the parity.
When receiving with the parity enabled, the value read in the MSB bit is the received parity
bit.
28
27
26
25
12
11
10
9
DIV_Mantissa[11:0]
rw
rw
rw
rw
These 12 bits define the mantissa of the USART Divider (USARTDIV)
These 4 bits define the fraction of the USART Divider (USARTDIV). When OVER8=1, the
DIV_Fraction3 bit is not considered and must be kept cleared.
28
27
26
25
12
11
10
9
M
WAKE
PCE
PS
rw
rw
rw
rw
DocID018909 Rev 11
24
23
22
21
Reserved
8
7
6
5
rw
rw
rw
rw
24
23
22
21
Reserved
8
7
6
PEIE
TXEIE
TCIE
RXNEIE IDLEIE
rw
rw
rw
rw
20
19
18
4
3
2
DIV_Fraction[3:0]
rw
rw
rw
20
19
18
5
4
3
2
TE
RE
rw
rw
rw
RM0090
17
16
1
0
rw
rw
17
16
1
0
RWU
SBK
rw
rw
Need help?
Do you have a question about the STM32F405 and is the answer not in the manual?
Questions and answers