Skip to main content
Bhushan
Associate
Mar 26, 2019 2:40 PM UTC
Question

Can we control RTS/CTS signle for Hardware flow control support for LPUART of Stm32l4r5?

Hi,

We are using LPUART port of the STM32L4R5 controller for communication with BLE for that we would like to use RTS/CTS signal.

How can i control/check the RTS/CTS signal?

Is it possible to control/check the RTS/CTS signal through the software?

Please provide the solution for same.

Thank you.

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
Mar 26, 2019 2:50 PM UTC

>>Is it possible to control/check the RTS/CTS signal through the software?

They can be used as GPIO, you can manage this entirely in software if you want.

The input pins are readable via GPIOx->IDR in all cases.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Alex R
Associate II
Mar 26, 2019 4:03 PM UTC

The RTS/CTS signals are controlled by the hardware to implement the flow control (if enabled).

The status of the CTS signal (level and edge) can be detected via interrupts.

Bhushan
BhushanAuthor
Associate
Mar 27, 2019 5:32 AM UTC

Thank you.

So I can monitor the CTS signal using this API "LL_USART_IsActiveFlag_CTS", Please confirm.

Or else please suggest any other method

Alex R
Associate II
Mar 27, 2019 5:13 PM UTC

That is correct