SEARCH
TOOLBOX
LANGUAGES
Register    Login    Forum    Search    FAQ

Board index » Electronics Projects » PIC18F USB development




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: problem regarding the pic18f4550 usb device
 Post Posted: Wed Jun 06, 2012 4:05 pm 
Offline

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_device

I 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?


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Wed Jun 06, 2012 4:11 pm 
Offline

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


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Thu Jun 07, 2012 1:30 pm 
Offline

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


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Fri Jun 08, 2012 5:25 am 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Fri Jun 08, 2012 7:30 am 
Offline

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.


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Sun Jun 10, 2012 1:48 pm 
Offline

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?


Top 
 Profile  
 
 Post subject: Re: problem regarding the pic18f4550 usb device
 Post Posted: Mon Jun 11, 2012 6:22 am 
Offline

Joined: Thu Apr 01, 2010 6:23 am
Posts: 888
Both the firmware and the host application functions are covered in the following article:

http://www.waitingforfriday.com/index.p ... nd_Windows

Please take a look at the firmware and host software explanations there and see if it helps.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Electronics Projects » PIC18F USB development


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
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 post attachments in this forum

Search for:
Jump to:  
cron
Translated by MaĆ«l Soucaze © 2009 phpBB.fr