|
|
View previous topic :: View next topic |
Author |
Message |
bowler32
Joined: 20 Apr 2007 Posts: 5
|
Usb prob |
Posted: Mon Apr 30, 2007 2:50 am |
|
|
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
|
|
Posted: Mon Apr 30, 2007 4:00 am |
|
|
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!.
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
|
|
Posted: Mon Apr 30, 2007 7:14 am |
|
|
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
|
|
Posted: Mon Apr 30, 2007 7:28 am |
|
|
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
|
|
Posted: Mon Apr 30, 2007 9:54 am |
|
|
Thanks for the capacitor suggestion. It now works.
|
|
|
|
|
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
|