UNIVERSAL SERIAL BUS (USB)
SALIENT FEATURES 
• Asynchronous serial communication. 
• Attachment is detected and device is 
configured automatically. 
• Single standard connector. 
• 127 devices can be connected via hubs. 
• Three device speeds 
• Error detection/recovery is automatic.
SALIENT FEATURES 
• USB networks use a tiered-star topology 
• use a "speak-when-spoken-to" protocol; 
peripherals cannot communicate with the 
host unless the host specifically requests 
communication. 
• USB 3.0 is planned to allow for device-initiated 
communications towards the host 
• A USB network relies on a single host at the 
top of the tree to control the network
SALIENT FEATURES 
• USB runs with a 5v power line 
• USB can connect peripherals such as mice, keybds, 
digi cams, printers, personal media players, flash 
drives, and ext HDDs. 
• USB devices are hot-swappable, meaning you can 
plug them into the bus and unplug them any time 
without reboot. 
• Most emerging and widely used bus technology.
PC Host Software 
(USB Communication Flow)
USB DEVICE COMN
USB DEVICE COMN 
• COMN BASED ON PIPES 
• PIPES ARE THE CONNECTION BETWEEN HOST 
AND AN ENDPOINT 
• USB DEVICE CAN HAVE UP TO 32 ACTIVE 
PIPES: 16 INTO AND 16 OUT OF THE HOST 
CONTROLLER 
• TWO TYPES OF PIPES: STREAM AND MESSAGE 
PIPES DEPENDING ON THE TYPE OF DATA 
TRANSFER.
TYPE OF DATA TRANSFER 
• Isochronous transfers: at some guaranteed 
data rate but with possible data loss (e.g. 
realtime audio or video). 
• Interrupt transfers: devices that need 
guaranteed quick responses (e.g. pointing 
devices and keyboards). 
• Bulk transfers: large sporadic transfers using 
all available bandwidth(e.g. file transfers). 
• Control transfers: typically used for short, 
simple commands to the device.
SIGNALLING TECHNOLOGY 
• Signals are transmitted on a twisted pair data 
cable 
• Use half-duplex differential signalling to 
reduce the effects of electromagnetic noise 
on longer lines 
• USB 3.0 introduces two additional pairs of 
shielded twisted wire ,which permit higher 
data rate, and full duplex operation.
SIGNALLING TECHNOLOGY 
• A low-speed rate of 1.5 Mbps is defined by 
USB 1.0. It is intended primarily to save cost. 
• The full-speed rate of 12 Mbps is the basic 
USB data rate defined by USB 1.1. All USB 
hubs support full-bandwidth. 
• A high-speed (USB 2.0) rate of 480 Mbps .All 
hi-speed devices support this bandwidth. 
• A SuperSpeed (USB 3.0) rate of 4800 Mbps 
includes new wiring and full duplex operation.
I/O Device
DEVICE CONNECTIVITY 
• USB DEFINES CLASS CODES USED TO IDENTIFY 
A DEVICE’S FUNCTIONALITY AND TO LOAD A 
DEVICE DRIVER BASED ON THAT 
FUNCTIONALITY 
• THIS ENABLES EVERY DEVICE DRIVER WRITER 
TO SUPPORT DEVICES FROM DIFFERENT 
MANUFACTURERS THAT COMPLY WITH A 
GIVEN CLASS CODE.
SOME DEVICE CLASSES 
Class Usage Description Examples 
01h Interface Audio 
Speaker, microphone, 
sound card 
Keyboard, mouse, 
joystick 
03h Interface Human Interface Device (HID) 
07h Interface Printer 
Laser printer, 
inkjet printer, 
CNC machine 
08h Interface Mass storage 
USB flash drive, 
memory card reader, 
digital audio player, 
digital camera, 
external 
09h Device USB hub Full bandwidth hub 
0Bh Interface Smart Card USB smart card reader 
0Dh Interface Content Security Finger Print Reader 
0Eh Interface Video Webcam
DATA TRANSFER 
• USB COMN TAKES THE FORM OF PACKETS 
• ALL PACKETS ARE SENT FROM THE HOST, VIA THE 
ROOT HUB TO THE DEVICES 
• ALL PACKETS ARE MADE OF 8-BIT BYTES, 
TRANSMITTED LSB FIRST 
• THE FIRST BYTE IS A PACKET IDENTIFIER (PID) 
BYTE. 
• PACKETS COME IN THREE BASIC TYPES, EACH 
WITH A DIFFERENT FORMAT-HANDSHAKE,TOKEN 
AND DATA PACKETS
USB PID BYTES 
Type 
PID value 
(msb-first) 
Transmitted 
byte 
(lsb-first) 
Name Description 
Reserved 0000 0000 1111 
Token 
1000 0001 1110 SPLIT 
High-bandwidth 
(USB 2.0) split 
transaction 
0100 0010 1101 PING 
Check if endpoint 
can accept data 
(USB 2.0) 
Data 
0011 1100 0011 DATA0 
Even-numbered 
data packet 
1011 1101 0010 DATA1 
Odd-numbered 
data packet 
Handshake 
0010 0100 1011 ACK 
Data packet 
accepted 
1010 0101 1010 NAK 
Data packet not 
accepted; please 
retransmit
FUTURE TRENDS- USB 3.0 
• 12 GB/SEC DATA SPEED 
• CACHE-ACCELERATION OF OLD USB DEVICES 
• FULLY PLUG AND PLAY WITHIN 500 MILLISEC 
• REALLY POSSIBLE TO INSTALL 128 DEVICES 
• 2048X1536X32BITS 75FRAMES/SEC WEBCAM 
• NINTENDO2USB3 AND PLAYSTATION3USB3 
DEVICE LINK CABLES 
• FULLY COMPATIBLE WITH IEEE 1394 (SERIAL 
BUS INTERFACE STD)

