i cant get 18f2550 work as HID


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    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.

  2. #2
    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

  3. #3
    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

  4. #4
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    OMG, it worked

    thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaank you Darrel for taking time to read the code and reply me. thank u very much

    and thx pedja for trying to help.

    Darrel, why LVP is so important in this case?

    i thought LVP stands for low voltage programming. and since i used k128 usb programmer i thought lvp must be enabled ( i read once that k128 uses low voltage programming for usb compatible pics).

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


    Did you find this post helpful? Yes | No

    Default

    Great News! And you're welcome.

    I'm not familiar with the K128 ...
    But with a quick look at the schematic in the datasheet, it seems to use a series of diodes and capacitors to increase the voltage and applies it to VPP.

    They have several different programmers.
    The LVP comment might have been directed at a different product.

    But when LVP is enabled ... anytime RB5/PGM goes HIGH ... it's just like taking MCLR/VPP to 13V.
    If it's left floating, the PIC could be constantly entering Program Mode from input noise.
    <br>
    DT

  6. #6
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by Darrel Taylor View Post
    Great News! And you're welcome.


    But when LVP is enabled ... anytime RB5/PGM goes HIGH ... it's just like taking MCLR/VPP to 13V.
    If it's left floating, the PIC could be constantly entering Program Mode from input noise.
    <br>
    well, thats something new to learn. thx Darrel

    i m now trying to control a robtic arm using USB communication. i m reading about intruppts. i ll report my work in this thread.

  7. #7
    Join Date
    Oct 2009
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    hi

    i need to know more about interrupts. when using usb communication i have to excute usbservice every milisecond or so. should interrupts help me ?

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