|
|
|
PIC18f4550 connection problems
|
|
Date: 2006/10/17 00:03
|
By: Tyler
|
Status: Visitor
|
|
|
|
|
|
|
|
My circuit is setup according to the USB example, I have a 20 MHz oscillator connected to pin 13/CLK1. I'm running off USB power, when I run the PIC program, the LED on RD0 is solid, windows doesn't ask for anydrivers. I've tried using an external power supply, and then connecting the USB cable, the LEDs flash in unison, once I plug in the cable the LED on RD1 turns solid.
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 00:12
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |   | |
|
Hey, firstly welcome.
Couple of things to try, firstly check you have made the circuit alterations, highlighted in bold under the circuit diagram in the article. (I made a mistake whilst I was writing it ), as these are needed for the PIC to detect the USB.
Secondly recheck your configuration settings as these are by far the normal suspects...
Mat
|
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 01:17
|
By: Tyler
|
Status: Visitor
|
|
|
|
|
|
|
Hey Mat, for some odd reason my USB B connector's pins were funky, I was looking at a diagram from the net, which labeled the pins, only when i used a scope did I see that the 5V on the USB connector didn't correspond with the net's schematic. So I rewired the USB connector, and right now it's making more sense because before as soon as the USB cable was plugged in, windows would signal "Device not Found". Now that only happens when I run the PIC program. So, now when I run the program the LEDs quickly flash, then the LED on RD0 stays on, then they go back to flashing together, and then I see the windows "USB device not recognized".
|
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 01:29
|
By: Tyler
|
Status: Visitor
|
|
|
|
|
|
|
|
I'm thinking it's probably the configuration bits. I've tried different combinations, especially ones from the article discussion, nothing seems to work. Maybe you could upload what you're using as configuration bits.
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 09:55
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |   | |
|
Sounds like the USB Voltage Regulator is Disabled, check it is Enabled.
Mat
|
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 14:46
|
By: Tyler
|
Status: Visitor
|
|
|
|
|
|
|
|
Figured it out Mat, it was one of the legs of the USB connector that wasn't in the right place, damn internet schematics. Now windows is requesting drivers, I'll tell you how it goes.
|
|
|
|
|
Re:PIC18f4550 connection problems
|
|
Date: 2006/10/17 14:57
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |   | |
|
Good to know 
Mat
|
|
|
|