SlideShare ist ein Scribd-Unternehmen logo
1 von 30
USB 2.0 Basics
Vinchip Systems
(a Design and Verification Company)
Chennai.
Universal Serial Bus
 History of USB
 Why We Need USB ?
 Architectural Overview
 USB communication flow
 Protocol Layer
 Conclusion
History of USB
 Universal Serial Bus (USB) is an industry standard developed in the mid-1990
 USB was designed to standardize the connection of computer peripherals
 Keyboard
 Mouse
 Digital cameras
 Printers
 Portable media players
 HD drives
 Mobile devices
 PDA
Overview
 Key features of USB:
 Low cost
 Single connector type
 Hot pluggable
 Device handling
 Cable power
USB
Three generations of USB
 USB 1.0
 USB 2.0
 USB 3.0 and WUSB
Version History
 Prereleases
 The USB standard evolved through several versions before its official
release in 1995:
 USB 0.7: Released in November 1994.
 USB 0.8: Released in December 1994.
 USB 0.9: Released in April 1995.
 USB 0.99: Released in August 1995.
 USB 1.0 Released in January 1996.
 USB 2.0: Released in April 2000
 USB 3.0 was released in November 2008.
Speed Specifications
Why We Need USB ?
 Connection of the PC to the telephone :
=>In order to transmit data
 Ease-of-use :
  =>Support plug and play
 Port expansion :
=>Up to 127 devices
  =>Can add lots of device to a XX
 The logical topology of the USB is a star structure
 It is similar to computer network
USB Can Do
 Combines low speed and high speed bus activity , USB enables
shared access for both speed
 Automatic configuring of devices and a serial bus which is
simplified and easy to plug into
 Attach / detach easily without restarting system
USB 2.0 Specs
 USB 2.0: Released in April 2000
 maximum signaling rate of 480 Mbit/s
 effective throughput up to 35 MB/s
 Mini-A
 Mini-B Connector
Architectural Overview
 USB System Member - 1
 USB System Member - 2
 USB System Member - 3
USB System Member - 1
 Host : only one
 The smartest element in the USB system
 Responsible to the complexity of the protocol to make
devices design simple and low cost
 Control the media access ( no one can
 Access the bus unless it get an approval required
from the host )
USB System Member - 2
 Hub : one or more
=>Like the hubs used for computer network
=>Enables many devices to connect to a single
USB port
USB System Member - 3
 Device : one or more
=>Everything in the USB system , which is not a host , is a
device ( include hubs)
=>A device may provides one or more USB functions
=>Has an unique address at the end of the enumeration
process
Communication Flow
Pipes (1)
 The logic communication between the client software on the
host and the function on the device is done through pipes
 It is a association between a specific endpoint on the device
and the appropriate software in the host
Pipes (2)
 An endpoint is the source or destination of the data that
transmitted on the USB cable
 Two direction
=>OUT :
data flows from the host to the device
=>IN :
data flows from the device to the host
Signaling On The Bus
 The USB cable is 4 wire cable
 Signal on the bus is done by signaling over tow wires ( D+
and
D_ )
 1 : D_ low , D+
high
 0 : D_ high , D+
low
 Data encoding and decoding is done using NRZI ( Non Return
to Zero Inverted )
SIE - Serial Interface Engine
 SIE : Serial Interface Engine
 It is part of both the host’s and the device’s physical layer
 Serialization and Deserialization
 Encoding and Decoding
 Generate (for out) and Verify (for in) CRC
HC -Host Controller
 It is an additional hardware to ensure that everything which is
transmitted on the bus is correct
 It serves both the USB and the host and has the same
functionality in ever USB system
Transaction
 USB transactions are done through packets include three
phases
 Token phase :
 host initiates token indicating the future transfer type
 Data phase :
 Actual data transmitted
 Handshake phase :
 Indicate the success or failure of the transaction
Transfer Types (1)
 Control Transfer
=>Used to configure a device (enumeration)
=>Compose of three phases (setup, data, status)
 Isochronous Transfer
=>Used for multimedia devices
=>It is guarantee the required bandwidth
=>No handshake phase
Transfer Types (2)
 Bulk Transfer
=>Used for large burst data
=>Guarantee of delivery , no guarantee of
bandwidth or minimum latency
 Interrupt Transfer
=>If there is a pending interrupt , the function
will send details to host after host poll it
Packet (1)
 PID : Packet Identifier Field
 Address Field
=>So , there are up to 127 devices in USB
Packet
 Data Packet  Handshake Packet
=>Such as ACK 、
NAK 、 STALL…etc.
Conclusion
 USB is powerful and easy to use
 The complex host make the device easy to design
Cable
NRZI (1)
 Want to transmit :
