|
|
|
Windows not recognizing
|
|
Date: 2006/03/03 23:44
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
|
Hi guys! I am working with a PIC18F4455. My buddies and I constructed the circuit that is in the uSB article for the PIC18F4550 and cross-referenced the pins to the 4455. When plugging in our device to the USB we were getting a power surge and it was shutting down the USB, but I realized there was a wiring problem. I fixed the wiring problem, and now when I plug the device into the PC, I no longer get the power surge error....However, windows still does not recognize the device. What am I doing wrong????
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/04 00:19
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
Hey, thanks for posting it up, just means others can share the knowledge (and help out), anyways moving on. Do you have all 4 LED's connected to the PIC and is there any signs of life from these?!? Do you get any response from windows at all?
Mat
|
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/04 03:44
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
|
I do not have all 4 LED's connected. I currently have 1 LED connected because I was just testing to see if windows would recognize it. I just finished the "PIC SOFTWARE" part of your article. At that point you said that if everything was set up correctly windows should recognize it---therefore, I assumed that if I had 1 LED connected instead of 4, that windows wouldn't even know that or even care because I wasn't trying to work the LED's yet----however, windows is not showing anything. Like I said previously, I used to get an error from the USB saying I was pulling too much current, but I got rid of that because I had a wiring problem. Once I fixed that and I plug in the USB, I am not getting any sign of life.
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/04 12:03
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
Hey, your right that windows shouldnt know about whether you have 4 or 1 LED connected. However something I forgot to mention in the article (i'll add it shortly) is that LED's 1 and 2 are used to indicate the state of the usb device. If they flash alternatively then the device is connected correctly to windows. So your best bet is probably to connect up all the LED's and see what is happening on them. If you could do that and describe the current state of them i should be able to help further... Also have you checked in device manager to see if the pic is in the list, (it will be under Other Devices)? Mat
|
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/04 14:36
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
I did look in device manager and there is nothing listed in there. As you were mentioning about the LED's showing the connection status with the PC---that won't happen with just the firmware right?? We won't see any LED's, even the connection ones, until windows has recognized it and we install the windows drivers??
I do not have access to my lab until tomorrow, and at that time I will connect all the LED's.
While I'm here I'll give a basic run-down of the project I'm working on. I am working to create a VOIP phone using a standard analog phone, a PIC, and a D/A converter. I will be utilizing the USB features, hence the reason I am interested in this to get windows to recognize the USB side of the PIC.
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/04 17:16
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
The PIC uses LED's 1 and 2 to indicate its connection status to the PC, so it will change them even without the application running. It is probably best for you to get them connected up tomorrow and then finding the problem will be a lot easier!
With regards to your project, sounds like a good one, the only concern I would have is that you might not be able to get the signal sampling rate required down the USB, as it is a lot slower than you would first expect. :huh; Keep me posted and let me know when you have those LED's connected. Mat
|
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/05 01:10
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
|
I'll let you know about those LED's tomorrow. Another question as I am new to any kind of USB programming. What/where would I have to modify in this firmware in order for this device to act as my phone as I had suggested before. Like I said, I have no experience with any kind of USB firmware.
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/05 12:13
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
Hey again, I would really recommend reading through some of the articles on the microchip forums. The usb firmware you are using here is unlikly to be much use to you, however it will let you test the usb hardware easily before trying to implement a more complicated solution (such as audio!!). Do you want to implement your own software on the PC side or is there a standard windows VoiP driver im unaware of?!?! Mat
|
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/05 19:05
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
|
I am still in the stages of determining all of this. I was hoping to use this driver enough to get windowss to recognize it and then be able to alter it a bit. Are you saying this will be of no use and there won't be sections I could just alter to make this work??
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/05 21:10
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
I wouldnt say it is useless for your application, but you will end up having to change a larger % of the code than you will leave alone. It is probably best used as a way for testing the USB hardware and as a basis to learn from in order to understand how usb can be implemented on a PIC, rather than as a starting platform for your specific application.
The firmware provided is a great starting point for most applications which require basic I/O data, however by the sounds of it you want to create an entire audio class device, which will require a significantly different structure to the usb code
Mat
|
|
|
|
|
|
Re:Windows not recognizing
|
|
Date: 2006/03/05 22:16
|
By: Drake
|
Status: Visitor
|
|
|
|
|
|
|
|
Matt---I got in the lab today and NO LIGHTS are lighting up.
|
|
|
|