Is exist any way to detect IDLE RX line on UART?
I try to use RXTO but this is seted each time when 1 byte comes.
everytime, it changed size of data which will be readed.
Is exist any way to detect IDLE RX line on UART?
I try to use RXTO but this is seted each time when 1 byte comes.
everytime, it changed size of data which will be readed.
Hi
You mean you just want to check if the RX line is high or not?
You should be able to read the input state of the pin even when it is used by the UART interface, for instance by calling nrf_gpio_pin_read(n).
Best regards
Torbjørn
No, I want to know that all receiving data already comed.
Hi
Which UART library are you using?
If you use the nrf_libuarte_async.c library then you can define a timeout period in microseconds, and once there is no UART activity for this period you will get an interrupt.
Still, keep in mind that UART is asynchronous, so depending on the UART device you are communicating with there might still be some more data coming.
Best regards
Torbjørn
Thank you Torbjørn,
I will try it.
Good luck