Page 1 of 1

How to receive data on two UART at the same time ?

Posted: Tue May 12, 2009 9:28 am
by WalkOver
Hi everybody,

For exemple, I have a 18F6622 with two hard UART. I have two other cards who send 10 bytes at 19200 bauds and I would like to receive it. The problem is that the two emitters can send data at the same time and I have to receive all bytes without lost.

Is it possible with Flowcode ? I have a modded custom code who works with the second UART but as the PICmicro executes instructions one by one, I don't know if it's possible.

If it is, How ?

Thank you so much.

Re: How to receive data on two UART at the same time ?

Posted: Tue May 12, 2009 9:55 am
by Benj
Hello

Yes it should be possible though the outgoing signals may be slightly out of time with each other. The serial hardware allows for the send or receive commands to operate while you are processing other parts of your program. Also the receive hardware has three buffers that allow data to be temporarily stored so you do not miss any information. Flowcode V4 wil nativly support multi hardware serial UARTs as well as bit banged UARTs.