- This topic has 1 reply, 2 voices, and was last updated 12 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › High Speed Comms
Hello everyone.
In the past I have attempted to transfer data from my project to a PC at a high speed and failed to even come close to what I require. I know it is possible to transfer data this fast as I have other products that I have bought that achieve the speed.
What I require is data packets at 25 Hz, the best I can get is around 2-3 Hz. The data packets are not big. They are 50 bytes long. Going to a faster baud rate does not make them any faster. The difference from 57600 to 115200 is the same.
The bottle neck I believe is in the AVR sending the packets. I am using a timer to trigger when the next packet should be sent. I am not using a buffer any bigger then the 50 bytes. Maybe a bigger buffer would help ?
Should I be using a separate Uart SPI chip rather then the internal Uart ?
I am using the Mega2561 at 18 Mhz. I am getting no checksum errors on any of the packets.
Ray.
hello Ray,
can you exaplain the 25 Hz in baud rate. does it mean sendign 25 words/sec. how did you measured that “the best I can get is around 2-3 Hz.”
are you using the USARTor USART in SPI mode can you send the code.