Академический Документы
Профессиональный Документы
Культура Документы
Omid Fatemi
Interface Design
University of Tehran 1
Motivations
University of Tehran 2
USB
• Fast
• Bi-directional
• Isochronous
• low-cost
• dynamically attachable serial interface
• consistent with the requirements of the PC
platform of today and tomorrow
University of Tehran 3
Goals for USB
University of Tehran 4
Taxonomy of Application Space
University of Tehran 5
Feature list
University of Tehran 6
Feature list (con)
• Isochronous bandwidth
– Guaranteed bandwidth and low latencies appropriate for telephony, audio, etc.
– Isochronous workload may use entire bus bandwidth
• Flexibility
– Supports a wide range of packet sizes, which allows a range of device buffering options
– Allows a wide range of device data rates by accommodating packet buffer size and
latencies
– Flow control for buffer handling is built into the protocol
• Robustness
– Error handling/fault recovery mechanism is built into the protocol
– Dynamic insertion and removal of devices is identified in user-perceived real-time
– Supports identification of faulty devices
University of Tehran 7
Feature list (con)
University of Tehran 8
USB System Description
• USB interconnect
• USB devices
• USB host.
University of Tehran 9
USB Interconnect
University of Tehran 10
BUS Topology
University of Tehran 11
Physical Interface
University of Tehran 12
Throughput
• Low speed
– 1.5 Mbps
• Full speed
– 12 Mbps
• High speed (in USB 2.0)
– 480 Mbps
University of Tehran 13
Power Distribution
• Devices:
– Bus-powered devices
– Self-powered devices
• Power management
– Host based
– Power events:
» Suspend
» Resume
University of Tehran 14
Bus Protocol
• Polled bus
• Data transfers initiated only by host controller
• Three packets:
– Token packet
» Type
» Direction
» Address
» End point number
– Data packet
– Handshake packet
» ACK
» NAK
University of Tehran 15
Transfer Model
• Pipe
– Stream pipes
» No USB standard format
– Message pipes
» USB format
• Request
• Data
• Status
University of Tehran 16
Data Flow Types
• Control Transfers:
– Used to configure a device at attach time and can be used for other device-specific
purposes, including control of other pipes on the device.
• Bulk Data Transfers:
– Generated or consumed in relatively large and bursty quantities.
University of Tehran 17
USB Devices
• Hub
• Function
• Compound
University of Tehran 18
Typical Configuration
University of Tehran 19
Host Responsibility
University of Tehran 20
Implementer Viewpoints
University of Tehran 21
USB Implementation Areas
University of Tehran 22
Physical / Logical Bus
Topology
University of Tehran 23
USB Host / Device View
University of Tehran 24
USB Communication Flow
University of Tehran 25
Control Transfer Format
• Setup packet
• Data packet
• Acknowledge packet
University of Tehran 26
Control Transfer Constraints
• Best effort
• 10% frame time for control
• Use also remaining 90% if no interrupt or
isochronous transfer
University of Tehran 27
Full-Speed Control Transfer
Limits
University of Tehran 28
Low Speed Control Transfer
Limits
University of Tehran 29
Isochronous Transfers
• Stream pipe
• Uni-directional
• Maximum data payload: 1023 bytes
• Only in Full speed.
• No more 90% of frame for isochronous, interrupt
University of Tehran 30
Isochronous Limits
University of Tehran 31
Interrupt Transfers
University of Tehran 32
Full Speed Interrupt Limits
University of Tehran 33
Low Speed Interrupt Limits
University of Tehran 34
Bulk Transfers
• Stream pipe
• Only in full speed
• Max. Payload: only 8, 16, 32 or 64 bytes
University of Tehran 35
Bulk Transfer Limits
University of Tehran 36
Connectors
University of Tehran 37
Full Speed CMOS Driver
University of Tehran 38
Evaluation Setup
University of Tehran 39
NRZI Encoding
University of Tehran 40
Bit Stuffing
University of Tehran 41
Flow Diagram for Bit Stuffing
University of Tehran 42
Signaling Levels
University of Tehran 43
Signals
University of Tehran 44
Differential and Single Ended
University of Tehran 45
Standard Chapters
University of Tehran 46
Selected Problems
University of Tehran 47