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

Fast USB with PIC18F4550

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



Joined: 22 Dec 2004
Posts: 78

View user's profile Send private message

Fast USB with PIC18F4550
PostPosted: Mon Sep 26, 2005 7:35 pm     Reply with quote

Hi..I got the latest version of the CCS compiler few weeks ago. I have
tested the example program for USB successfully.

Question: How to increase speed?

(1)
Now I want to increase the speed of sending data. On the datasheet of
PIC18F4550, it is written that its speed is 12Mb/S. Is that mean that
I can send 12000 MegaBytes/millisecond ?

In the example file "ex_usb_hid.c" following is written....
Quote:

//// - On a full speed device, max polling rate is 1 transaction ////
//// per 1ms. This is 64000 bytes per second (64 byte packets ////
//// every 1ms). ////


Is that mean that, I can send only 64bytes per second?

(2)
There is code for debug on RS232. Can disable that any way or I have
modified that at all the places?

(3)
I think to send whole 8 bit array of 8 elements like that following
Quote:

usb_put_packet(1, out_data, 8, USB_DTS_TOGGLE);


Is this the only possible way to make it faster?

Can anybody tell me to increase the speed all possible way? The code is
little bit complex so it is hard for me to understand.

Thanks.....
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 26, 2005 8:53 pm     Reply with quote

Quote:

On the datasheet of PIC18F4550, it is written that its speed is 12Mb/S.
Is that mean that I can send 12000 MegaBytes/millisecond ?

http://www.everythingusb.com/usb2/faq.htm
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 26, 2005 9:47 pm     Reply with quote

You are confusing Mb (megabits) with MB (megabytes).

Regardless of all that, you aren't going to achieve a high transfer rate unless you use Isochronous Transfer were the max packet size is 1023 for full speed versus the 64 bytes.
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