USB : Universal Serial Bus

Slides:



Advertisements
Similar presentations
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
Advertisements

Protocol Layer Bottom-up view of the USB protocol Bottom-up view of the USB protocol –Byte/Bit Ordering –SYNC Field –Packet Field Formats PID Field PID.
Universal Serial Bus Grant Heileman. The History of USB In 1994 a collaborative effort to design a standard for peripheral devices was made between Compaq,
ITEC 352 Lecture 33 USB (2). Review Intro to USB –History –Rationale –Competitors –Serial versus parallel –Topology.
USB: Data Flow Sukesh Shenoy. USB implementation areas.
I/O Channels I/O devices getting more sophisticated e.g. 3D graphics cards CPU instructs I/O controller to do transfer I/O controller does entire transfer.
1 USB 2.0 Specification  General Description  From where we could begin the work  What would be valid to do?  Main doubts  What is OTG (On the Go)
1 USB 2.0 Specification  General Description  What is OTG (On the Go)  From where we could begin the work  What would be valid to do?
USB – An Overview Group 3 Kaushik Nandha Bikram What is the Universal Serial bus (USB)? Is a cable bus that supports data exchange between a host computer.
Review on Networking Technologies Linda Wu (CMPT )
Anush Rengarajan Feng Zheng Thomas Madaelil
Dr A Sahu Dept of Comp Sc & Engg. IIT Guwahati. USB Introduction USB Architecture USB Framming USB Drivers URB (USB request Block)
USB 2.0 INTRODUCTION NTUT CSIE 學 生:許家豪 指導教授:柯開維教授.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 15 PC Standard Bus Interfaces WK.
Introduction to USB. 2 Agenda Introduction to USB LPC23xx Block diagram MCB2300 demo.
EE 446 Embedded Architecture. Universal Serial Bus A representative peripheral interface Universal Serial Bus (USB) provides a serial bus standard for.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
USB: UNIVERSAL SERIAL BUS Joe Kaewbaidhoon Alex Motalleb Vishal Joshi Prepared for EECS 373 University of Michigan, Ann Arbor 1.
Choosing (and Implementing) the Correct USB Connectivity for Your Embedded System Steve Wetterling, MSEE = Pat Barrett,
Computer communication. Introduction Mechanisms applied in communicating between a computer and another computer or with other devices. Mainly serial.
18 - Winter 2003 EE EE 766 Computer Interfacing and Protocols 1 USB (Universal Serial Bus) Need for “Plug and Play” capability for PC peripherals outside.
By Clint Johnston. 1. What is USB? Most common type of USB connection.
Serial Interfaces. Bit serial bus New generation of busses Uses bit-serial, differential drive technology Uses on-line device drivers (Hot-plug technology)
USB Josh Rickmar John Marcoux. Topics Purpose and Goals History Bus Design Power Differential Signaling Connectors Changes in USB 3.0.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 41 – Input/Output Ports.
Universal Serial Bus Evann Seary Mike Kezele. Content Overview History of USB Overview Future of USB USB 3.0 WUSB.
Peripheral Buses COMP Jamie Curtis. PC Buses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
May 8, The EASY Way to Create I/O Devices John Hyde Intel Corporation intel.com.
October 10, USB 2.0 Hub Testing Dan Froelich Intel.
Embedded Systems Architecture Class Project USB 2.0 Function Controller December 12, 2008 Brandon Wolfe, Ben Marrou, Daniel Chan.
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Peripheral Busses COMP Jamie Curtis. PC Busses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
Introduction to USB Development. USB Development Introduction Technical Overview USB in Embedded Systems Recent Developments Extensions to USB USB as.
Introduction to USB © 2010 Renesas Electronics America Inc. All rights reserved.
USB Link Layer Protocol
HL CE M, lehmann usb_tele ESC spring.ppt 1 - 9/8/2015, 10:22 START first foil.
ECE 371 – UNIT 20 Universal Serial Bus (USB). References 1. Universal Serial Bus Specification, Revision 2.0. This specification is available on the World.
ITEC 352 Lecture 32 USB. USB (1) Review Exam Intro/review of the bus system.
Microprocessor-based Systems
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
BR 6/001 Universal Serial Bus Universal Serial Bus is a new synchronous serial protocol for low to medium speed data transmission Full speed signaling.
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
February 10 th 2010 Dehmani Feth-Allah M2 ISTRe Oral Presentation Universal Serial Bus.
May 16, USB 2.0 Technical Overview Brad Hosler USB Engineering Manager Intel Corporation.
October 10, USB 2.0 Technical Overview Brad Hosler USB Engineering Manager Intel Corporation.
Data Communications (E&T2760): USB and IEEE USB and IEEE 1394.
Computer communication. Introduction Mechanisms applied in communicating between a computer and another computer or with other devices. Mainly serial.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
What is USB? Circuit Design Unit. What is USB? USB stands for ‘Universal Serial Bus’ and is the next step in creating a computer interface that really.
PCs ENVIRONMENT and PERIPHERALS Lecture 1. Software The series of instructions that tells the hardware how to perform tasks Software The series of instructions.
USB Universal Serial Bus. University of Tehran 2.
SIMS-201 Computer Networks.
DIRECT MEMORY ACCESS and Computer Buses
Visit for more Learning Resources
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Computer Maintenance FireWire Ports
USB PHYISICAL LAYER PROTOCOL ENGINE LAYER APPLICATION LAYER
Direct Attached Storage and Introduction to SCSI
USB Universal Serial Bus
Wireless Universal Serial Bus
Input/Output Organization contd:
Universal Serial Bus Specification 1.0
Direct Attached Storage and Introduction to SCSI
USB- Universal Serial Bus
Embedding USB technology Limitations, challenges and compliance
USB-Microcontroller C540U Family
Overview of Computer Architecture and Organization
Greg Bell Business Development Mgr Industrial & Security Markets
SIMS-201 Computer Networks.
Universal Serial Bus (USB)
Presentation transcript:

