I do a project with Arduino MEGA and I want to use all available UART-s ( except UART0 which is already used for USB).
As I am not so familiar with MEGA chip I would like to ask a few questions...
So, little explanation... my MEGA is connected with 3 devices over 3 UART-s (UART1,UART2,UART3).
For first 2 devices MEGA is Master. MEGA sends first of them inquiry and wait for an answer. After MEGA get an answer (or time out ) MEGA sends to another and do the same. Problem is the third one, where MEGA or device3 can start communication(both are Masters)
Situation is next: device1 ( UART1) is answering to MEGA (so MEGA is getting data to Buffer) and device3(UART3) wants to start communication.
Are there 3 different Buffers for 3 different UART-s?
If answer on 1. is yes, is MEGA capable to receive simultaneously (at same time) data to Buffer1 and Buffer3?
If answer on 1. is yes, is it possible to receive data on UART1 (buffer 1 ) and to send data from UART3 at same time?
All these questions concerns hardware level of MEGA. Reading data from Buffer(s) will be implemented on software level.