USB Endpoints


Closed Thread
Results 1 to 13 of 13

Thread: USB Endpoints

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Unhappy USB Endpoints

    Does anybody understand what end points are?

    eg
    USBIn endpoint,buffer,countvar, label
    USBOut endpoint,buffer,count, label


    Trying to get my head around this and not gettin very far

    Squib

  2. #2
    Join Date
    Jan 2007
    Posts
    70

    Default

    The USB 2.0 specification from usb.org discuses endpoints.

  3. #3
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123

    Default

    Quote Originally Posted by Squibcakes View Post
    Does anybody understand what end points are?

    eg
    USBIn endpoint,buffer,countvar, label
    USBOut endpoint,buffer,count, label


    Trying to get my head around this and not gettin very far

    Squib
    please try this

    http://www.symbian.com/developer/tec...Constants.html
    Regards,
    Sarma

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Endpoints are just blocks of RAM on the device that are used for inbound
    and outbound data exchange between the device & USB host.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Still not getting it.

    I guess what i am trying to ask is how do I know what value to set as an endpoint number? ie 0 1 2 or 3?

    Squib

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    With PBP, you have a boat-load of USB assembly language 'framework' files
    that get included at compile time. One of these is the 'descriptor' file. This
    one includes your endpoint initialization/setup info - along with tons of other
    information.

    ; HID
    ; Endpoints Allocation
    #define HID_INTF_ID 0x00
    #define HID_UEP UEP1
    #define HID_BD_OUT ep1Bo
    #define HID_INT_OUT_EP_SIZE 8
    #define HID_BD_IN ep1Bi
    #define HID_INT_IN_EP_SIZE 8
    #define HID_NUM_OF_DSC 1

    If your 'Endpoints Allocation' section looks similar to the one above, then you
    would issue USBIn 1, USBBuffer, blah, blah to use endpoint 1.

    USBOut would also use endpoint 1.

    PBP's USBIn & USBOut commands are pretty generic, and don't really do much
    except call the .asm USB framework routines, and pass data. The real meat
    of what's going on is handled by the assembler USB framework files.

    It's a great deal to learn if you want to get 'really' familiar with USB - for sure.
    The Microchip C18 'C' USB framework files are easier to understand than the
    .asm files MeLabs ported over from C18. If you're not familiar with assembler,
    you might find those easier to decipher.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default

    Thanks Bruce,

    I'm away from my pic for a while but will look into it somemorewhen I get back....

    Cheers
    Squib

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 02:46
  3. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  4. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

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