=>1 : without changing the level of the
level of the signaling
=>0 : flip the value of the differential pair
example :
NRZI (2)
 Problem :
When we send “1” stream , the transmission
line will stay static ( no change period )
 Solution :
“Bit stuffing” , performed before the NRZI
example :
data : 010111111101
send : 0101111110101

Weitere ähnliche Inhalte

Was ist angesagt?

USB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device FrameworkUSB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device Framework
Macpaul Lin
 
Challenges in Using UVM at SoC Level
Challenges in Using UVM at SoC LevelChallenges in Using UVM at SoC Level
Challenges in Using UVM at SoC Level
DVClub
 

Was ist angesagt? (20)

USB 3.0
USB 3.0USB 3.0
USB 3.0
 
USB 3.0
USB 3.0USB 3.0
USB 3.0
 
USB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device FrameworkUSB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device Framework
 
utmippt
utmipptutmippt
utmippt
 
USB 2.0 Compliance Testing
USB 2.0 Compliance TestingUSB 2.0 Compliance Testing
USB 2.0 Compliance Testing
 
USB protocol
USB protocolUSB protocol
USB protocol
 
Usb
UsbUsb
Usb
 
Usb
UsbUsb
Usb
 
USB PD Introduction
USB PD IntroductionUSB PD Introduction
USB PD Introduction
 
Fpga implementation of utmi with usb 2.O
Fpga implementation of  utmi  with usb 2.O Fpga implementation of  utmi  with usb 2.O
Fpga implementation of utmi with usb 2.O
 
Bidirectional Bus Modelling
Bidirectional Bus ModellingBidirectional Bus Modelling
Bidirectional Bus Modelling
 
AMBA 3 APB Protocol
AMBA 3 APB ProtocolAMBA 3 APB Protocol
AMBA 3 APB Protocol
 
224698998 moshell-commands
224698998 moshell-commands224698998 moshell-commands
224698998 moshell-commands
 
USB 3.0 -Infinite Possibilities
USB 3.0 -Infinite PossibilitiesUSB 3.0 -Infinite Possibilities
USB 3.0 -Infinite Possibilities
 
Amos command
Amos commandAmos command
Amos command
 
Challenges in Using UVM at SoC Level
Challenges in Using UVM at SoC LevelChallenges in Using UVM at SoC Level
Challenges in Using UVM at SoC Level
 
AMBA Ahb 2.0
AMBA Ahb 2.0AMBA Ahb 2.0
AMBA Ahb 2.0
 
Arrow Devices USB 2.0 Concepts
Arrow Devices USB 2.0 ConceptsArrow Devices USB 2.0 Concepts
Arrow Devices USB 2.0 Concepts
 
Introduction about APB Protocol
Introduction about APB ProtocolIntroduction about APB Protocol
Introduction about APB Protocol
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
 

Ähnlich wie USB 2.0

