Академический Документы
Профессиональный Документы
Культура Документы
• General Information
• Technical Information
• Specification Information
• Coding
General Information
1. Introduction
2. History, Speeds, data rates, connections
3. Advantages
4. Disadvantages
5. Hardware and software tools
Introduction:
• Universal Serial Bus (USB) is the
common interface that enables
commutations between the host
and device
• Its Works as Command and
response mode.
• It’s a 7 bit addressable
• Up to 127 devices can be connected
to any one USB bus at any one given
time.
• A USB system is a unidirectional communications hierarchy
consisting of a single USB Host controller.
• All components of a USB system connect to each other using
one of the USB specified Cables and connectors .
PC to Monitor
with trace 32
C
Core o
IDE
n
U t
S r
B o JTAG
l
AMBA l
BUS AHB e
r
Bridge
........
.........
USB Set up on Analyzer Environment
Lecroy Analyzer
Analyzer Exerciser
Core
Controller
PC to Monitor
USB device
USB Speed Modes Circuit
Low Speed Mode Full Speed Mode
Power Delivery
USB Data Protocol Hierarchy:
Pipes • Message
• Stream
• Control
Transfers • Interrupt
• Isochronous
• Bulk
• Set up Token
Packets • Data
• Handshake
• Start of frame
PIPES
Stream Message
Isochronous Bulk Interrupt Control
Set up
Data
Status
IN OUT IN OUT
Token DATA HS SOF
S-8/32 PID-8 FRAME - 11 CRC-5 EOP-3
S-8/32 PID-8 EOP-3
S-8/32 PID-8 DATA-0~8192 CRC-16 EOP-3
Read operation
Protocol layer
Difference between Transfers
Control Interrupt Isochronous Bulk
Application Identify and configure the device Keyboard, mouse Audio, video Data Printer, scanner
works on Command and status
Byte size Packet Data Data Data Data
Low speed 8 byte 8 byte - -
0~8192
Full Speed 8,16,32,64 64 byte 1023 byte 8,16,32,64
Hi-speed Only 64 byte 1024 byte 1024 byte 512 byte
• USB Enumeration is the process of detecting, identifying and loading drivers for a USB
device.
•This involves a mixture of hardware techniques for detecting something is present and
software to identify what has been connected.
Detecting
• A USB interface consists of 4 wires. Power,
Ground, Data Plus (USBDP) and Data
Minus (USBDM). A USB host port with no
devices connected uses 15kohm resistors
to connect both USB DP and USB DM to
GND.
• When a USB device (sometimes referred
to as a slave) is plugged into a USB host
there is a change on these USB data lines.
It is this change that the USB host uses to
detect a device has been connected. This
change is also used to identify the speed
of device attached
identifying
• A low speed USB device (1.5Mbps) uses a 1k5 pull-up resistor to VCC on
the USB DM signal line.
• A full speed USB device (12Mbps) uses a 1k5 pull-up resistor to VCC on the
USB DP signal line.
• A high speed USB device (480Mbps) will initially appear as a full speed
device to the host. The first thing the USB host does is to attempt to send
/receive packets at high speed to the USB device. This is known as J and K
chirp and if communication is successful it will be assumed that the USB
device is a high speed device. If this initial communication fails then the
USB host assumes that the device is a full speed device.
• This means a high speed device has a 1k5 pull up resistor on USB DP that
can be switched in / out of circuit.
• A J state is defined as a differential signal on USBDP and USB DM >=
+300mV.
• A K state is defined as a differential signal on USBDP and USB DM >= -
300mV
Descriptors
Device Configuration Interface String End point
Device
Device Class
Configuration
Interface
String
End Point
Initialization analyzers
• Teledyne lecroy Prosuite.
• ITIC 1480A USB 2.0 Protocol Analyzer
Host Controllers
• Universal Host Controller
Interface (UHCI)
• Open Host Controller
Interface (OHCI)
• Enhanced Host Controller
Interface (EHCI)
• USB OTG controllers
• In every bus we can
connect only Host
controllers.
The Set up packets
PIPES
Stream Message
Isochronous Bulk Interrupt Control