18F4550 Not Recognised


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Hi,

    There is a capacitor connected to Vusb in figure 17.10 on page 184 of the datasheet for the PIC 18F4550.

    But I can't find any reference to the recommended value, where did you guys come up with 400nF? And how much more than 400nF can we go?

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Ok, I found another thread where Melanie mentions 17.2.2.8:

    "The PIC18FX455/X550 devices have a built-in 3.3V regulator
    to provide power to the internal transceiver and
    provide a source for the internal/external pull-ups. An
    external 220 nF (±20%) capacitor is required for stability."

    I don't know why people are mentionning 400nF when the datasheet states 220nF, give or take 20%. Either way, I don't have capacitors in this range so I'm stuck for now.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    higher value may be needed if you experiment some erratic connection failure.

    As now, 220nF work great for the really few USB stuff i did as now. you can even place two 220nF (0.22uF) in parrallel or a match of to get the value you want in meantime.

    Robert.. OT but KGE will move in the next days/months in the old FLY store near the 30. Will be by far bigger
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default

    400nF comes from experience. I know what the datasheet says but with 220nF, I found the 18F4550 had trouble enumerating. It may have been due to my design and for most people 220nF may work fine but I was just giving my experience. I don't think there is any harm in using a higher value cap.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Did you get something like this when you didn't have the proper capacitor value?

    First the device is seen, but then it craps out with an error.

    Robert
    Attached Images Attached Images  
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    could be that. probably you should try first to remove all HIDs in the Control panel/System/Hardware/DeviceManager while your unit is connected and then reboot, then retry.

    It may also be a Microchip Bootloader problem if you use it. If so, erease the best, reprogram your device without the bootloader, then retry... about now?

    If the problem is the Bootloader, be sure you place a pull-up on PORTB.4 and it may solve some problem. When booting, it looks if the PORTB.4 is low to enter the programming mode. So if your pin is floating it may just ruine your life.

    I may be out but try this and the capacitor stuff.

    Make sure you keep the connection alive every few mSec with the USBSERVICE.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    Quote Originally Posted by mister_e
    ...

    Robert.. OT but KGE will move in the next days/months in the old FLY store near the 30. Will be by far bigger
    Steve, can you give me more details, I don't know the FLY store. If King George Electronics moves closer to the 30 it's great for me, less distance to travel to buy emergency parts (like a 220nF cap).

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Robert, Fly is besing the Golf.... between the St-Bruno shopping center and Boulevard Cousineau.. on the voie de service. It will be done in few days week. In meantime, MasterVox at Longeuil.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default

    I'm not using a bootloader, don't know how.

    I have a pull-up on B4.

    I have USBSERVICE in the loop, my code was generated with HIDMaker FullSpeed.

    I don't have the Vusb cap, I have to go buy a couple values.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    what are the value you have? Any scrapped computer, printer or anything else electronic?

    Look for it in there... that's free.. if you don't calculate your time, movement, gas and plah plah plah.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    one thing that just spring to mind... what about your main loop?

    Is there some USBIN? if so, remove it and just send few data to know.. what happen now?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  12. #12
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    I use 470nF on all my USB boards, and have never had a problem with any. That's the same value used on the MeLabs and Microchip USB development boards.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. 18f4550 usb problem.. so im getting crazy..
    By MeSaKu in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th May 2009, 22:03
  2. 18F4550 to 18F2550
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th September 2007, 23:13
  3. USB Programmer for 18F4550 PICs
    By Kamikaze47 in forum USB
    Replies: 8
    Last Post: - 21st August 2007, 16:29
  4. EasyHID 18f4550 - DEVICE NOT RECOGNISED?
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd July 2007, 23:54
  5. Replies: 0
    Last Post: - 5th September 2005, 09:09

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts