General USB Ver 1.1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

USB Overview

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 1
Topics
O Need for USB
O Benefits of USB
O Speed comparisons
O USB Evolution
O USB Host / Peripheral / OTG
O Embedded Host
O USB Hub
O Device Classes
O Data Transfer Mechanisms
O Application examples

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 2
Need for USB
O Offering ease of use (Plug and Play)
O Expandability (Port expansion)
O Speed for the end user
O Accommodate different applications simultaneously
O Low cost
O Self Powered

USB started as a standard for connecting peripherals (such as mice, keyboards)


to PCs. Now it’s the standard for connecting personal devices (iPod’s, printers) to
PC and personal devices (PDA, scanner) to personal devices (printer, iPod’s)

Microchip offers USB products – Peripherals, Embedded Hosts


and OTG in PIC18, PIC24 and PIC32 portfolio

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 3
Benefits of USB
O One interface for many applications
O Auto configuration
O No external supply required
O Hot pluggable
O No user settings

Microchip provides with a scalable choice of integrated USB


solutions across 8-, 16- and 32-bit PIC microcontrollers
Offering packages from 18 pin to 100 pins
Easy-to-use and upgradeable products for embedded designs
Ample code and data space for complex USB applications

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 4
Buses and Speed
Comparison

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 5
USB Evolution
Spec Data Rate and Applications Notes
Performance
USB 1.1 Low-speed 1.5Mbps Keyboard, mouse, joystick Low cost but limited
USB 2.0 Low-speed performance; type and
number of endpoints
limited

USB 1.1 Full-speed 12Mbps Printers, audio derives, Moderate performance;


USB 2.0 Full-speed webcams guaranteed latency;
guaranteed bandwidth

USB 2.0 High-speed 480Mbps Video, storage, imaging & Vast bandwidth
more… improvements. Adoption
in high-end consumer
segment

USB 2.0 On-The-Go 480Mbps or12Mbps PDAs, MP3 players, cameras Peripheral device can
(OTG) communicate directly
without Host PC
Backward compatible

USB Wireless 480Mbps @ 3 meters Recently specified. Still


(WUSB) 110Mbps @ 10 meters going through adoption
process

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 6
USB Host
O Manages and controls the bus
O Initiates all data packet activity on the bus
O Manages data flow
O Error checking
O Enumerates inserted USB devices and matches device to a
particular class driver
̶ Detects peripheral insertion / extraction
O Provide Power
O System typically consists of complex software applications with
an operating system and microprocessor
̶ Class driver needed for each device or class of devices

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 7
USB Peripheral

O Peripherals only respond to Hosts and have no capability to


initiate data transfers Focus on power consumption
O Detects communication from Host
O Exchange data with host
Respond to Standard Requests from Host
O Checking for error data from Host
O Power Management

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 8
USB OTG

O Host and Peripheral both in one


O Focus on power consumption
O Transceiver driver to support new USB On-The-Go protocols
̶ Host Negotiation Protocol

̶ Session Request Protocol

O Full speed peripheral/host capability


O One and only one Mini-AB receptacle, which can accept either a
Mini-A plug or a Mini-B plug
O The ability to provide at least 8 mA of bus current when
functioning as the A-device

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 9
Embedded Host

O Can support Limited resources


O Supports a Target Peripheral List
O Must be capable of supplying at least 8mA on VBUS
O High, Full, Low-speed may be supported
O Of the 4 USB transfer modes – Mandatory to support Control and
could support Bulk, Interrupt and Isochronous based on target
peripheral list
O Example – Set Top box

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 10
On-The-Go Versus Embedded Host

OTG Embedded Host

O Limited host capabilities


O Limited host capabilities

O Posses single role – host


O Possess dual role - host or peripheral

capability to switch between the two O Devices have only Mini-A receptacle

O Devices have Mini-AB receptacle O Does not require Host Negotiation

Protocol (HNP) and optionally


O OTG devices must have Host
support Session Request Protocol
Negotiation Protocol (HNP) and
(SRP)
Session Request Protocol (SRP)
O Do not operate either as hub or full

host as normal host does


© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 11
USB Hub

Speaker Hub
¾ Supports maximum of 5 Hubs chaining Keyboard
¾ Hubs to offer power to all the connected devices Logic
Analyzer
Hub
¾ USB 2.0 hub must support all three speeds
¾ Cascade upto 127peripherals including the root hub
Hub

Hub

Hub

Data Logger
Hub
Up to 126 peripherals...
© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 12
Devices Classes
O Following classes have approved class specifications
Audio Chip/Smart Card
Interface
Communication Class Content Security
(CDC)
Device Firmware Upgrade Human Interface (HID)
IrDA Bridge Mass Storage (MSD)
Printer Still Image Capture
Test and Measurement Video

Microchip offers free source code for USB software stacks and class
drivers
Class drivers supported by Microchip are – CDC, HID, MSD and custom

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 13
Data Transfer Mechanisms

Control Control Control


+ + +
Interrupt Bulk Isochronous

Guaranteed Guaranteed Guaranteed


Latency Latency Latency
Guaranteed Guaranteed Guaranteed
Data Integrity Data Integrity Data Integrity
© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 14
USB Connectors
USB Type A receptacle Laptops
PCs

Printers
USB Type B receptacle Scanners

Set Top Box


USB Type A Mini receptacle

USB Type AB Mini receptacle PDA

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 15
Application Examples
Host
Host Thumb drive
Traditional interface
PCc

Peripheral

USB OTG

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 16
Thank You

© 2008 Microchip Technology Incorporated. All Rights Reserved. USB Solutions from Microchip Slide 17

You might also like