2014-03-05 12:06 AM
Hello,
Im Trying to Communicate between Stm32 to FT5000(Lon ShortStack) through UART Hardware Flow ,...I need to Assert and De-assert RTS/CTS,.....How do i achieve this ,....? Please Help,Thank You,Sanil #stm32-uart-hardware-flow-rts/cts2014-03-05 03:19 AM
Hi
''I need to Assert and De-assert RTS/CTS,.....How do i achieve this ,....? Please Help,'' Read section ''30.3.14 Hardware flow control'' of the reference manual. ''RTS and CTS flow control can be enabled independently by writing respectively RTSE and CTSE bits to 1 (in the USART_CR3 register).'' If you are using Standard Peripheral Library - please refer to the documentation (help file)2014-03-05 08:22 PM
2014-03-05 10:35 PM
Decide if you want to do it via Hardware, or Software. If hardware then configure the peripheral in that mode, and the pins in AF mode. If software configure them as input(CTS)/output(RTS) and inspect/control as desired.
Whatever STM32 part you're using the following example may be instructive: STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\HyperTerminal_HwFlowControl\main.c2014-03-06 04:53 AM
Hi Clive ,
Thank you for the Inputs,.....My Application Requires To control it through Software,.....Will try what u have suggested ,...will get back to you if any issue Regards,Prem2014-03-06 10:32 AM
That's generally how I would approach it, given the STM32 USARTs have effectively no depth, any modulation in the flow is going to depend heavily on buffering you've placed behind the USART. The HW comes into play when you choose NOT to service the USART.