Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] PIC18f4550 USB Not Recognised.

Status
Not open for further replies.

pcsandhya82

Member level 3
Joined
Jul 31, 2010
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Bangalore
Activity points
1,732
Hi,

I m trying to interface pic18f4550 USB to PC. I loaded the program for LED Blinking from OLIMEX (attached) and it worked fine. I m using the following circuit from eegeek.(attached). I loaded C:\MCHPFSUSB\fw\_factory_hex\picdemfsusb.hex from microsoft for USB testing.But USB Device is not being recognised by windows. Does it need an extra driver? Windows doesnt even ask for a driver. The LED at pin 19 keeps flashing when I connect USB. 20 MHz clock. Configuration bits attached. ICSP Programming was used.

Could someone tell what could be wrong? How to troubleshoot this? eegeek was offering a nice tutorial but it seems their web site is down.

Thanks in advance.
 

Attachments

  • 18f4550_usb_proto_basic.png
    18f4550_usb_proto_basic.png
    19.8 KB · Views: 129
  • PIC-USB-4550-BLINKING_LED.zip
    31.7 KB · Views: 65
  • config_20MHz.bmp
    1.4 MB · Views: 69

what is the connector X1 ?

This is a circuit I uses for a mini B connector
USBmini.jpg

I would tend to test it with one of Microchip's simple test projects from
**broken link removed**

e.g. HID mouse
C:\Microchip Solutions v2011-10-18\USB\Device - HID - Mouse

it uses a standard mouse driver on the host and moves the mouse around the screen
there is example code for a PICDEM FS USB Demo Board based on PIC18F4550
check you have the oscillator settings correct to get the USB frequency

also have a look at circuit of the PIC18 Starter Kit Users guide on
**broken link removed**
 
Last edited:

Hi,

I ve already installed MCHPFSUSB Framework. I tested my board with one hex file from that. Didnt work.
 

I loaded C:\MCHPFSUSB\fw\_factory_hex\picdemfsusb.hex from microsoft for USB testing.But USB Device is not being recognised by windows..
You attached only the program for led blinking and it works. Where your USB program?
If the device didn't recognized, possible many causes:
1) Wrong CPU/USB frequency
2) Mixed D+/D- connection
3) Wrong configuration bits
4) Wrong program

Attach your usb program please.
 

Hi,

I loaded C:\MCHPFSUSB\fw\_factory_hex\picdemfsusb.hex as per this tutorial:https://www.edaboard.com/threads/126795/
I did not bother about the source code, I just started off with a hex file.

When it did not work, I tried this tutorial:Building a PIC18F USB device - WFFwiki
I wired the circuit without the LED and switch on port B, and I could build the code successfully, but device was still not recognised.

code of the second tutorial can be downloaded at the site, but attaching here anyways.

Thanks.
 

Attachments

  • WFF Generic HID Demo 3.rar
    17.8 KB · Views: 67

Hi,

Here is the hex file:

Thanks.
 

Attachments

  • WFF_GenericHID_Demo_3.rar
    10.8 KB · Views: 83

Hi,

It worked too. It was a hardware issue.. Internal short in PCB. The USB data lines were getting shorted.

Thanks a lot for your help.. now I m gonna try and tweak the code.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top