USB Learning


Closed Thread
Results 1 to 20 of 20

Thread: USB Learning

Hybrid View

  1. #1

    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

  2. #2

    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

  3. #3
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Learning

    There is example...
    HID USB Keypad.zip

  4. #4
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Learning

    There is example...
    Attachment 7401

  5. #5

    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

  6. #6

    Default Re: USB Learning

    Please disregard my last post.

    From forum search there appear to be several examples of working keyboard descriptors. For example http://www.picbasic.co.uk/forum/showthread.php?t=2872 post #2

  7. #7

    Default Re: USB Learning

    Greetings guys,

    @ towlerg,

    From forum search there appear to be several examples of working keyboard descriptors. For example http://www.picbasic.co.uk/forum/showthread.php?t=2872 post #2
    I did checked them...in fact, the descriptor i'm using is the one from the link you posted...but like i said...they dont compile

    @pedja089,

    Thanks alot for the files. I opened the main file and just tried to compile...no success
    I get alot of errors when compiling....

    Name:  Errors_1.jpg
Views: 16710
Size:  286.2 KB

    I'm very confused !!!
    These should compile...why cant i compile ??

    Regards
    Rui

  8. #8
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Learning

    Add DT_INTS-18 files.
    http://darreltaylor.com/DT_INTS-18/home.html
    I downloaded that example few years ago from forum, and I'm sure that it worked with PBP2.50.

  9. #9

    Default Re: USB Learning

    Hi pedja089,

    you are right...it did compile fine thanks...

    However...it's not being recognized with windows XP

    Damn...i have no luck with USB stuff !!!!
    If i code the pbp demo it recognizes, this one does not...

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