Set Arduino serial baud rate above 115200 ->230400, 256000,307200,614400

robtillaart,

Yes, I see that now. I did get 230400 to work, had data bits set incorrectly to 7 in the terminal. If I keep the speeds listed on the mega 328 datasheet for 16mhz, it works well, as you stated. I tried pushing it to 2mbs using the code you posted(see below). I didn't do any error checking, but it seemed to work fine. By the way, if anybody is interested, the speeds listed in the datasheet for 16mhz are 230400/250000/500000/1000000. Also it doesn't have it listed, but indicates 0% error up to 2mbs using u2xn=1.

Thanks for the help!

-ren

void setup()
{

Serial.begin(2000000); // !! 115200, 230400, 345600, 460800 X
//delay(1000);
//Serial.println("Hello World");
}

void loop()
{

unsigned long t1 = millis();
for (long i=0; i< 10000; i++)
{
Serial.println("12345678"); // 10 bytes incl \r\n
}
Serial.println(millis() - t1);
}