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

Problems with USB / 18F4550
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jaderd



Joined: 26 Jun 2009
Posts: 19

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

PostPosted: Mon Jun 29, 2009 12:01 pm     Reply with quote

I dont understand why the windows on all tests install the same generic driver...
jaderd



Joined: 26 Jun 2009
Posts: 19

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

PostPosted: Tue Jun 30, 2009 5:20 am     Reply with quote

I would like to know if is necessary using two pullup resistor of D+ and D- to Vcc, or internal pullups, or is not necessary there resistors?
Ttelmah
Guest







PostPosted: Tue Jun 30, 2009 5:26 am     Reply with quote

Not necessary, if you have the internal resistors enabled (default for the standard demos). This is down to the fuses selected.

Best Wishes
jaderd



Joined: 26 Jun 2009
Posts: 19

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

PostPosted: Tue Jun 30, 2009 9:07 am     Reply with quote

Shocked
Then what is the problem on my USB communication?
Crying or Very sad
Ttelmah
Guest







PostPosted: Tue Jun 30, 2009 10:07 am     Reply with quote

Without going right through your hardware, difficult to know. Common faults:
1) Ringing problems on the USB lines, if the PCB tracks to the D+/D- connections, are either overlength, or have odd loadings.
2) Poor local voltage regulation/smoothing on the PIC.
3) Crystal that has the wrong loading capacitance, or too much parasitic capacitance. USB requires the oscillator to be within 1 part in 10^5. Many USB circuits fail because this is not met.
4) I would add the Vusb sense line, and enable this. It allows the drivers to wake up much more cleanly, and increases the probability of good initialisation.
5) Problems with line termination, if the USB bus is long. The transceiver in the PIC, is quite 'fussy' in some versions. Adding small series resistors to the D+ and D- lines can help (typicall < 50R).
6) Ground loop problems with your power supply and the PC. Is your supply genuinely floating, and the circuit grounded through the USB bus?. This is the most reliable configuration.
7) Double check that you have the D+, and D- connections the right way round. Partial connection will often take place if they are reversed....
8) If you have once 'failed' to connect, it is well worth manually uninstalling the failed installation, or the OS will keep picking up the wrong installation, again and again....
9) Interference/crosstalk on the USB lines, again down to PCB layout.

Best Wishes
jaderd



Joined: 26 Jun 2009
Posts: 19

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

PostPosted: Thu Jul 02, 2009 11:42 am     Reply with quote

Someone have a functional code programed by self with USB in PIC18F4550, or equivalent, for send to me? I need help!

Thanks in advance.
jaderd



Joined: 26 Jun 2009
Posts: 19

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

PostPosted: Fri Jul 03, 2009 8:24 am     Reply with quote

???
Ttelmah
Guest







PostPosted: Fri Jul 03, 2009 9:06 am     Reply with quote

You already have such a program. ex_usb_serial.c, for example _does work, with your compiler version_. Setup the hardware to match the notes in the file, and it runs....

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
Goto page Previous  1, 2
Page 2 of 2

 
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