USB : Universal Serial Bus A Seminar on USB: Universal Serial Bus By Alok K. Watve M.Tech. (IT) 2nd yr. 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Why USB? Much higher data rate compared to other data communication protocols (such as RS 232, parallel ports) USB 1.1 - 1.5 Mbps / 12 Mbps USB 2.0 - 1.5 Mbps / 12 Mbps / 480 Mbps Supports plug and play. Hence easy to operate. Allows large number of devices (theoretically 127) to be connected. Support for real time audio/video data communication Low cost 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Different types of devices using USB - Storage devices (pen drives), CDROM drives - Digital cameras - Speakers, microphones - Printers, scanners - Keyboards, mice - Mobile phones 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus History Developed by a group of seven companies - Compaq, Digital Equipment, IBM, Intel, Microsoft and Northern Telecom USB 1.0 released in 23rd September 1996 supported two speeds Low speed – 1.5 Mbps Full speed – 12 Mbps USB 1.1 released in 15th January1998 – No functional improvement. Clarification of certain timing parameters. USB 2.0 released in 27th April 2000 High speed – 480 Mbps protocol extension 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus USB Architecture USB host : The root of the USB communication model with which all other USB devices communicate. USB function : USB devices like printers, cameras etc. which communicate with the host. A single physical device may have multiple functions. USB hub : a special device having a USB host or another hub on the upstream port and a number of USB devices (or hubs) on the downstream ports. USB follows tree topology in which host is the root. Each hub is a center of a local star. The tree can have at the most seven layers(tiers) including host tier. 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus USB topology Ref: Universal Serial Bus specification revision 2.0 April 27 2000 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Working of a typical USB system Speakers Full speed Hub Digital camera High speed Key board Low speed Sequence of events: 1. Bus enumeration 2. Configuration 3. Communication 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Logical view of the system Host 1 Keyboard Host 2 Hub Digital Camera Speakers 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Mechanical Specifications Deal with connector plugs, sockets and wires. Original USB specification defines only two types of connectors - 1. Series A – plugs are oriented upstream and receptacles are oriented downstream. 2. Series B – plugs are oriented downstream and receptacles are oriented upstream. Recently smaller versions of the plugs and sockets are designed and added to the specification. These plugs are to be used in portable devices like mobile phones. 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Typical USB plugs and receptacles 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Electrical specification It defines the signaling, power distribution and physical layer specification. USB uses NRZ I signaling with bit stuffing USB cable contains 4 conductors. Two power conductors Vbus and GND. Two signal conductors D+ and D- Pull-up resistors are used to detect any USB device automatically. They also determine the speed (low/full/high) at which the device operates. For each speed, particular voltages at D+ and D- lines represent idle states. The resistor values are adjusted such that on ‘attach’ , D+ and D- will have the desired voltage levels 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Example of automatic ‘attach’ detection for a full speed device: For a full speed device idle state is represented by D+ : High ( > 2.8V) D– : Low (<0.3V) Ref : http://www.beyondlogic.org/usbnutshell/usb2.htm 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Example of automatic ‘attach’ detection for a low speed device: For a full speed device idle state is represented by D– : High ( > 2.8V) D+ : Low (<0.3V) Ref : http://www.beyondlogic.org/usbnutshell/usb2.htm 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Power considerations USB devices can be either externally powered or bus powered. Bus powered devices with low power rating cannot draw more than 100 mA. Bus powered devices with high power rating can draw at the most 500mA.. Each device specifies its power rating (in terms of current) during configuration. If there is no bus activity for more than 3 ms, USB device goes in suspend mode during which it can draw up to 500μA. It is important for the host to keep track of power ratings of all the functions because if total power requirement goes beyond the driving capacity of the host, it will no longer be able to support all the devices. Host in such cases either rejects a particular device or puts some devices in suspend mode. 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Frames Time slots are divided in frames. For high speed signaling the frame width is 125μs. For full speed signaling, the frame width is 1ms. Frames are especially important in interrupt mode data transfer. USB host transmits a ‘Start Of Frame’ (SOF) packet at the start of each frame. Although low speed device do not receive any SOF packet, they can see EOP (End Of Packet) signal on the bus, which acts as a reference for synchronization. SOF is used for two purposes : 1. It keeps host and functions synchronized with less than 0.05% error. 2. It prevents hosts from going into suspend mode in the absence of data. 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus USB protocol Client Software Function USB system software USB logical device USB host controller USB Bus interface Logical communication Actual communication 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus USB data transfer types Control transfer – used for Control messages e.g. SETUP Interrupt transfer – error free delivery, guaranteed latency Isochronous transfer –no error correction , only for FS/HS modes, guaranteed bandwidth, bounded latency Bulk transfer – error-free delivery, no guarantee of latency or bandwidth, only for FS/HS modes Each logical pipe has an end point type that identifies the transfer type supported by the pipe. Each pipe is identified by an end point identifier (ENDP). Every device has to support a control pipe at address 0 (default pipe). Low speed devices can have 4 pipes. Full and high speed devices can have up to 16 pipes 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus USB transactions Each transaction consists of : A token packet An optional data packet A handshake packet Token packet format Data packet format Handshake packet format Sync PID(8) Address(7) End point(4) CRC(5) EOP Sync PID(8) Data(0-8192) CRC(16) EOP Sync PID(8) EOP 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus In addition to these three packets a special packet called Start Of Frame (SOF) is sent at the start of each frame. The format for SOF packet is as follows: High speed devices see an SOF packet with SAME frame number 8 times per frame (a frame consists of 8 micro frame). Sync Frame number(11) EOP 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Split transactions and data rate translation When a low/full speed device is connected to USB host through a hub, special transaction called ‘split transaction’ precedes any transaction between the host and the low speed device. The sequence of events is as follows : Start of Split token packet (host to hub) FS/LS token Data Handshake (Complete split packet + handshake packet) 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Ref: Universal Serial Bus specification revision 2.0 April 27 2000 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus A complete taxonomy of packets and their PIDs Packet Type PID Token OUT 0001 ACK 0010 Handshake IN 1001 NAK 1010 SOF 0101 STALL 1110 SETUP 1101 NYET 0110 Data DATA0 0011 PRE 1100 Special DATA1 1011 ERR DATA2 0111 SPLIT 1000 MDATA 1111 PING 0100 PID 0000 is reserved. PID 1100 is used twice 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Revisit the example of the USB system Speakers Full speed Hub Digital camera High speed Key board Low speed Sequence of events: 1. Bus enumeration 2. Configuration 3. Communication 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Device configuration during bus enumeration Host reads several descriptors from the device. Commonly used descriptors are: Device descriptors(Only one for each device) Configuration descriptor(can be more than one) Interface descriptors (can be more than one per interface , a device can have multiple interfaces) Endpoint descriptors (One for each endpoint) String descriptors (Description of device in human readable form) These descriptors give host all the information needed to configure a device. Some parameters of the descriptors are given by the USB-Implementer’s Forum 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Recent developments USB OTG(on-the-go) Point to point connection Low power consumption Simplified cabling more connectivity options Wireless USB 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus References Universal Serial Bus Specification – revision 2.0 – April 2000 http://www.beyondlogic.org/usbnutshell/ http://www.sss-mag.com/usb.html http://www.usbdeveloper.com/ USB implementer’s forum – www.usb.org www.semiconductors.philips.com/markets/connectivity/wired/usb/products/otg/tutorial/ 11-Nov-18 USB : Universal Serial Bus

USB : Universal Serial Bus Questions ? 11-Nov-18 USB : Universal Serial Bus