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 prob

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



Joined: 20 Apr 2007
Posts: 5

View user's profile Send private message

Usb prob
PostPosted: Mon Apr 30, 2007 2:50 am     Reply with quote

Hi,

When I use the USB development kit it works ok, but when I try my own target board I get a message saying device not recognised. The only difference is my clock is 8MHz not 20MHz, I have changed the value of PPL from 5 to 2.

was:
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PPL5,CPUDIV1,VREGEN
#use delay(clock=48000000)

now:
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PPL2,CPUDIV1,VREGEN
#use delay(clock=48000000)

Thanks
Ttelmah
Guest







PostPosted: Mon Apr 30, 2007 4:00 am     Reply with quote

Try using a phase locked loop, rather than a private pilot's license!.
However the compiler should complain about this, so it is probably not the problem!. Smile
Look very carefully at the connections to the USB plug. Bus them through with a meter. The commoest failing, is not getting the connections right here.

Best Wishes
bowler32



Joined: 20 Apr 2007
Posts: 5

View user's profile Send private message

PostPosted: Mon Apr 30, 2007 7:14 am     Reply with quote

Thanks for the reply.

Sorry about the PPL I can't seem to type today, it is PLL in the program.
I have tested the connections about 5 times over the weekend thinking it was me and they are ok. My next possible solution it to just try a 20MHz clock but this is not ideal.
Anymore ideas would be very much welcome.

Thanks.
Guest








PostPosted: Mon Apr 30, 2007 7:28 am     Reply with quote

What capacitor, have you got on the Vusb pin?. Again, a lot of issues with this, but normally affecting reliability, rather than the initial connection.

Get a USB sniffer program, and look at what is actually happening. You should be able to see how far down the negotiations the system is getting.

Best Wishes
bowler32



Joined: 20 Apr 2007
Posts: 5

View user's profile Send private message

PostPosted: Mon Apr 30, 2007 9:54 am     Reply with quote

Thanks for the capacitor suggestion. It now works.
Very Happy Very Happy
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