Usb Otg Ver 1.0 PDF

You might also like

You are on page 1of 18

USB OTG and

Embedded Host

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 1


Topics
O Nomenclature
O USB Universe
O USB OTG versus Embedded Host
O USB Embedded Host
O USB On-The-Go
O USB OTG Device – Must have features
O OTG Architecture
O Application Examples
O Microchip USB OTG Features
O Microchip USB OTG Product Portfolio
O Meeting the needs of Product Makers
O Summary

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 2


Nomenclature

O Embedded Host – also Mini Host, a Type A host class product


with fixed capabilities to save cost and complexity

O Peripheral – Device, a Type B class product that requires a host or


embedded host or OTG

O OTG – A Type AB product, a combination of Embedded host and


Peripheral

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 3


USB Universe
Traditional Host / Peripheral

Peripheral
Host

OTG

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 4


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. Slide 5
Embedded Host
O Limited resources

O 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. Slide 6


USB On-The-Go

O Meeting the requirements of connectivity in

standardized method for small form factor

devices

O Supplement to USB 2.0 specification

O Gives dual role (Host and Peripheral)

capability to the devices and to switch

between the two

O Low power requirements to facilitate USB

on small foot print devices

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 7


OTG – Must have features
O A limited Host capability

O Full-speed operation as a peripheral (high-speed optional)

O Full-speed support as a host (low-speed and high-speed optional)

O Targeted Peripheral List (Device classes)

O Session Request Protocol

O Host Negotiation Protocol

O One, and only one connection: a Micro-AB receptacle

O Bus current of minimum 8mA

O Means for communicating messages to the user

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 8


USB Device Classes
Floppy
Drive
Data Glove Thumb
Ethernet
Drive
Adapter
Mouse

External
Hard Drive
PICkit™ 2
Starter Kit Modem
Mass Storage Device
Joystick Class (MSD)

Communication Device
Class (CDC) ICD2
Keyboard

Custom Class
(Vendor Class)
Human Interface Device Class
(HID)
Many more USB classes….

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 9


Session Request Protocol (SRP)

Peripheral
requests host to OTG
start a session
Host Device
Controls

Host activates
power bus for OTG
peripheral, session Host Device
Controls
commences
Power Bus

When session
ends, OTG
bus is turned off,
Host Device
Controls
conserving power

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 10


Host Negotiation Protocol (HNP)
Peripheral

Starts as Host,
Interrogates OTG
peripheral
Host Device
Controls

If peripheral is
device, then it OTG
remains host
Host Device
Controls

If peripheral is
OTG
host, then it Device Host
becomes device Controls

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 11


Mini-AB Connectors
O An OTG device contains a single Mini-AB
receptacle that functions as either a host or a
peripheral e.g. PDA
Mini-AB Receptacle
̶ An OTG device acts as host when Mini-A plug is
inserted

̶ An OTG device acts as device when Mini-B plug is


inserted

O Only Mini-B receptacle is used for devices that Mini-B Receptacle

operate as peripheral only e.g. cameras

O Only Mini-A receptacle is used for devices that


Mini-A Receptacle
operate as embedded host only e.g. set top box

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 12


OTG Architecture
Host Peripheral
HID MSC CDC Generic

USB Protocol Layer


USB Protocol Driver
Peripheral Controller Device
Transceiver
Host Controller Device (HCD) (PCD)
Driver

Host Regs. Peripheral Regs.


Controller Controller

OTG Dual Role Device Regs.

On-The-Go Regs.
Transceiver

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 13


Application Examples
Host Peripheral Application

Mobile Phone Mobile Phone Exchange contact information


Still Image Email pictures, upload pictures to web
Camera Upload/download/broadcast music
MP3 Player Uplaod/download files
Mass Storage Scan business cards
Scanner
Still Image Camera Still Image Exchange pictures
Camera Email pictures, upload pictures to web
Mobile Phone Print pictures
Printer Store pictures
Mass Storage
Printer Still Image Print pictures
Camera Print scanned image
Scanner Print files stored on device
Mass Storage
MP3 Player MP3 Player Exchange songs
Mass Storage Upload/download songs

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 14


PIC24FJ256GB110 Family – USB OTG
USB On-the-Go
CTMU
ADC, 10-bit, 16 ch.
64 - 256KB 16 KB
Flash RAM Analog Comp. - 3
Watchdog

Memory Bus GP I/O

Peripheral Pin Select


16-bit Timers - 5
Interrupt

Peripheral Bus
16 MIPS 16-bit Core Control Input Capture - 9

Register File Out Comp./PWM - 9


16-bit ALU
16 x 16
UART - 4
17 x 17 MPY Address
Generation SPITM - 3

JTAG & Emu. I2CTM - 3


Barrel Shifter
Interface
RTCC
PMP
CRC
© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 15
PIC24FJ256GB1 General Purpose
Family USB On-the-Go, 256KB Flash
Features USB OTG (device, mini-host, host)
O Performance 16 MIPS @ 32 MHz O Internal Boost Regulator requires minimal
external components
O Program Memory
O Separate 3.3V regulator
• Self programming Flash supports O Transparent RAM buffer interface
EEPROM emulation
• 256KB,192 KB, 128 KB, 64 KB
Peripherals
• 10,000 erase write cycles O 4 x UART w/LIN and IrDA® interfaces
O 16 KB RAM O 3 x I2C™
O 100, 80, 64-pin TQFP Packages O 3 x SPI™
O Internal Oscillator O 16 ch. x 10-bit A/D (500 ksps)
O Low Power Modes O 5 x 16-bit general purpose timers
O JTAG Boundary Scan & Flash Memory O 9 x IC, 9 x OC/PWM
Programming • Each IC and OC/PWM includes a dedicated
16-bit scaling timer
O 3.3 V operation • Total of individual 21 timers
O Low power 2.6uA at 2V O Peripheral Pin Select
O Sleep power <100nA • Select peripherals, map to pins
O 3 x comparators
Availability O CTMU – Charge/Time Measurement Unit
O Samples - NOW O Hardware RTCC and Hardware CRC
O Production – NOW O Parallel Master Port

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 16


Microchip meeting the needs of
product makers
O Selection of USB products from 8 to 32bit MCU portfolio
̶ Peripheral
̶ Embedded Host
̶ OTG

O Feature rich products


̶ USB v2.0 On-The-Go (OTG) compliant
̶ Capacitive touch sensing for touch screens and capacitive
switches
̶ Lowest power, highest memory

O Cost effective, BOM saving, board space saving


̶ Meeting user demand of friendliness, upgradeability and
expandability
̶ Meeting multiple applications requirements with low BOM cost

O Support
̶ Seamless 8-/16-/32-bit toolchain
̶ Free software to get up and running
© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 17
Summary
O First to have USB OTG implementation on 16bit MCU
O The only 16bit MCU integrated with OTG and CTMU
O Microchip solution caters the markets of OTG and
embedded host segments
O Complete software support, via free USB class drivers
(Host / Peripheral) for USB applications
O Large memory and rich peripheral set
O PIC’s maintains pin, peripheral and software
compatibility with Microchip’s PIC32 USB
microcontroller family

© 2008 Microchip Technology Incorporated. All Rights Reserved. Slide 18

You might also like