Title: USB Universal Serial Bus
1USB
??? ??? ????????? ??????
43650035 ?????? ????? ????????
43650167 ?????? ????????? ????????? 43650332
???? 204521 Digital System Architecture
2?????????? USB (Universal Serial Bus) (1)
- Universal Serial Bus ?????????????????? 1995
??????????????????? Compaq, Hewlett Packard,
Intel, Lucent, Microsoft, NEC ??? Philip - ??????????????????????????????????????????????????
???????????????? PC ??????????????????????
??????????????????????????????????????????????????
????????????????????????????????????? - ?????????? ????????????
- ??????????????? 100 ????????????????? serial port
- ???????????????????????????????? ??? ????
printer scanner
3System Resources Used by Legacy Pheripheral
Devices
4????????????????????????? USB
- ?????????????????
- ?????????????????? conflict ??? resource
- ??????????????????????????????????
- Plug and play support
- hot attachment
5Table 2-1 Application,Relative Performance
Required and Desired Attributes
6Various Solutions with Relative Performance and
Complexity
7USB System Implement in a PCI-based Platform
8The primary hardware and software in USB
- USB Hardware
- USB Host Controller/Root Hub
- USB Hubs
- USB Devices
- -USB Software
- USB Device Drivers
- USB Driver
- Host Controller Driver
9Communication Flow in a USB System
10(No Transcript)
11USB Host Controller/Root Hub
Read
12(No Transcript)
13The root hub
- Provide the connection points for USB devices and
this operations - Control power to its USB ports
- Enables and disable ports
- recognizes devices attached to each ports
- sets and report status events
- Root hub consists of
- A hub controller
- repeater
14Block Diagram of Major Root hub Functions
15USB Hub Types
16Primary hub Functions
17Hub Repeater
18Communication Flow
- USB Client
- USB Driver
- Host Controller Driver
- Host Controller
- Hub
- Device
19USB Driver
- Provides interface and services for client
software drivers, allocate bus bandwidth, and
manages configuration process
20Host Controller Driver
- Controls operation of the host controller,
schedules transactions and monitors completion
status of transactions
21Communication Flow
22Transfers
- Transfer type
- Isochronous Transfers
- Bulk Transfers
- Interrupt Transfers
- Control Transfer
23Frames
- USB communication is based on transferring data
at regular (1ms) intervals call Frames - Each USB device requires a portion of the USB
bandwidth be allocated during these 1ms frames
24Frame Example
25Device Framework
- USB Bus Interface Layer represent the actual
transfer of data across the USB cable between the
host system and USB device - USB Device Layer represent the portion of USB
that comprehends the actual USB communication
mechanism and the nature of transfers required by
USB functional device. - Function Layer represents the relationship
between client software and a given devices
functional interface
26Device Framework
27?????????? USB (Universal Serial Bus) (2)
- USB 1.1 ?????????????????????
- USB 2.0 ??????????????????????????????????????????
?????
28??????????????? USB ???? 1.1
- ???????? system software
- ??????????????????????? IO system ??????
????????????????? ????????????????????????????????
????????????????????? - ??? ????????? USB ????????????????????????????????
?????? USB ?????????????????????? ??????????
load ??? device driver ???????????????
29??????????????? USB ???? 1.1
- ???????? hub
- ???????????????????????? ??????? USB
- hub ????????????????????? ???????????????????????
????????????????????????????????????????????? 0.5
W ?????????? USB 1??? ??????????????????Host
PC software , hub ??????????????????????? ??????
2.5 W - ???????? hub ????????????????? Bi-Directional
Repeater ?????????? USB signal
????????????????????? ???? ??? host ????????? ???
?????????? ?? host - hub ?????? ????????? ?????? ??? full speed
??????????? 12 Mbs ??? lowspeed ??????? 1.5 Mbs
30??????????????? USB ???? 1.1
- ??????????????? ??? USB
- ???????????????????? host PC ???????????
????????? ???????????? host PC ????????????????
??????????????? ??????????????????? USB Data ,
??????? USB 1.1 ????????????????????????? ?????
12 Mb/s ???? ??? 1.5 Mb/s
31?????????????? USB 2.0
- ???????? system software
- ?????????????????????????? USB 1.1 ?????? system
software ?????????????????????????????????????
USB 2.0 ?????????????????????????????????????????
???????????? ??????? USB 2.0 ?????????????????????
??????????????????
32?????????????? USB 2.0
- ???????? USB 2.0 hub
- ????????? high speed ?????????????????????????????
??? ??????? USB 2.0 ??? ???????? USB 1.0
?????????????? ??????????????? hub
???????????????????? ??? ?????? buffer
??????????????????? ??????????????
????????????????????? high speed - ????????????? ??????????????? ??? ??????? USB
2.0 , hub ??? USB 2.0 ????????????????????? high
speed ????????????? USB 2.0 ???????????????????
? ??????? USB 1.1 , hub USB 2.0 ??????????????
?????????????????? ??????????? ???????????????????
???????????????????????????? ??????????????? hub
?????????????????????????????? host ??????? high
speed ???????????? low speed??????????????????????
???????????????? ??????? USB 1.1
33?????????????? USB 2.0
- ??????????????? ??? USB
- ??????????????????????????????????????????????????
?????? USB 2.0 ???? ?????????????????????????????
?????? ?????? ????????? ????? , ????????? ,
??????? ?????????????????????????????? ??? USB
2.0 ??????? USB 1.1 ?????????????
??????????????????? ???? ?????? ????????????
??????? ?????????????????????????????
34???????????????? USB ??? ?????????????
35The End.