USB Learning


Closed Thread
Results 1 to 20 of 20

Thread: USB Learning

Hybrid View

  1. #1

    Default Re: USB Learning

    This NOT PicBasic nor does it use a Pic but it does do what you want and since source is available, you should be able to extract the
    descriptors - http://blog.flipwork.nl/?x=entry:entry081009-142605.

    One common piece of advise when dealing with descriptors, is to take a working example and make incrementally changes, testing with
    each iteration.

    George

  2. #2

    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

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

  4. #4

    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: 19614
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.

  5. #5

    Default Re: USB Learning

    Also...

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

    Regards
    Rui

  6. #6

    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

  7. #7

    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

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