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
Hello Hiroki,
To answer your original question, you do not need to use hardware flow control for communications over 9600 bps. As Nguyen said, 9600 bps is considered very slow these days - but you will have to weigh the pros and cons with regards to speed and data loss.
For most applications, it will be fine using 115200 BAUD without hardware flow control, but I cant say anything for certain in your case since I do not know anything about your application.
Best regards,
Karl
Hi、Karl
Thank you for reply.
Is there any official document that clearly states this?
Best regards,
Hiroki