i cant get 18f2550 work as HID


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    hi

    yeah i did activated internal voltage regulator. he is a pic for fuse configuration in my programmer. it shows what i used
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    please help me

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    You yust should set USBPPL and PPLDIV to 48MHz, or divide by 12 if you use 48MHz resonator.
    I think that code is good.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Ahmadabuomar,

    Another possible problem ...

    According to your picture ...
    Low Voltage Programming (LVP) is Enabled.
    You could put a pull-down resistor on RB5/PGM, but you probably want to disable it completely since you are using the full PORTB in your program.

    And pedja089, you can't use a 48Mhz resonator with the 4550's.
    Maximum frequency using the main oscillator is 25Mhz.
    You can use an external TTL (canned) 48Mhz oscillator with EC mode.
    <br>
    DT

  5. #5
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    I know that. But look to top line of his pic code.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The top line says DEFINE OSC 48

    Which seems correct from the image of the configs which shows an 8Mhz crystal with HS_PLL that gives 96Mhz.

    The USBPLL is /2 so the USB gets 48Mhz, and the CPUDIV is also /2 so it's running at 48Mhz.

    Except for the LVP, it all seems good.

    Well, might want to disable XINST too.
    <br>
    DT

  7. #7
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    thx for ur reply

    i ll try to disable lvp and xinst and see what happen

    brb

Similar Threads

  1. PortA Doesn't Work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 11
    Last Post: - 8th September 2015, 18:41
  2. USB hid maker help please.
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd April 2013, 14:49
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  4. 18f2550 + 24lc512
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2007, 22:02
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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