FIRST QUESTION
I have searched and dont believe this question has been asked before. What I am seeking to understand is how the baudrate between the TTL-232 pins (D0 & D1) on Mega to the 16U2 (also applies to the Uno board) determines the baud rate.
The operation of the TTL-232 between the 2560 and 16U2 requires that both ends know the baud rate to operate correctly unless synchronous serial is used (which I understand it is not).
This means that when one puts code such as:
Serial.begin (115200);
into an Arduino .ino script file there logically must be a way of communicating this to the 16U2 which has to receive it and put it onto the USB port. I have reached that conclusion that I believe the baud rate asked, in the case of the Mega and Uno, is actually irrelevant to the 2560 <-> 16U2 comms. I suspect that it goes at 115200 irrespective of what is specified as I believe this is around the fastest reliable speed attainable.
Is this correct or am I missing something ?
SECOND QUESTION
Given that the serial data is sent to the 16U2 immediately the reality for the UNO & Mega is that the serial buffer specified in Arduino at around 64 bytes (from memory) is actually one of two buffers with the second one being in the 16U2.
My question is does this mean that the size of the Arduino serial buffer for UNO & Mega is largely irrelevant because of this double buffering ?
Geoffrey Brown, NZ