English
Language : 

RM0368 Datasheet, PDF (539/841 Pages) STMicroelectronics – This Reference manual targets application developers
RM0368
Universal synchronous asynchronous receiver transmitter (USART)
48LINE
28.%FLAG
Figure 187. Reception using DMA
&RAME
&RAME
SETBYHARDWARE
CLEAREDBY$-!READ
&RAME
$-!REQUEST
53!24?$2
&
&
&
$-!READS53!24?$2
$-!4#)&FLAG
4RA NSFERCOMPLETE
SETBYHARDWARE
CLEARED
BYSOFTWARE
VRIWZDUHFRQILJXUHVWKH
'0$WRUHFHLYHGDWD
EORFNVDQGHQDEOHV
WKH86$57
'0$UHDGV)
IURP
86$57B'5
'0$UHDGV)
IURP
86$57B'5
'0$UHDGV) 7KH'0$WUDQVIHU
IURP
LVFRPSOHWH
86$57B'5
7&,) LQ
'0$B,65
AIB
Error flagging and interrupt generation in multibuffer communication
In case of multibuffer communication if any error occurs during the transaction the error flag
will be asserted after the current byte. An interrupt will be generated if the interrupt enable
flag is set. For framing error, overrun error and noise flag which are asserted with RXNE in
case of single byte reception, there will be separate error flag interrupt enable bit (EIE bit in
the USART_CR3 register), which if set will issue an interrupt after the current byte with
either of these errors.
19.3.14
Hardware flow control
It is possible to control the serial data flow between 2 devices by using the nCTS input and
the nRTS output. The Figure 188 shows how to connect 2 devices in this mode:
Figure 188. Hardware flow control between 2 USARTs
USART 1
TX circuit
TX
nCTS
RX
nRTS
USART 2
RX circuit
RX circuit
RX
nRTS
TX
nCTS
TX circuit
RTS and CTS flow control can be enabled independently by writing respectively RTSE and
CTSE bits to 1 (in the USART_CR3 register).
DocID025350 Rev 4
539/841
552