|
||||||||
|
MCU User Forum
![]() USB
![]() USB for Dummies (one dummy, anyway)
|
| next newest topic | next oldest topic |
| Author | Topic: USB for Dummies (one dummy, anyway) |
|
rmac Member |
I am looking for a crash course (something I can do in a few hours) on how USB works from the device's (not the host's) point of view. I fully realize that I'm not going to really understand it in such a short time, but I would at least like to be able to string together sentences that include terms like "enumeration" and "endpoint" and "device class", without sounding like a total bozo. Can anyone point to a Silicon Labs app note or perhaps a favorite web based tutorial that would get me started? I'm currently plowing through the 100s of hits that I get from a Google search, but it's slow going trying to weed out the junk. Thanks, -- Russ IP: Logged |
|
Curt Member |
The Intel University Press did a book called _USB Design By Example_ by John Hyde that you can surely borrow through your library (interlibrary loan maybe). I thought it did a good job of introducing the subject in a "hands-on" kind of way. Surely out of date (1999 pub.) IP: Logged |
|
Tsuneo Member |
Nowadays, most of manufacturers provide libraries or examples for USB engine on their MCUs. The most complicated part of USB coding, enumeration and USB class support are already built-in these materials. Then, what you must learn first is how to modify it, and why this modification is required. 1. VID/PID (Vendor ID/ Product ID): (in device descriptor) 2. Serial number (in string descriptor) 3. USB transfer type: bulk, interrupt and isochronous (ignore control transfer at first) in full speed bulk interrupt isochronous See this link for detail. USB in NutShell: http://www.beyondlogic.org/usbnutshell/usb4.htm To send/receive greater size of data, you must split the data into packet on the firmware. 4. Difference of OUT (PC -> device) and IN (device -> PC) transfer Handling of transfer is also similar to UART RX/TX on the firmware. USB OUT (PC -> device) - UART RX USB IN (device -> PC) - UART TX
(But once you step in maniac region, like I and Patryk in this topic, you'll see hell of detail. Keep out from this region, if you want to sleep well every day Tsuneo [This message has been edited by Tsuneo (edited September 25, 2006).] IP: Logged |
|
rmac Member |
Tsuneo, Thanks very much for your informative post. (Thanks also for -- Russ [This message has been edited by rmac (edited September 25, 2006).] IP: Logged |
|
Tsuneo Member |
a) How to get unique VID/PID - Several manufacturers distribute unique PID under their VID. SiLabs also. - You can buy a range of PID - To get VID formally from USB.org
Automatically assigning Serial Numbers Tsuneo IP: Logged |
|
rmac Member |
Tsuneo, Thanks for the extra info. -- Russ IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?
|
| |||||
|
| |||||