CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Maximum Transfer rate?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Einly



Joined: 10 Sep 2003
Posts: 60

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger ICQ Number

Maximum Transfer rate?
PostPosted: Mon Nov 15, 2004 3:15 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Nov 15, 2004 4:05 am     Reply with quote

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: 1636
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 15, 2004 7:56 am     Reply with quote

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!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group