View previous topic :: View next topic |
Author |
Message |
Einly
Joined: 10 Sep 2003 Posts: 60
|
Maximum Transfer rate? |
Posted: Mon Nov 15, 2004 3:15 am |
|
|
Dear all,
I wish to send data from pic to a computer through RS232. Each second, I would like to send 20kBytes of data. May I know how can this transfer rate be achieved? If not, what is the maximum transfer rate be achieved and how to achieve it? Either hardware/ software? _________________ Einly |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Nov 15, 2004 4:05 am |
|
|
20kBytes per second equals 200kbits per second including start- and stop-bits.
Depending on the chosen clock speed the hardware UART of the PIC-series goes up to 2500kbaud at 40MHz, so your data throughput is possible.
There are some limitations though:
- At these high baudrates the line length for RS-232 is limited to about a meter.
- The mismatch between the UART baudrate settings and the required baudrate has a maximum allowed error of 4%. This may require less common clock frequencies.
For these amounts of data I would recommend looking into USB which is better equiped to handle these throughputs. Also consider many of the newer laptops are supplied without RS-232 connector. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Mon Nov 15, 2004 7:56 am |
|
|
Another alternative is to use an ethernet interface running TCP or UDP. Application development is easier and far more portable across operating systems, platforms, and applications than USB. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|