RM0008
24.6.2
Data register (USART_DR)
Address offset: 0x04
Reset value: Undefined
31
30
29
15
14
13
Reserved
Res.
Bits 31:9 Reserved, forced by hardware to 0.
Bits 8:0 DR[8:0]: Data value.
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.
24.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
31
30
29
15
14
13
rw
rw
rw
Bits 31:16 Reserved, forced by hardware to 0.
Bits 15:4 DIV_Mantissa[11:0]: mantissa of USARTDIV.
These 12 bits define the mantissa of the USART Divider (USARTDIV)
Bits 3:0 DIV_Fraction[3:0]: fraction of USARTDIV.
These 4 bits define the fraction of the USART Divider (USARTDIV)
Universal synchronous asynchronous receiver transmitter (USART)
28
27
26
25
12
11
10
9
28
27
26
25
12
11
10
9
DIV_Mantissa[11:0]
rw
rw
rw
rw
24
23
22
21
Reserved
8
7
6
5
rw
rw
rw
rw
24
23
22
21
Reserved
8
7
6
5
rw
rw
rw
rw
20
19
18
17
4
3
2
DR[8:0]
rw
rw
rw
20
19
18
17
4
3
2
DIV_Fraction[3:0]
rw
rw
rw
16
1
0
rw
rw
16
1
0
rw
rw
641/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers