| Author |
Message |
|
baiyang
|
Post subject: problem regarding the pic18f4550 usb device Posted: Wed Jun 06, 2012 4:05 pm |
|
Joined: Wed Jun 06, 2012 3:55 pm Posts: 4
|
these days, I am building the pic18f usb device in order to transfer data from the pic to the computer. I find the pic18f usb device tutorial here: http://www.waitingforfriday.com/index.p ... USB_deviceI tried with this. However, it did not work. I build the circuit without external oscillator (I am ordering one which is on its way), the switch. After I program the PIC and connect to my PC, there is no response. Can you help me figure out what's the problem?
|
|
 |
|
 |
|
Simon Inns
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Wed Jun 06, 2012 4:11 pm |
|
Joined: Thu Apr 01, 2010 6:23 am Posts: 888
|
|
The PIC18F USB interface does not work without an external oscillator. Check out the oscillator and USB sections of the datasheet where the oscillator requirements are stated.
/Simon
|
|
 |
|
 |
|
baiyang
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Thu Jun 07, 2012 1:30 pm |
|
Joined: Wed Jun 06, 2012 3:55 pm Posts: 4
|
|
hey simon. today the oscillator came. I tried the full version of the circuit. it still did not work. what can be the problem. I am using the same code as you give. The only difference is: we are using phython chip prog not the pickit3. will that be a problem? To my concern, that is not a problem. Till now, I can't figure out what's happening.
thanks.
baiyang
|
|
 |
|
 |
|
Simon Inns
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Fri Jun 08, 2012 5:25 am |
|
Joined: Thu Apr 01, 2010 6:23 am Posts: 888
|
|
I doubt the programmer is the issue, I presume you've used it before to program PICs successfully?
It's more likely to be a hardware issue and there are lots of posts and advice already on the forum about what to check. Confirm your circuit and check the capacitor values are correct. Also make sure your USB cable is correct and that the PIC has 5Vs on all it's power pins.
|
|
 |
|
 |
|
baiyang
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Fri Jun 08, 2012 7:30 am |
|
Joined: Wed Jun 06, 2012 3:55 pm Posts: 4
|
|
one of my friends used that one, it works. the capacitor is correct. all in all I will try another programmer. hope it works.
|
|
 |
|
 |
|
baiyang
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Sun Jun 10, 2012 1:48 pm |
|
Joined: Wed Jun 06, 2012 3:55 pm Posts: 4
|
|
finally the device works. Now I am having some problem on the HID code to control the usb device. The code is a lot. I am wondering the which part should I read through to understand the code theory behind the control method?
|
|
 |
|
 |
|
Simon Inns
|
Post subject: Re: problem regarding the pic18f4550 usb device Posted: Mon Jun 11, 2012 6:22 am |
|
Joined: Thu Apr 01, 2010 6:23 am Posts: 888
|
|
 |
|
 |
|