USBIN pain


Results 1 to 11 of 11

Thread: USBIN pain

Threaded View

  1. #6
    Join Date
    Sep 2009
    Posts
    755

    Default Re: USBIN pain

    Here is my template for USB and VB6
    http://www.picbasic.co.uk/forum/show...812#post106812
    I think that value stored in buffer(1) in vb, is value in buffer(0) in PBP...
    Values are shifted one place when you compare array on pc and pic.
    I'm forget why this is happen, so I'm not sure 100%...

    Here is comment from code
    PORTA=USBRXBuffer[0]'PC BufferOut(1)

    And here is why:
    BufferOut(0) = 0 ' first by is always the report ID
    ' write the data (don't forget, pass the whole array)...

    When you send data from PIC to PC, I think that values are on same place...
    Hope that this will clear what is going on...
    EDIT:
    And as you can see from Darrel's post USB buffer are at least 8 byte's
    DEFINE USB_INSIZE 64 ; IN report is PIC to PC (8,16,32,64)
    Last edited by pedja089; - 10th February 2015 at 22:08.

Similar Threads

  1. What a Pain In The USB-utt
    By Cobra_Phil in forum USB
    Replies: 19
    Last Post: - 23rd January 2015, 14:15
  2. PIC18F14K50 and USBin
    By ybosco in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th November 2013, 04:52
  3. Replies: 6
    Last Post: - 4th November 2009, 13:36
  4. Usbin and hserin
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th October 2007, 15:26
  5. Need help with USBIN
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th June 2007, 18:51

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