Low-power universal asynchronous receiver transmitter (LPUART) RM0351
1264/1693 DocID024597 Rev 3
transmission does not occur. When CTS is de-asserted during a transmission, the current
transmission is completed before the transmitter stops.
When CTSE=1, the CTSIF status bit is automatically set by hardware as soon as the CTS
input toggles. It indicates when the receiver becomes ready or not ready for communication.
An interrupt is generated if the CTSIE bit in the LPUART_CR3 register is set. Figure 406
shows an example of communication with CTS flow control enabled.
Figure 418. RS232 CTS flow control
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
CK
) cycles:
• The Driver enable assertion time =
– (1 + (DEAT x P)) x f
CK
, if P <> 0
– (1 + DEAT) x f
CK
, if P = 0
• The Driver enable de-assertion time =
– (1 + (DEDT x P)) x f
CK
, if P <> 0
– (1 + DEDT) x f
CK
, if P = 0
With P = BRR[14:11]
06Y9
6WDUW
ELW
6WRS
ELW
7;
7'5
&76
'DWD
'DWD
6WRS
ELW
,GOH
6WDUW
ELW
'DWD 'DWD
'DWD
HPSW\ HPSW\
&76
&76
7UDQVPLWGDWDUHJLVWHU
:ULWLQJGDWDLQ7'5
7UDQVPLVVLRQRI'DWDLV
GHOD\HGXQWLO&76