hl ce m, lehmann usb_tele esc spring.ppt 1 - 9/8/2015, 10:22 start first foil
TRANSCRIPT
HL CE M, lehmannusb_tele ESC spring.ppt
1 - 04/19/23, 12:48
START first foilSTART first foil
HL CE M, lehmannusb_tele ESC spring.ppt
2 - 04/19/23, 12:48
USB based Microcontroller in USB based Microcontroller in Telecom Peripherals for PC'sTelecom Peripherals for PC's
...the interfacing solution...the interfacing solution
HL CE M, lehmannusb_tele ESC spring.ppt
3 - 04/19/23, 12:48
AgendaAgenda USB basics USB basics
- Why USBWhy USB
- Bus structureBus structure
- Enumeration, speedEnumeration, speed
- Layer modelLayer model
- Physical interfacePhysical interface
- Transfer, transaction, packetTransfer, transaction, packet USB - ISDN Terminal Adapter (TA)USB - ISDN Terminal Adapter (TA)
- Standard TA (PC ISDN card) - USB TAStandard TA (PC ISDN card) - USB TA
- Endpoints usage, ISDN data formatEndpoints usage, ISDN data format
- Hardware implementation, BufferingHardware implementation, Buffering
- B-channel performanceB-channel performance
- Layer model USB TA Layer model USB TA PC ISDN card PC ISDN card
- D-channel signalization through USBD-channel signalization through USB
- D-channel performanceD-channel performance
- Hardware platform, toolsHardware platform, tools
- SAB-C541USAB-C541U
HL CE M, lehmannusb_tele ESC spring.ppt
4 - 04/19/23, 12:48
Siemens / USBSiemens / USBthe interfacing solutionthe interfacing solution
Universal Serial Bus Universal Serial Bus
HL CE M, lehmannusb_tele ESC spring.ppt
5 - 04/19/23, 12:48
Why USB ?Why USB ?
Universal Serial Bus Universal Serial Bus
Ease of UseEase of Use- Plug and Play capabilities for “Outside the Box” peripheralsPlug and Play capabilities for “Outside the Box” peripherals
Youwanna more?!
HL CE M, lehmannusb_tele ESC spring.ppt
6 - 04/19/23, 12:48
USBUSBUSBUSB
Universal Serial Bus Universal Serial Bus
USB Target ApplicationsUSB Target Applications
PERFORMANCE PERFORMANCE PERFORMANCE PERFORMANCE APPLICATIONSAPPLICATIONSAPPLICATIONSAPPLICATIONS ATTRIBUTESATTRIBUTESATTRIBUTESATTRIBUTES
HIGH SPEEDHIGH SPEED50 - 1000 Mb/s50 - 1000 Mb/sHIGH SPEEDHIGH SPEED50 - 1000 Mb/s50 - 1000 Mb/s
VideoVideoDiskDiskLANLAN
VideoVideoDiskDiskLANLAN
High BandwidthHigh BandwidthVery Low LatencyVery Low LatencyEase of UseEase of Use
High BandwidthHigh BandwidthVery Low LatencyVery Low LatencyEase of UseEase of Use
Very Low costVery Low costEase of UseEase of UseDynamic Attach-DetachDynamic Attach-DetachMultiple Peripherals Multiple Peripherals
Very Low costVery Low costEase of UseEase of UseDynamic Attach-DetachDynamic Attach-DetachMultiple Peripherals Multiple Peripherals
Low costLow costGuaranteed Latency Guaranteed Latency Higher BandwidthHigher BandwidthEase of UseEase of Use
Low costLow costGuaranteed Latency Guaranteed Latency Higher BandwidthHigher BandwidthEase of UseEase of Use
LOW SPEEDLOW SPEED10 - 100 Kb/s10 - 100 Kb/s
LOW SPEEDLOW SPEED10 - 100 Kb/s10 - 100 Kb/s
Interactive DevicesInteractive Devices(Game, VR)(Game, VR)
Interactive DevicesInteractive Devices(Game, VR)(Game, VR)
MEDIUM SPEEDMEDIUM SPEED500Kb/s - 10Mb/s500Kb/s - 10Mb/s
MEDIUM SPEEDMEDIUM SPEED500Kb/s - 10Mb/s500Kb/s - 10Mb/s
ISDN, POTS, PBX, ISDN, POTS, PBX, Audio, Imaging,Audio, Imaging,Bulk DevicesBulk Devices
ISDN, POTS, PBX, ISDN, POTS, PBX, Audio, Imaging,Audio, Imaging,Bulk DevicesBulk Devices
1394+1394+""firewire"firewire"1394+1394+
""firewire"firewire"
USB focus on
USB focus on LOW C
OST
LOW COST, , H
IGH VOLUME
HIGH VOLUME applic
ations!
applicatio
ns!
USB focus on
USB focus on LOW C
OST
LOW COST, , H
IGH VOLUME
HIGH VOLUME applic
ations!
applicatio
ns!
HL CE M, lehmannusb_tele ESC spring.ppt
7 - 04/19/23, 12:48
USB in 1996:USB in 1996:Initially introduced as an Initially introduced as an additional connector for additional connector for new applications.new applications.
USBUSB
PC Connectivity VisionPC Connectivity Vision
Universal Serial Bus Universal Serial Bus
KeyboardKeyboard
MouseMouse
SerialSerialPortPort
ParallelParallelPortPort
SCSISCSIPortPort
Sound/GameSound/GamePortsPorts
GraphicsGraphicsPortPort
LANLAN ModemModem
GraphicsGraphicsPortPort
LANLAN
USB Future:USB Future:The PC evolves into a The PC evolves into a simpler, easier to use simpler, easier to use appliance.appliance.
USBUSB USBUSB USBUSB
Telephony, Modem, Keyboard, Mouse,Game ports, Telephony, Modem, Keyboard, Mouse,Game ports, Serial ports Device,Digital Audio, Printer, ScannerSerial ports Device,Digital Audio, Printer, Scanner
HL CE M, lehmannusb_tele ESC spring.ppt
8 - 04/19/23, 12:48
Hardware Overview...Hardware Overview...
Universal Serial Bus Universal Serial Bus
USB
TopologyTopology- Tiered Star (Distributes Connectivity Points) Tiered Star (Distributes Connectivity Points) - 127 logical connections (upto 5 meters per segment)127 logical connections (upto 5 meters per segment)- Upto 6 tiersUpto 6 tiers- ......
Monitor
SpeakerPen Mouse
Kbd
Mic Phone
PC
HUBHUB
HOST/HUB
HL CE M, lehmannusb_tele ESC spring.ppt
9 - 04/19/23, 12:48
...Topology......Topology...
Universal Serial Bus Universal Serial Bus
HostHost
- One PC host per systemOne PC host per system
HubHub
- Provides connecting ports, power, terminationsProvides connecting ports, power, terminations
- Self-Powered or Bus PoweredSelf-Powered or Bus Powered
Device, Function and End-pointsDevice, Function and End-points
- Device is a collection of function(s) Device is a collection of function(s)
- Function is a collection of end-pointsFunction is a collection of end-points
- Upto 127 functions and 16 end-points per functionUpto 127 functions and 16 end-points per function
HL CE M, lehmannusb_tele ESC spring.ppt
10 - 04/19/23, 12:48
Host
Root Hub
Device
DeviceDevice
Device
HUB
Device
HUB
Hot Plug and Play featureHot Plug and Play feature
- Device attachment on Hub portDevice attachment on Hub port
- Device is detectedDevice is detected
- Downstream port is enabledDownstream port is enabled
- Configuration of Device by Configuration of Device by HostHost
Device
USB Configuration ProcessUSB Configuration ProcessEnumerationEnumeration Host Software is responsible for Host Software is responsible for
Device configurationDevice configuration Host
Root Hub
Device
DeviceDevice
Device Device
HUB
Device
HUB
Universal Serial Bus, details Universal Serial Bus, details
Process of Configuration is Process of Configuration is accomplished via Control accomplished via Control TransfersTransfers
HL CE M, lehmannusb_tele ESC spring.ppt
11 - 04/19/23, 12:48
Universal Serial Bus Universal Serial Bus
Hardware OverviewHardware Overview
- Bus transactionsBus transactions
- Speed:Speed: 12Mbps full-speed12Mbps full-speed1.5Mbps low-speed1.5Mbps low-speed
- Isochronous and Asynchronous Isochronous and Asynchronous
- Media access controlled by hostMedia access controlled by host
- Bus transactionsBus transactions
- Speed:Speed: 12Mbps full-speed12Mbps full-speed1.5Mbps low-speed1.5Mbps low-speed
- Isochronous and Asynchronous Isochronous and Asynchronous
- Media access controlled by hostMedia access controlled by host
- Configuration, Hot Plug-And-PlayConfiguration, Hot Plug-And-Play
- Dynamic insertion-removalDynamic insertion-removal
- Autoconfiguration on changeAutoconfiguration on change
- Configuration, Hot Plug-And-PlayConfiguration, Hot Plug-And-Play
- Dynamic insertion-removalDynamic insertion-removal
- Autoconfiguration on changeAutoconfiguration on change
- Physical LayerPhysical Layer
- 2-wire differential signaling, NRZI coded with bit stuffing2-wire differential signaling, NRZI coded with bit stuffing
- Supply Sourcing +5VSupply Sourcing +5V
- Signaling at CMOS 3.3VSignaling at CMOS 3.3V
- 4 pin connector, 4 wire cable4 pin connector, 4 wire cable
- Physical LayerPhysical Layer
- 2-wire differential signaling, NRZI coded with bit stuffing2-wire differential signaling, NRZI coded with bit stuffing
- Supply Sourcing +5VSupply Sourcing +5V
- Signaling at CMOS 3.3VSignaling at CMOS 3.3V
- 4 pin connector, 4 wire cable4 pin connector, 4 wire cable
HL CE M, lehmannusb_tele ESC spring.ppt
12 - 04/19/23, 12:48
Device Abstractions...Device Abstractions...
- DeviceDevice
- Common features and interactions of devicesCommon features and interactions of devices
- Typically controlled by system softwareTypically controlled by system software
Universal Serial Bus Universal Serial Bus
- FunctionFunction
- Highest level I/F between device driver and functionHighest level I/F between device driver and function
- End PointEnd Point
- Ultimate data source or sink at the device endUltimate data source or sink at the device end
- Each endpoint is unidirectional and has a Each endpoint is unidirectional and has a transfer type associated with it‘s Peripheral transfer type associated with it‘s Peripheral
HL CE M, lehmannusb_tele ESC spring.ppt
13 - 04/19/23, 12:48
...Device Abstractions...Device Abstractions
DeviceDeviceDriverDriver FunctionFunction
USBUSBSoftwareSoftware
USB DeviceUSB DeviceI/FI/F
HostHostControllerController
USBUSBHardwareHardware
Function AbstractionFunction Abstraction
Device AbstractionDevice Abstraction
Physical ConnectPhysical Connect
Universal Serial Bus Universal Serial Bus
PCPCDevice, like modem, Device, like modem, keyboard mouse, etckeyboard mouse, etc
Endpoint
Endpoint
Endpoint
HL CE M, lehmannusb_tele ESC spring.ppt
14 - 04/19/23, 12:48
USBUSBTransfer typesTransfer types
...basics...basics
ControlControl (e.g.: configuration, messages) (e.g.: configuration, messages)- bursty, host initiated (bus management, configuration)bursty, host initiated (bus management, configuration)- guaranteed bandwith of max. 10%guaranteed bandwith of max. 10%- error-free data delivery guaranteederror-free data delivery guaranteed
InterruptInterrupt (e.g.: mouse, joystick....) (e.g.: mouse, joystick....) - small bursty, low bandwidth requiredsmall bursty, low bandwidth required- error-free data delivery guaranteederror-free data delivery guaranteed- polling is used (by host) to check for "interrupt events”polling is used (by host) to check for "interrupt events”- polling intervall programmable. Frompolling intervall programmable. From 1ms1ms to 255ms (FS)to 255ms (FS)
10ms10ms to 255ms (LS)to 255ms (LS) IsochronousIsochronous (e.g.: audio, telephony.....) (e.g.: audio, telephony.....)
- for data which need to be periodically sent for data which need to be periodically sent - predictable latency on data delivery. predictable latency on data delivery. - no error check, error-free data delivery is no error check, error-free data delivery is notnot guaranteed guaranteed
BulkBulk (e.g.: printer, scanner, still camera.....) (e.g.: printer, scanner, still camera.....) - non periodic, bursty, ideal for large amounts of datanon periodic, bursty, ideal for large amounts of data- error-free data delivery guaranteederror-free data delivery guaranteed
HL CE M, lehmannusb_tele ESC spring.ppt
15 - 04/19/23, 12:48
Frame = 1ms
printerprinter
ControControllControControll
USB Frame ModelUSB Frame Modelexampleexample
Stereo Audio
Telephony
SO
FS
OF
low-speed
IsochronouIsochronoussIsochronouIsochronouss
BulkBulkBulkBulk
InterruptInterruptInterruptInterrupt
...basics...basics
printerprinter
any LS device like keyboard, mouse,
etc.
any LS device like keyboard, mouse,
etc.
BulkBulkBulkBulk
HL CE M, lehmannusb_tele ESC spring.ppt
16 - 04/19/23, 12:48
max. 5mmax. 5m
CABLE connectorCABLE connector'upstream''upstream'
Connectors and CablesConnectors and Cables ConnectorsConnectors
- 4-Position with shielded housing4-Position with shielded housing- Positive RetentionPositive Retention- Blind Mating CapabilitiesBlind Mating Capabilities
Universal Serial Bus Universal Serial Bus
Power pairPower pair
HOST PC / HUBHOST PC / HUB
CABLE connectorCABLE connector 'downstream''downstream'
HUB / DEVICEHUB / DEVICE
Differential Signal pairDifferential Signal pair
HL CE M, lehmannusb_tele ESC spring.ppt
17 - 04/19/23, 12:48
USB Hub FunctionUSB Hub Function
Port ControlPort Control
- Connection detectConnection detect
- Port Enable/ DisablePort Enable/ Disable
- Reset/ Resume SignalingReset/ Resume Signaling
Data SwitchData Switch
- Signal RegenerationSignal Regeneration
- Robustness/ RecoveryRobustness/ Recovery
Power DistributionPower Distribution
UpstreamConnectivity
HubHubRepeaterRepeater
DownstreamConnectivity
HubHubRepeaterRepeater
DisabledPort
EnabledPorts
Universal Serial Bus Universal Serial Bus
HL CE M, lehmannusb_tele ESC spring.ppt
18 - 04/19/23, 12:48
Power DistributionPower Distribution
Significant capability of USBSignificant capability of USB- Eliminate wall adaptorsEliminate wall adaptors
Hubs may be self-powered or Hubs may be self-powered or bus-powered bus-powered- Two current levels: 100 & 500 mATwo current levels: 100 & 500 mA- Overcurrent protection for safetyOvercurrent protection for safety- Wire gauge options: 20-28 AWGWire gauge options: 20-28 AWG
SuspendSuspend- All devices support suspendAll devices support suspend- Enter suspend state after seeing Enter suspend state after seeing
idle bus for 3 ms idle bus for 3 ms- Suspend current Suspend current 500 500 A from busA from bus
ResumeResume- USB devices can cause “remote wake-up”USB devices can cause “remote wake-up”
e.g. Modem wakes up the systeme.g. Modem wakes up the system
Universal Serial Bus Universal Serial Bus
HL CE M, lehmannusb_tele ESC spring.ppt
19 - 04/19/23, 12:48
Voltage DropVoltage Drop
Voltage drop per wire/connector:Voltage drop per wire/connector: 0.125 V0.125 V Budget for power switch:Budget for power switch: 0.100 V0.100 V
Bus-PoweredBus-PoweredFunctionFunction
Bus-PoweredBus-PoweredHubHub
Host orHost or
Powered HubPowered Hub
4.65V (min) 4.40V (min)
Universal Serial Bus Universal Serial Bus
4.0V (as a resulting low value)
HL CE M, lehmannusb_tele ESC spring.ppt
20 - 04/19/23, 12:48
Data SignalingData Signaling
Bi-directional, half-duplex linkBi-directional, half-duplex link
Embedded clock and dataEmbedded clock and data
Differential signal pairDifferential signal pair
12 Mbit / sec Full Speed (FS) bit rate12 Mbit / sec Full Speed (FS) bit rate
1.5 Mbit / sec Low Speed (LS) bit rate1.5 Mbit / sec Low Speed (LS) bit rate
Universal Serial Bus Universal Serial Bus
HL CE M, lehmannusb_tele ESC spring.ppt
21 - 04/19/23, 12:48
Low SpeedLow Speed
1.5 Mb/s1.5 Mb/s
- Unshielded, untwisted cableUnshielded, untwisted cable
- Saves EMI suppression costsSaves EMI suppression costs
- 1.5% Frequency tolerance1.5% Frequency tolerance
Driver characteristics Driver characteristics
- Rise/ Fall time: Min 75ns, Max 300nsRise/ Fall time: Min 75ns, Max 300ns
- Required on low speed functions andRequired on low speed functions and on the downstream ports of Hubs on the downstream ports of Hubs
Allows very-low-cost devices to be built without Allows very-low-cost devices to be built without compromising data rate for faster devicescompromising data rate for faster devices
- Mice, keyboards, most user interface peripherals don’t Mice, keyboards, most user interface peripherals don’t need fast data rateneed fast data rate
Eliminates need for shielded twisted pair cable (3 meters)Eliminates need for shielded twisted pair cable (3 meters)
Allows use of less-expensive IC process technologyAllows use of less-expensive IC process technology
Universal Serial Bus Universal Serial Bus
HL CE M, lehmannusb_tele ESC spring.ppt
22 - 04/19/23, 12:48
USB Connections and TerminationsUSB Connections and Terminations
D-
D+
R1
RR11 = 15K = 15K±5%±5%
RR22 = 1.5K = 1.5K±5%±5%
F.S./L.S. USBF.S./L.S. USBTransceiverTransceiver
F.S./L.S. USBF.S./L.S. USBTransceiverTransceiver
(45Outputs)
Host or Hub Port
ZZOO = 90 = 90±15%±15%
5 Meters Max. 5 Meters Max.
F.S. USBF.S. USBTransceiverTransceiverF.S. USBF.S. USB
TransceiverTransceiver(45Outputs)
Hub Port 0or
Full Speed Function
R1
R2
D-
D+
R1
RR11 = 15K = 15K±5%±5%
RR22 = 1.5K = 1.5K±5%±5%
F.S./L.S. USBF.S./L.S. USBTransceiverTransceiver
F.S./L.S. USBF.S./L.S. USBTransceiverTransceiver
(45Outputs)
Host or Hub Port
3 Meters Max. 3 Meters Max.
L.S. USBL.S. USBTransceiverTransceiverL.S. USBL.S. USB
TransceiverTransceiver(45Outputs)
Low Speed FunctionR1
R2
D+
D-
D+
D-
TwistedTwisted Pair Shielded Pair Shielded
Universal Serial Bus Universal Serial Bus
VCC
VCC
GND
GND
GND
GND
UnUntwisted, twisted, UnUnshieldedshielded
HL CE M, lehmannusb_tele ESC spring.ppt
23 - 04/19/23, 12:48
Transfer - Transaction - Packet (1)Transfer - Transaction - Packet (1)
Host Software initiates Host Software initiates TransferTransfer from or to a target from or to a target USB Device USB Device
Host software splits up one Host software splits up one TransferTransfer into one or more into one or more TransactionsTransactions
TransactionsTransactions are set up based are set up based on the Device's characteristics on the Device's characteristics (Packet Size, Transfer Type) (Packet Size, Transfer Type)
Transaction n-1 Transaction n-2 Transaction n-3
Transfer n
Transaction n-1
Universal Serial Bus, details Universal Serial Bus, details
HL CE M, lehmannusb_tele ESC spring.ppt
24 - 04/19/23, 12:48
Transfer - Transaction - Packet (2)Transfer - Transaction - Packet (2)
Host Software schedules and Host Software schedules and executes executes TransactionsTransactions during during 1ms Frames1ms Frames
Each Frame consists of Each Frame consists of several Transactions from several Transactions from different Transfersdifferent Transfers
Transaction n-1 Transaction n-2 Transaction n-3
Transfer n
Transaction n-1
1 ms Frame
Transaction n-1
Universal Serial Bus, details Universal Serial Bus, details
HL CE M, lehmannusb_tele ESC spring.ppt
25 - 04/19/23, 12:48
Transfer - Transaction - Packet (3)Transfer - Transaction - Packet (3)
Each Transaction consists of a series of packets
Token Packet defines the Type of Transaction
Data Packet carries the payload to or from a Device
Handshake Packet provides feedback about correct data transfer to sender
Transaction n-1 Transaction n-2 Transaction n-3
Transfer n
Transaction n-1
Token Packet Data PacketHandshake
Packet
1ms Frame
Transaction n-1
Universal Serial Bus, details Universal Serial Bus, details
HL CE M, lehmannusb_tele ESC spring.ppt
26 - 04/19/23, 12:48
Packet FormatsPacket Formats
Sync. Packet IDDeviceAddress
ENDPNr
CRC EOP
8 bits 8 bits 7 bits 4 bits 5 bits 2 bits
Sync. Packet ID Data Field CRCCRC EOP
8 bits 8 bits 16 bits16 bits 2 bits0-1023 bytes
Sync. Packet ID EOP
8 bits 8 bits 2 bits
Token PacketToken Packet
Data PacketData Packet
Handshake/Low Speed Preamble
Sync. Packet ID Frame Number CRC EOP
8 bits 8 bits 11 bits 5 bits 2 bits
SOF Token PacketSOF Token Packet
Universal Serial Bus, details Universal Serial Bus, details
HL CE M, lehmannusb_tele ESC spring.ppt
27 - 04/19/23, 12:48
IN Transaction without errorsIN Transaction without errors
Token PacketToken Packet defines the direction of the succeding Data Packet defines the direction of the succeding Data Packet (here: IN = Data Packet from Device to Host)(here: IN = Data Packet from Device to Host)
Data PacketData Packet carries the payloadcarries the payload
Handshake PacketHandshake Packet reports error free reception of Data Packet reports error free reception of Data Packet
IN Packet from HostData Packet from
USB Device to HostACK Packet from Host
ONE TRANSACTION
Universal Serial Bus, details Universal Serial Bus, details
Sync EOP SyncPIDData
EOP SyncPIDACK
EOPPID
IN TokenData Packet (Payload)
HL CE M, lehmannusb_tele ESC spring.ppt
28 - 04/19/23, 12:48
Low Speed - Full Speed Transaction Low Speed - Full Speed Transaction Protocol overhead for FS and Protocol overhead for FS and
LS Transfers is 13 bytesLS Transfers is 13 bytes
Payload for FS and LS is 8 bytesPayload for FS and LS is 8 bytes FS Transfer : FS Transfer :
13 + 8 = 21 full speed bytes 13 + 8 = 21 full speed bytes timestimes
LS Transfer : LS Transfer : 13 * 8 + 8 * 8 = 168 full speed 13 * 8 + 8 * 8 = 168 full speed byte times (excluding byte times (excluding Preamble)Preamble)
~9,5% of bandwidth wasted~9,5% of bandwidth wasted
Token Data Packet (8 bytes)Hand-shake
one full speed transaction
Preamble
fullspeed
lowspeed
low speed
Token
fullspeed
lowspeed
Preamble Data Packet (8 bytes)Hand-shake
Universal Serial Bus, details Universal Serial Bus, details
HL CE M, lehmannusb_tele ESC spring.ppt
29 - 04/19/23, 12:48
END last foilEND last foil