Universal synchronous asynchronous receiver transmitter (USART)
RM0090
970/1731
DocID018909 Rev 11
Figure 302. Data sampling when oversampling by 8
Framing error
A framing error is detected when:
The stop bit is not recognized on reception at the expected time, following either a de-
synchronization or excessive noise.
When the framing error is detected:
•
The FE bit is set by hardware
•
The invalid data is transferred from the Shift register to the USART_DR register.
•
No interrupt is generated in case of single byte communication. However this bit rises
at the same time as the RXNE bit which itself generates an interrupt. In case of
multibuffer communication an interrupt will be issued if the EIE bit is set in the
USART_CR3 register.
The FE bit is reset by a USART_SR register read operation followed by a USART_DR
register read operation.
Table 132. Noise detection from sampled data
Sampled value
NE status
Received bit value
000
0
0
001
1
0
010
1
0
011
1
1
100
1
0
101
1
1
110
1
1
111
0
1
RX LINE
One bit time
3/8
3/8
1
2
3
4
5
6
7
8
2/8
Sample
clock(x8)
sampled values