USB Learning


Closed Thread
Results 1 to 20 of 20

Thread: USB Learning

Hybrid View

  1. #1

    Default Re: USB Learning

    Hello George,

    Thank you so much for your help .

    You are right when you say to get a working example and do some changes.
    That is what i'm trying to get...a working example.

    All the examples i get here do not compile and i dont know why.
    The one i posted ( descriptor ) is from this forum and it was suposed to be working but it does not compile

    If someone would explain me why this does not compile maybe i would be able to fix it and move to the next stage.

    Regards
    Rui

  2. #2
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305

    Default Re: USB Learning

    Any chance you could post the errors? Some of the people around here can often narrow the issue when seeing those.

  3. #3

    Default Re: USB Learning

    Greetings,

    Thanks...you are right...

    If i compile with the descriptors commented i get these:

    Code:
    	' Include	"DESCKB.ASM"	' Include the HID descriptors
    Name:  Errors1.jpg
Views: 19734
Size:  322.7 KB

    If i add the descriptor include it will open the desckb.asm file and outline in red lines in it.

    Regards
    Rui
    Last edited by ruijc; - 22nd July 2014 at 19:53.

  4. #4

    Default Re: USB Learning

    Also...

    I'm using these 2 files + all of the files inside the USB18 folder from PBP.

    Regards
    Rui

  5. #5

    Default Re: USB Learning

    As far as I know all the samples in ..\USB18 will compile (I just tried a couple to confirm). One thing that often goes wrong when I use PicBasic is that I forget to set the correct microcontroller.


    You are right when you say to get a working example and do some changes.
    That is what i'm trying to get...a working example.
    The point is that you start with working descriptors.

    George

  6. #6

    Default Re: USB Learning

    Hi there,

    One thing that often goes wrong when I use PicBasic is that I forget to set the correct microcontroller.
    Not in this case...i have the correct microcontroller selected.

    The point is that you start with working descriptors.
    Exactly, like i said in my first post.
    My problem with the PBP examples is that i'm having problems correlating them with the other examples posted all over the forum ( that dont compile here ) and therefore make the necessary changes to keyboard.

    Too bad PBP does not have keyboard demos

  7. #7
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Learning

    There is example...
    HID USB Keypad.zip

  8. #8
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Learning

    There is example...
    Attachment 7401

  9. #9

    Default Re: USB Learning

    Hi

    Exactly, like i said in my first post.
    My problem with the PBP examples is that i'm having problems correlating them with the other examples posted all over the forum ( that dont compile here ) and therefore make the necessary changes to keyboard.
    Sorry, forgot that PicBasic didn't have a keyboard example.

    Let's just hope that some kind soul has a working HID Keyboard descriptor.

    This is a long shot but in the USB readme it says that the descriptors for the samples are derived from the original Microchip Solutions package. I've attached the keyboard and mouse descriptors from that package (you can download them yourself from Microchip's site). Using the PicBasic mouse descriptor you have compared to the Microchip version and hopefully understand how to convert the Microchip keyboard descriptor.

    George

    Keyboard_descriptors.txt Mouse_descriptors.txt

Similar Threads

  1. remote code learning
    By Bruce in forum Code Examples
    Replies: 20
    Last Post: - 21st February 2021, 15:38
  2. 18F2431 Learning Curve
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 25th June 2012, 15:41
  3. Learning Stepper motor
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th April 2009, 06:23
  4. Learning Basic
    By bartman in forum General
    Replies: 14
    Last Post: - 19th November 2004, 00:45

Members who have read this thread : 1

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