- 2071 Shrawan · 5 marks
USB protocols followed in USB design
Short answer
USB design must follow 4-wire differential 90 Ω signaling, NRZI with bit stuffing, token-data-handshake packets with CRC and data toggling. Transfer types (control, bulk, interrupt, isochronous) are chosen. Enumeration uses descriptors to assign address 0 then a unique address. Power: suspend draws <2.5 mA.
Explain USB protocols which should be followed during the USB design.
A USB design must follow the rules of the USB specification at the electrical, protocol and software levels.
- Physical and electrical: four-wire cable (VBUS, D+, D-, GND); differential signalling with 90 ohm impedance; 1.5 kohm pull-up on D+ (full speed) or D- (low speed); 15 kohm pull-downs at the host; 5 V on VBUS, 100 mA default and up to 500 mA after configuration (900 mA in USB 3.0).
- Bus states and encoding: J, K and SE0 states; NRZI coding with bit stuffing; LSB first.
- Packet protocol: every transaction uses token, data and handshake packets with SYNC, PID, address, endpoint, CRC5/CRC16 and EOP; data toggle (DATA0/DATA1) for error recovery.
- Transfer protocols: control, bulk, interrupt and isochronous, selected according to the device needs and bandwidth.
- Enumeration protocol: on attach and reset, the host reads the descriptors (device, configuration, interface, endpoint, string), assigns a unique 7-bit address and selects a configuration. The device must respond at address 0 until it is addressed and must support endpoint 0.
- Device class protocols: follow standard classes (HID, mass storage, CDC, audio) so that generic drivers can be used.
- Power management: suspend (draw < 2.5 mA after 3 ms idle), resume/remote wake-up, bus-powered or self-powered declaration.
- Hub protocol: hubs report port status, handle reset and low-speed isolation (PRE).
- Compliance: pass the USB-IF compliance tests; a vendor ID (VID) and product ID (PID) must be assigned.
✓ Answer checked by Claude Sonnet 5.5
Related questions
- USB protocols and common packet fields · Instrumentation II, chapter 3 · asked 2×
- USB to RS-422 cable design · Instrumentation II, chapter 3
- USB to RS-232 adapter design · Instrumentation II, chapter 3