Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 14th November 2007, 09:42 PM   (permalink)
Default Microchip USB framework problems.

Hi all,
I have made a pcb with a 18f4550 and a few LEDs and headers.
This is my first attempt at USB, and so the board has no other purpose than just to aid learning.

The usb device im making is completely powered by the usb bus, and therefore i have got rid of the code in the framework that handles usb bus sense. As you can see from my schematic i have not included a bus sense pin.

My problem is that the device isnt recognised by the pc.
The leds flashing on the pcb, when i connect it to the pc, indicate that the microchip framework mode (usb_device_state) is set to "addressed".
It stays in this state, and windows tells me that the device is not recognised.

Also, the PID and VID of the unrecognised device are both 0000 in device manager.

I have really hit a wall here, I just dont know what im doing wrong.

Any ideas?

I used this page as a starting point, and modified the code found here

Also i have included a zipped copy of my project.

Many thanks in advance.
Attached Images
File Type: png circuit.png (22.2 KB, 22 views)
Attached Files
File Type: zip picusbdemo.zip (284.4 KB, 2 views)

Last edited by HerbertMunch; 14th November 2007 at 09:46 PM.
HerbertMunch is offline  
Old 14th November 2007, 09:56 PM   (permalink)
Default

I changed the usb port it was on and now its installed the drivers, but windows says that the device cannot start.
Why???? stupid windows.
HerbertMunch is offline  
Old 14th November 2007, 10:07 PM   (permalink)
Default

0.47uf cap is required on VUSB pin 18 and GND
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 15th November 2007, 12:02 AM   (permalink)
Default

Ok cheers mate,

Could that cause the problems ive been experiencing?
HerbertMunch is offline  
Old 15th November 2007, 12:15 AM   (permalink)
Default

Yes it will... all sorts of weird problems can result.

The device sheet says the cap is mandatory but it's surprising just how many people ignore that.

P.
aussiepoof is offline  
Old 15th November 2007, 08:34 AM   (permalink)
Default

all right thanks very much aussiepoof and bill.

Chris
HerbertMunch is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
USB Power hack with DC/DC Converter - am I crazy? chconnor Electronic Projects Design/Ideas/Reviews 14 8th March 2008 10:13 PM
Pic18f87j50 USB problems Tim_B Micro Controllers 3 6th November 2007 02:14 AM
usb interfacing problems for a waveform generator simonharvey Electronic Projects Design/Ideas/Reviews 0 27th September 2007 12:32 AM
USB to Serial problems spondootre Micro Controllers 12 28th November 2006 09:09 AM
Microchip Website FYI... Beefer3 Micro Controllers 36 23rd June 2005 09:16 AM



All times are GMT. The time now is 02:42 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker