HID USB Multimedia Keypad


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    Quote Originally Posted by pmacleod View Post
    Ok I just had some of that code you gave me in wrong place, seems to be working fine now.
    Great!!
    I noticed they really changed the USB examples in the new PBP, is it hard to convert an exsisting project to the new format or is it even worth doing.
    Your base code should not really change, just the supporting files. So what I do when upgrading an old project like this is start a new directory with the old base code and all of the new supporting files if I need the features from the new PBP. Otherwise I just leave things as they are and use the version of PBP that was originally used for the project. You can have more than one version of PBP installed, just pick the one you want at compile time.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    Ok I am seeing some wierd things in the new USB Descriptor file for PBP 2.60. Is there a filesize limit for the descriptors now?

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    I have not heard of any changes . Not sure why there would be.
    Which file are you looking at?
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    I converted my project to the new format and everything was ok so I went ahead and added the section for the Endpoint 1 In. Once I added it I started getting 'Block overflow for ENDASM'.

    I went over and over the ASM code in the descriptor and nothing was wrong. I removed an equal amount of comment lines and it compiled ok. I continued to do the same thing but ran out of comment lines I could remove, My full USB Descriptor file is quite big and I can't even finish getting all of the first endpoint code in before getting the error.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: HID USB Multimedia Keypad

    I am afraid you are beyond me. I have not written my own descriptor file Sorry.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Feb 2011
    Posts
    14

    Default Re: HID USB Multimedia Keypad

    Wierd thing is it works fine if i use the old method but still compile for PBP 2.60, its just the new method of putting the descriptor in a BAS file as an include that does not work.... I guess I will just stick to the old method for now.

    Must but a problem with PBP itself, I hope they fix it.


    P.S.: Just wanted to let you know that the interrupt method you gave me (the instant one) works wonders, I moved the button press code to interrup also and works perfectly, thanks so much
    Last edited by pmacleod; - 13th February 2011 at 01:28.

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

    Default Re: HID USB Multimedia Keypad

    There is a limit to the number of characters in a single ASM block (includes comments and spaces/tabs).

    You can just start a new block when you reach the limit ...

    Code:
    ENDASM
    ASM
    Last edited by Darrel Taylor; - 13th February 2011 at 19:07.
    DT

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