Hi,
When using uart with the nrf52832,do I need to use hardware flow control for comunications over 9600bps?
regard,Hiroki
Hi,
When using uart with the nrf52832,do I need to use hardware flow control for comunications over 9600bps?
regard,Hiroki
9600 is pretty slow. You can go much faster than that. It also depends on the other end can handle or not the speed. I am able to do up to 1MBaud without flow control not using the driver from the SDK.
Hi,Nguyen Hoan Hoang
I understand that can communicate.
However,high bps and no hardware flow control increase the possibility of data loss. Are there any signs of this risk in the documentation?
Regard,Hiroki
You can have data loss at any baurate. It's all about code performance. Optimized code can do 1MBaud no drops and bad code will drop even at 9600. Of course HW flow control will save the day but it will be slower than no HW flow. You can do easily 115200 without drop without flow. Just don't use app_uart use nrfx driver from the SDK or open source IOsonata driver.
This thread has a comparison of different drivers. https://devzone.nordicsemi.com/f/nordic-q-a/53106/uart-communication-fifo-error/215183#215183
You can have data loss at any baurate. It's all about code performance. Optimized code can do 1MBaud no drops and bad code will drop even at 9600. Of course HW flow control will save the day but it will be slower than no HW flow. You can do easily 115200 without drop without flow. Just don't use app_uart use nrfx driver from the SDK or open source IOsonata driver.
This thread has a comparison of different drivers. https://devzone.nordicsemi.com/f/nordic-q-a/53106/uart-communication-fifo-error/215183#215183