Universal synchronous asynchronous receiver transmitter (USART)
Idle characters
Setting the TE bit drives the USART to send an idle frame before the first data frame.
24.3.3
Receiver
The USART can receive data words of either 8 or 9 bits depending on the M bit in the
USART_CR1 register.
Start bit detection
The start bit detection sequence is the same when oversampling by 16 or by 8.
In the USART, the start bit is detected when a specific sequence of samples is recognized.
This sequence is: 1 1 1 0 X 0 X 0 X 0 0 0 0.
Figure 227. Start bit detection when oversampling by 16 or 8
RX state
RX line
Ideal
sample
clock
Real
sample
clock
Conditions
1
1
to validate
the start bit
Falling edge
detection
Note:
If the sequence is not complete, the start bit detection aborts and the receiver returns to the
idle state (no flag is set) where it waits for a falling edge.
The start bit is confirmed (RXNE flag set, interrupt generated if RXNEIE=1) if the 3 sampled
bits are at 0 (first sampling on the 3rd, 5th and 7th bits finds the 3 bits at 0 and second
sampling on the 8th, 9th and 10th bits also finds the 3 bits at 0).
The start bit is validated (RXNE flag set, interrupt generated if RXNEIE=1) but the NE noise
flag is set if, for both samplings, at least 2 out of the 3 sampled bits are at 0 (sampling on the
638/1381
Idle
1
2
3
4
X
X
X
X
7/16
1
0
X
0
X
At least 2 bits
out of 3 at 0
5
6
7
8
9
Sampled values
X
X
X
X
9
One-bit time
0
X
0
0 0
At least 2 bits
out of 3 at 0
RM0033 Rev 9
Start bit
10 11 12 13 14 15 16
10
11 12 13 14 15 16
6/16
7/16
0
X
X
X
X
RM0033
X
X
ai15471b
Need help?
Do you have a question about the STM32F207 Series and is the answer not in the manual?
Questions and answers