Low-power universal asynchronous receiver transmitter (LPUART)
Note:
For correct behavior, CTS must be asserted at least 3 LPUART clock source periods before
the end of the current character. In addition it should be noted that the CTSCF flag may not
be set for pulses shorter than 2 x PCLK periods.
RS485 Driver Enable
The driver enable feature is enabled by setting bit DEM in the LPUART_CR3 control
register. This allows the user to activate the external transceiver control, through the DE
(Driver Enable) signal. The assertion time is the time between the activation of the DE signal
and the beginning of the START bit. It is programmed using the DEAT [4:0] bit fields in the
LPUART_CR1 control register. The de-assertion time is the time between the end of the last
stop bit, in a transmitted message, and the de-activation of the DE signal. It is programmed
using the DEDT [4:0] bit fields in the LPUART_CR1 control register. The polarity of the DE
signal can be configured using the DEP bit in the LPUART_CR3 control register.
In LPUART, the DEAT and DEDT are expressed in USART clock source (f
•
The Driver enable assertion time =
–
–
•
The Driver enable de-assertion time =
–
–
With P = BRR[14:11]
1392/1830
Figure 441. RS232 CTS flow control
(1 + (DEAT x P)) x f
CK
(1 + DEAT) x f
, if P = 0
CK
(1 + (DEDT x P)) x f
CK
(1 + DEDT) x f
, if P = 0
CK
DocID024597 Rev 5
, if P <> 0
, if P <> 0
RM0351
) cycles:
CK
Need help?
Do you have a question about the STM32L4 5 Series and is the answer not in the manual?