Universal Serial Bus (US B) : EE 446 Embedded Architecture
Universal Serial Bus (US B) : EE 446 Embedded Architecture
B)
EE 446 Embedded Architecture
Comparison
Interface
Format
Number of
Devices
(maximum)
Length
(maximum,
feet)
Speed
(maximum,
bits/sec.)
Typical Use
USB
asynchronous
serial
127
16 (or up to
96 ft. with 5
hubs)
1.5M, 12M,
480M
Mouse,
keyboard, disk
drive, modem,
audio
RS-232
(EIA/TIA-232)
asynchronous
serial
50-100
20k (115k
with some
hardware)
Modem, mouse,
instrumentation
Parallel
Printer
Port
parallel
2 (8 with
daisy-chain
support)
1030
8M
Printers,
scanners, disk
drives
IEEE-1394
(FireWire)
serial
64
15
400M
(increasing
to
3.2G with
IEEE-1394b
Video, mass
storage
7 Level
Ease of use was a major design goal for USB, and the result is an interface thats a pleasure to
use for many reasons:
USB is versatile enough to be usable with many kinds of peripherals. Instead of having a diffe
rent connector type and supporting hardware for each peripheral, one interface serves many.
Automatic configuration.
When a user connects a USB peripheral to a computer, its OS automatically detects the perip
heral and loads the appropriate software driver.
Hot pluggable
We can connect and disconnect a peripheral whenever you want, whether or not the system
and peripheral are powered, without damaging the PC or peripheral. The operating system d
etects when a device is attached and readies it for use.
A peripheral that requires up to 500 milliamperes can draw all of its power from the bus inste
ad of having its own supply..
USB
USB
Three
generations of USB
USB
1.0
USB 2.0
USB 3.0 and WUSB
USB 2.0
A big step in USBs evolution was version 2.0
How to use it
USB 2.0 is backwards compatible with USB 1.1.
Version 2.0 peripherals can use the same connectors and cables as 1.x
peripherals.
To use the new, higher speed, peripherals must connect to 2.0-compli
ant hosts and hubs. 2.0 hosts and hubs can also communicate with 1.
x peripherals.
A 2.0-compliant hub with a slower peripheral attached will translate a
s needed between the peripherals speed and high speed.
This increases the hubs complexity but makes good use of the bus ti
me without requiring different hubs for different speeds.
USB 3.0
"SuperSpeed" bus provides a fourth transfer mode
at 5.0 Gbit/s
Communication is full-duplex during SuperSpeed;
(in the modes supported previously, by 1.x and 2.
0, communication is half-duplex, with direction co
ntrolled by the host.)
proposed IEEE-1394.b.
Physical Appearances
Communication Flow
res ( D+ and D_ )
Data encoding and decoding is done using NRZI (
Non Return to Zero Inverted )
a 0 bit is transmitted by toggling the data lines
a 1 bit is transmitted by leaving the data lines as-is.
SIE
SIE Serial Interface Engine
HC
HC Host Controller
SB Driver
Responsible for
=>Bandwidth allocation
=>bus power management
Two of above are in order to enable devices to acc
ess the bus
s
Each endpoint has an unique Endpoint Number a
nd is unidirectional(except endpoint zero and has t
wo type--In/Out)
Default pipe is associated with endpoint zero
Pipes
The logic communication between the client
Pipes (continued)
An endpoint is the source or destination of the
USB Packet
Types
ntegrity is more critical than data latency, and they also include error checking and retries if er
rors are detected. Printers, scanners, and storage devices are examples of devices that depend
primarily on bulk transfers.
Isochronous transfers are used for moving real-time data. In these transfers, the streaming o
f the data is more critical than the accuracy of the data. There is no error-checking or retries as
sociated with isochronous transfers. Web-cams, speakers and microphones are examples of d
evices that utilize isochronous transfers.
st);
A keyboard (peripheral) connected to a mobile phon
e (host)
ow it serves as a host)
the peripheral either needs to have a cable ending in