USB<---->PIC what are VID/PID,End points??

Embedded Systems Topics
Post Reply
RAT16F88
Lieutenant
Lieutenant
Posts: 72
Joined: Sat Nov 20, 2010 12:36 pm
Location: Inside a PIC

USB<---->PIC what are VID/PID,End points??

Post by RAT16F88 » Mon Nov 22, 2010 2:42 am

PLEASE CAn U EXPERTS Simply explain Me The TERMS VID,PID ,End Point Which are Used In USB Protocol
Any Example codes too plz 8-) 8-) 8-)
User avatar
Shane
Captain
Captain
Posts: 226
Joined: Sun Jul 19, 2009 9:59 pm
Location: Jönköping, Sweden

Re: USB<---->PIC what are VID/PID,End points??

Post by Shane » Mon Nov 22, 2010 10:08 am

The loading of the appropriate driver is done using a PID/VID (Product ID/Vendor ID) combination. The VID is supplied by the USB Implementor's forum at a cost and this is seen as another sticking point for USB. The latest info on fees can be found on the USB Implementer's Website.

Other standards organisations provide a extra VID for non-commercial activities such as teaching, research or fiddling (The Hobbyist). The USB Implementers forum has yet to provide this service. In these cases you may wish to use one assigned to your development system's manufacturer. For example most chip manufacturers will have a VID/PID combination you can use for your chips which is known not to exist as a commercial device. Other chip manufacturers can even sell you a PID to use with their VID for your commercial device.

Endpoints can be described as sources or sinks of data. As the bus is host centric, endpoints occur at the end of the communications channel at the USB function. At the software layer, your device driver may send a packet to your devices EP1 for example. As the data is flowing out from the host, it will end up in the EP1 OUT buffer. Your firmware will then at its leisure read this data. If it wants to return data, the function cannot simply write to the bus as the bus is controlled by the host. Therefore it writes data to EP1 IN which sits in the buffer until such time when the host sends a IN packet to that endpoint requesting the data. Endpoints can also be seen as the interface between the hardware of the function device and the firmware running on the function device.

All devices must support endpoint zero. This is the endpoint which receives all of the devices control and status requests during enumeration and throughout the duration while the device is operational on the bus.

Read more,
http://www.beyondlogic.org/usbnutshell/usb1.shtml
http://www.beyondlogic.org/usbnutshell/ ... tshell.pdf

Samples: There are many on the net....
http://www.microchipc.com/sourcecode/
http://www.beyondlogic.org/usbnutshell/ ... 876Example
http://www.mat.ucsb.edu/~dano/CUI/
RAT16F88
Lieutenant
Lieutenant
Posts: 72
Joined: Sat Nov 20, 2010 12:36 pm
Location: Inside a PIC

Re: USB<---->PIC what are VID/PID,End points??

Post by RAT16F88 » Mon Nov 22, 2010 5:11 pm

Im pleased Thank u expert :idea: :idea: :idea: :) :) :)
Im following links now Thanks
Post Reply

Return to “Embedded Systems”