Choosing_(and_Implem..
Choosing_(and_Implem..Choosing_(and_Implem..
Choosing_(and_Implem..
webhostingguy
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output Architecture
New Era University
 

Ähnlich wie USB 2.0 (20)

USB 2.0
USB 2.0USB 2.0
USB 2.0
 
wireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptxwireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptx
 
Advance of usb
Advance of usb Advance of usb
Advance of usb
 
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
 
U S B
U S BU S B
U S B
 
USB presentation by Mishuk
USB presentation by MishukUSB presentation by Mishuk
USB presentation by Mishuk
 
Choosing_(and_Implem..
Choosing_(and_Implem..Choosing_(and_Implem..
Choosing_(and_Implem..
 
USB BASIC
USB BASICUSB BASIC
USB BASIC
 
Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
 
USB TO USB Data Transfer without PC
USB TO USB Data Transfer without PCUSB TO USB Data Transfer without PC
USB TO USB Data Transfer without PC
 
Labview -USB
Labview -USB Labview -USB
Labview -USB
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output Architecture
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Chapter05 -- networking hardware
Chapter05  -- networking hardwareChapter05  -- networking hardware
Chapter05 -- networking hardware
 
USB, SCANNAR
USB, SCANNARUSB, SCANNAR
USB, SCANNAR
 
networking devices -161021181705452555
networking   devices -161021181705452555networking   devices -161021181705452555
networking devices -161021181705452555
 
Mcsenotes 111120025740-phpapp01
Mcsenotes 111120025740-phpapp01Mcsenotes 111120025740-phpapp01
Mcsenotes 111120025740-phpapp01
 
Mcse notes
Mcse notesMcse notes
Mcse notes
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

USB 2.0

  • 1. USB 2.0 Basics Vinchip Systems (a Design and Verification Company) Chennai.
  • 2. Universal Serial Bus  History of USB  Why We Need USB ?  Architectural Overview  USB communication flow  Protocol Layer  Conclusion
  • 3. History of USB  Universal Serial Bus (USB) is an industry standard developed in the mid-1990  USB was designed to standardize the connection of computer peripherals  Keyboard  Mouse  Digital cameras  Printers  Portable media players  HD drives  Mobile devices  PDA
  • 4. Overview  Key features of USB:  Low cost  Single connector type  Hot pluggable  Device handling  Cable power
  • 5. USB Three generations of USB  USB 1.0  USB 2.0  USB 3.0 and WUSB
  • 6. Version History  Prereleases  The USB standard evolved through several versions before its official release in 1995:  USB 0.7: Released in November 1994.  USB 0.8: Released in December 1994.  USB 0.9: Released in April 1995.  USB 0.99: Released in August 1995.  USB 1.0 Released in January 1996.  USB 2.0: Released in April 2000  USB 3.0 was released in November 2008.
  • 8. Why We Need USB ?  Connection of the PC to the telephone : =>In order to transmit data  Ease-of-use :   =>Support plug and play  Port expansion : =>Up to 127 devices   =>Can add lots of device to a XX  The logical topology of the USB is a star structure  It is similar to computer network
  • 9. USB Can Do  Combines low speed and high speed bus activity , USB enables shared access for both speed  Automatic configuring of devices and a serial bus which is simplified and easy to plug into  Attach / detach easily without restarting system
  • 10. USB 2.0 Specs  USB 2.0: Released in April 2000  maximum signaling rate of 480 Mbit/s  effective throughput up to 35 MB/s  Mini-A  Mini-B Connector
  • 11. Architectural Overview  USB System Member - 1  USB System Member - 2  USB System Member - 3
  • 12. USB System Member - 1  Host : only one  The smartest element in the USB system  Responsible to the complexity of the protocol to make devices design simple and low cost  Control the media access ( no one can  Access the bus unless it get an approval required from the host )
  • 13. USB System Member - 2  Hub : one or more =>Like the hubs used for computer network =>Enables many devices to connect to a single USB port
  • 14. USB System Member - 3  Device : one or more =>Everything in the USB system , which is not a host , is a device ( include hubs) =>A device may provides one or more USB functions =>Has an unique address at the end of the enumeration process
  • 16. Pipes (1)  The logic communication between the client software on the host and the function on the device is done through pipes  It is a association between a specific endpoint on the device and the appropriate software in the host
  • 17. Pipes (2)  An endpoint is the source or destination of the data that transmitted on the USB cable  Two direction =>OUT : data flows from the host to the device =>IN : data flows from the device to the host
  • 18.
  • 19. Signaling On The Bus  The USB cable is 4 wire cable  Signal on the bus is done by signaling over tow wires ( D+ and D_ )  1 : D_ low , D+ high  0 : D_ high , D+ low  Data encoding and decoding is done using NRZI ( Non Return to Zero Inverted )
  • 20. SIE - Serial Interface Engine  SIE : Serial Interface Engine  It is part of both the host’s and the device’s physical layer  Serialization and Deserialization  Encoding and Decoding  Generate (for out) and Verify (for in) CRC
  • 21. HC -Host Controller  It is an additional hardware to ensure that everything which is transmitted on the bus is correct  It serves both the USB and the host and has the same functionality in ever USB system
  • 22. Transaction  USB transactions are done through packets include three phases  Token phase :  host initiates token indicating the future transfer type  Data phase :  Actual data transmitted  Handshake phase :  Indicate the success or failure of the transaction
  • 23. Transfer Types (1)  Control Transfer =>Used to configure a device (enumeration) =>Compose of three phases (setup, data, status)  Isochronous Transfer =>Used for multimedia devices =>It is guarantee the required bandwidth =>No handshake phase
  • 24. Transfer Types (2)  Bulk Transfer =>Used for large burst data =>Guarantee of delivery , no guarantee of bandwidth or minimum latency  Interrupt Transfer =>If there is a pending interrupt , the function will send details to host after host poll it
  • 25. Packet (1)  PID : Packet Identifier Field  Address Field =>So , there are up to 127 devices in USB
  • 26. Packet  Data Packet  Handshake Packet =>Such as ACK 、 NAK 、 STALL…etc.
  • 27. Conclusion  USB is powerful and easy to use  The complex host make the device easy to design
  • 28. Cable
  • 29. NRZI (1)  Want to transmit : =>1 : without changing the level of the level of the signaling =>0 : flip the value of the differential pair example :
  • 30. NRZI (2)  Problem : When we send “1” stream , the transmission line will stay static ( no change period )  Solution : “Bit stuffing” , performed before the NRZI example : data : 010111111101 send : 0101111110101