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

USB Circuit example - help needed

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



Joined: 06 Jan 2007
Posts: 12

View user's profile Send private message

USB Circuit example - help needed
PostPosted: Wed Jan 17, 2007 3:03 pm     Reply with quote

Hi All,

I built this small USB circuit for my PIC18F2455 - I have now been able to compile and upload the examples to the PIC. However nothing happens at all in windows, no drivers get installed, no com-ports appear NADA. Would anyone be able to let me know if my little circuit is suitable for running these demos? I realise that the LEDs wont work/ligh in the demos that use them but surely it should still work?



Thanks in advance

Peter
Markdem



Joined: 24 Jun 2005
Posts: 206

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

PostPosted: Wed Jan 17, 2007 3:55 pm     Reply with quote

Hi, the first thing i would do is change C3 to somthing more like a 470uf cap, see how you go then.

Have fun , Mark
Ttelmah
Guest







PostPosted: Wed Jan 17, 2007 4:03 pm     Reply with quote

Start with needing some decoupling on the Vdd-Vss connection close to the PIC. Something like 100uF, paralleled with 0.1uF.
The, you will need to comment out the lines in the source, dealing with USB connection sensing, or make the connection for this.

Best Wishes
PeterDove



Joined: 06 Jan 2007
Posts: 12

View user's profile Send private message

PostPosted: Wed Jan 17, 2007 4:18 pm     Reply with quote

Markdem wrote:
Hi, the first thing i would do is change C3 to somthing more like a 470uf cap, see how you go then.

Have fun , Mark


470uF ? not 470nF ? Just a non-polarised capacitor?

Thanks

Peter


Last edited by PeterDove on Wed Jan 17, 2007 4:21 pm; edited 1 time in total
PeterDove



Joined: 06 Jan 2007
Posts: 12

View user's profile Send private message

PostPosted: Wed Jan 17, 2007 4:20 pm     Reply with quote

Ttelmah wrote:
Start with needing some decoupling on the Vdd-Vss connection close to the PIC. Something like 100uF, paralleled with 0.1uF.
The, you will need to comment out the lines in the source, dealing with USB connection sensing, or make the connection for this.

Best Wishes


Can you do a quick sketch showing this? I understand about putting one leg of a capacitor on VSS and on VDD.. What sort of capacitors too?

Peter
Guest








PostPosted: Thu Jul 12, 2007 11:48 pm     Reply with quote

You need to put 470nF non-polarized capacitor between pin RC3 (Vusb) and VSS
Ttelmah
Guest







PostPosted: Fri Jul 13, 2007 2:17 am     Reply with quote

There are a series of points here. The first, is that some people have found that particular batches of the 2550, need more capacitance on Vusb, than the specified 470nF. Also, the capacitor shown here in the diagram is a polarised 0.22uF, when non polarised types will generally perform better a high frequencies. I'd start by putting the specified non polarised 470nF, but be prepared to try a higher value if problems still exist.
The second, is that as well as the Vusb decoupling, there should be decoupling close to the PIC, between Vss and Vdd. Again because of the difference in frequency performance of capacitors (something like a 10uF electrolytic capacitor will perform awfully, when dealing with 'edges' of a few nSec), the common practice is to use a fairly large polarised capacitor, with a second small non-polarised capacitor drectly in parallel, to give better high frequency performance.

Best Wishes
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