USB Keyboard


Closed Thread
Results 1 to 20 of 20

Thread: USB Keyboard

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621

    Default Re: USB Keyboard

    I have some code (based on something found on the forum I'm sure) that does USB keyboard emulation.
    Letters and numbers I know works but I don't think I implemented F1-F12 etc. I'll dig it out and post it if you're interested.

  2. #2

    Default Re: USB Keyboard


  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170

    Default Re: USB Keyboard

    Oh, you naughty aerostar! I guess alzheimer is knocking my door...

    Too much info on this USB mess... Lost the links I kept in case I needed them back.

    Thanks people for the info.

    Henrik, if you find your test code, please do post it. Will save me some time I am sure.

    Ioannis

  4. #4
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Keyboard

    I made keyboard to use as shortcuts for EAGLE. Should be exactly what you need. I used it on easypic dev board. Pic should be 18F4550.
    Here is complete project My UsbKeyboard.zip

    I created that using many examples from forum...

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170

    Default Re: USB Keyboard

    Thank you very much pedja089!

    Looks great and very close to what I need to do. have to add a small graphics display and test it on Win 10. Hope Win 10 do not pose any communication problem.

    Really appreciated.
    Ioannis

  6. #6
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USB Keyboard

    I used it on win7, and if I remember correctly on XP. It should work on win10.
    You have keys.PBP, with all defined keys, also in .doc document you have codes.

    Also USBSERVICE should be called every 10mS or so. I wanted to implement it with DT INT, but newer did...
    It should be something like this

    Code:
    INCLUDE "DT_INTS-18.bas"
    INCLUDE "ReEnterPBP-18.bas"
     
    ASM
    INT_LIST  macro		; IntSource,       Label,       Type,  ResetFlag?
            INT_Handler   USB_INT,  _SERVICE_USB,       ASM,  yes 
        endm
        INT_CREATE		; Creates the interrupt processor
    ENDASM
    
    USBINIT                'INITIALIZE USB
    USBSERVICE             'SERVICE USB
    UIE = $7F              'ENABLE USB INTERRUPTS
    UEIE = $9F             'ENABLE USB ERROR INTERRUPTS
    @ INT_ENABLE  USB_INT
    
    
    SERVICE_USB:
        USBSERVICE
    @ INT_RETURN
    This code is also from forum, but never tried it.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170

    Default Re: USB Keyboard

    Thanks for this tip also. I had in mind to make this Interrupt driven service but in a later stage.

    Ioannis

Similar Threads

  1. PIC18F14K50 USB Keyboard firmware
    By ScumariTec in forum USB
    Replies: 0
    Last Post: - 27th January 2021, 10:29
  2. USB keyboard emulator
    By Toley00 in forum USB
    Replies: 12
    Last Post: - 23rd January 2012, 00:57
  3. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  4. Replies: 17
    Last Post: - 13th June 2008, 21:33
  5. Replies: 3
    Last Post: - 10th April 2008, 10:02

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