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

Forum for problems or queries regarding Flowcode Comms Components. Eg LIN, I2C, SPI, RS232, CAN, IrDA etc

Moderators: Benj, Mods

Post Reply
WalkOver
Posts: 65
Joined: Fri Nov 23, 2007 11:24 pm
Contact:

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

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

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

Post 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.

Post Reply