USB BASIC

  • 1.
  • 2.
    SALIENT FEATURES •Asynchronous serial communication. • Attachment is detected and device is configured automatically. • Single standard connector. • 127 devices can be connected via hubs. • Three device speeds • Error detection/recovery is automatic.
  • 3.
    SALIENT FEATURES •USB networks use a tiered-star topology • use a "speak-when-spoken-to" protocol; peripherals cannot communicate with the host unless the host specifically requests communication. • USB 3.0 is planned to allow for device-initiated communications towards the host • A USB network relies on a single host at the top of the tree to control the network
  • 4.
    SALIENT FEATURES •USB runs with a 5v power line • USB can connect peripherals such as mice, keybds, digi cams, printers, personal media players, flash drives, and ext HDDs. • USB devices are hot-swappable, meaning you can plug them into the bus and unplug them any time without reboot. • Most emerging and widely used bus technology.
  • 5.
    PC Host Software (USB Communication Flow)
  • 6.
  • 7.
    USB DEVICE COMN • COMN BASED ON PIPES • PIPES ARE THE CONNECTION BETWEEN HOST AND AN ENDPOINT • USB DEVICE CAN HAVE UP TO 32 ACTIVE PIPES: 16 INTO AND 16 OUT OF THE HOST CONTROLLER • TWO TYPES OF PIPES: STREAM AND MESSAGE PIPES DEPENDING ON THE TYPE OF DATA TRANSFER.
  • 8.
    TYPE OF DATATRANSFER • Isochronous transfers: at some guaranteed data rate but with possible data loss (e.g. realtime audio or video). • Interrupt transfers: devices that need guaranteed quick responses (e.g. pointing devices and keyboards). • Bulk transfers: large sporadic transfers using all available bandwidth(e.g. file transfers). • Control transfers: typically used for short, simple commands to the device.
  • 9.
    SIGNALLING TECHNOLOGY •Signals are transmitted on a twisted pair data cable • Use half-duplex differential signalling to reduce the effects of electromagnetic noise on longer lines • USB 3.0 introduces two additional pairs of shielded twisted wire ,which permit higher data rate, and full duplex operation.
  • 10.
    SIGNALLING TECHNOLOGY •A low-speed rate of 1.5 Mbps is defined by USB 1.0. It is intended primarily to save cost. • The full-speed rate of 12 Mbps is the basic USB data rate defined by USB 1.1. All USB hubs support full-bandwidth. • A high-speed (USB 2.0) rate of 480 Mbps .All hi-speed devices support this bandwidth. • A SuperSpeed (USB 3.0) rate of 4800 Mbps includes new wiring and full duplex operation.
  • 11.
  • 12.
    DEVICE CONNECTIVITY •USB DEFINES CLASS CODES USED TO IDENTIFY A DEVICE’S FUNCTIONALITY AND TO LOAD A DEVICE DRIVER BASED ON THAT FUNCTIONALITY • THIS ENABLES EVERY DEVICE DRIVER WRITER TO SUPPORT DEVICES FROM DIFFERENT MANUFACTURERS THAT COMPLY WITH A GIVEN CLASS CODE.
  • 13.
    SOME DEVICE CLASSES Class Usage Description Examples 01h Interface Audio Speaker, microphone, sound card Keyboard, mouse, joystick 03h Interface Human Interface Device (HID) 07h Interface Printer Laser printer, inkjet printer, CNC machine 08h Interface Mass storage USB flash drive, memory card reader, digital audio player, digital camera, external 09h Device USB hub Full bandwidth hub 0Bh Interface Smart Card USB smart card reader 0Dh Interface Content Security Finger Print Reader 0Eh Interface Video Webcam
  • 14.
    DATA TRANSFER •USB COMN TAKES THE FORM OF PACKETS • ALL PACKETS ARE SENT FROM THE HOST, VIA THE ROOT HUB TO THE DEVICES • ALL PACKETS ARE MADE OF 8-BIT BYTES, TRANSMITTED LSB FIRST • THE FIRST BYTE IS A PACKET IDENTIFIER (PID) BYTE. • PACKETS COME IN THREE BASIC TYPES, EACH WITH A DIFFERENT FORMAT-HANDSHAKE,TOKEN AND DATA PACKETS
  • 15.
    USB PID BYTES Type PID value (msb-first) Transmitted byte (lsb-first) Name Description Reserved 0000 0000 1111 Token 1000 0001 1110 SPLIT High-bandwidth (USB 2.0) split transaction 0100 0010 1101 PING Check if endpoint can accept data (USB 2.0) Data 0011 1100 0011 DATA0 Even-numbered data packet 1011 1101 0010 DATA1 Odd-numbered data packet Handshake 0010 0100 1011 ACK Data packet accepted 1010 0101 1010 NAK Data packet not accepted; please retransmit
  • 16.
    FUTURE TRENDS- USB3.0 • 12 GB/SEC DATA SPEED • CACHE-ACCELERATION OF OLD USB DEVICES • FULLY PLUG AND PLAY WITHIN 500 MILLISEC • REALLY POSSIBLE TO INSTALL 128 DEVICES • 2048X1536X32BITS 75FRAMES/SEC WEBCAM • NINTENDO2USB3 AND PLAYSTATION3USB3 DEVICE LINK CABLES • FULLY COMPATIBLE WITH IEEE 1394 (SERIAL BUS INTERFACE STD)