I have a couple of questions regarding flow control as implemented in the SPS. I'm using the PAN1740.
1- Whats is the difference between software and hardware flow control?
2- Where one can select between software and hardware for flow control?
3- Where exactly one can configure the pins used for this purpose?
Thank you!
Device:
Hi Fernando,
1- The difference is that the HW flow control requires addtional pins than RX, TX for the UART control, these extra pins are RTS (output) and CTS (input) and indicates if data can be transmitted or not. The SW flow control uses predefined bytes as indications, over the allready existing pins RX, TX.
2- From the da14580_config.h define or undefine the corresponding setting (CFG_UART_HW_FLOW_CTRL/CFG_UART_SW_FLOW_CTRL).
3- In the periph_setup.h in the UART configuration section.
Thanks MT_dialog