Documente Academic
Documente Profesional
Documente Cultură
Colin Walls
colin_walls@mentor.com
USB is a Good Thing
U
S
B
2
What is USB?
n Alternative to old-fashioned serial and parallel
interfaces
n Minimises number of PC connectors
n Simplifies I/O and offers true plug-n-play
n Supports up to 127 devices
n Multiple data rates
– USB 1.1: full speed [12Mb/s] and low speed [1.5Mb/s]
– USB 2.0: high speed [480Mb/s]
– USB 3.0: very high speed [4.8Gb/s]
3
USB Technology Overview
Std-B
Std-A
Std-A
4
Typical Peripheral Applications
5
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Peripheral 4 Peripheral
6
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Peripheral 4 Peripheral
7
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Peripheral 4 Peripheral
8
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Peripheral 4 Peripheral
9
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Peripheral 4 Peripheral
10
USB Topology
Host
Root Hub
Hub
1
Hub Hub
3 Function 4 Function
11
USB Communications
Endpoint 15
To USB
host CPU
Interface
or hub Endpoint 1
Endpoint 0
Input/Output Device
12
USB Communications
Endpoint 15
To USB
host CPU
Interface
or hub Endpoint 1
Endpoint 0
Input/Output Device
13
USB Transfers
n USB is a master/slave protocol
14
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
15
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
16
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
17
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
18
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
19
USB Software Layers
Host Function
Application Application
Middleware Middleware
Hardware Hardware
Controller Driver Controller Driver
20
USB and Embedded Systems
21
Creating USB Peripherals
22
Using USB Peripherals
23
Both Sides of the Bus
24
USB On-The-Go
25
Typical OTG Applications
26
Host Negotiation Protocol
PDA Cell phone
A-host B-peripheral
Browse web
HNP
A-peripheral B-host
Upload addresses
28
Nucleus USB – Features
29
Nucleus USB Function Class Drivers
CDC Subclass
Mouse Modem
Device Mgmt
30
Nucleus USB Host Class Drivers
Floppy Power
CCID
31
USB – The Future
n USB has been subject to constant extension and
enhancement
n Some less successful
– USB OTG not as ubiquitous as expected
– Wireless USB never took off at all
n USB 3.0 coming
– very high speed: 4.8 Gb/s
– new power management
– higher power delivery to devices
– change in connectors
32
Thank you
Colin Walls
colin_walls@mentor.com
http://blogs.mentor.com/colinwalls