Arduino Uno Rev3 and mega328p UART at 115200 baud

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When sending serial data to the Arduino UNO board via USB it seems that the RXC0 bit was sometimes set before the data was actually ready in the UDR0 register. There were no Parity, Framing or Overrun error flags. The settings were 8 bits, No Parity, 1 Stop at 115200 from the internal 8Mhz clock. Worked fine at 57600 and below. I stumbled on a comment that 8, Even, 1. might work, and it did. By the way, it made no difference if it was polled or interrupt driven. I don't know exactly where the problem lies. Could be the USB driver on the PC, the AtMEGA16U2 USB/Serial on the UNO, clock error, or the MEGA328P.
I am using AVR Studio6 and JTAGICE3

Last Edited: Thu. Dec 27, 2012 - 08:20 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Datasheet shows too much error at 115200 and 16mhz with div by 16 mode. Div by 8 mode is better, but I just use 38400.

Imagecraft compiler user