PDF created with pdffactory Pro trial version How USB Ports Work by Marshall Brain. Introduction to How USB Ports Work

Similar documents
Module 5. Input/Output Ports

Chapter 11: Input/Output Organisation. Lesson 17: Standard I/O buses USB (Universal Serial Bus) and IEEE1394 FireWire Buses

Subject : Computer Hardware and Maintenance (17428) Interfaces. Compiled By : Ms. M.S.Karande (I/c HOD-IF) Page 1 of 21

Displayport, as shown, has 20 pins and can be used for audio, video, or both audio and video transmission.

David Harrison, Design Engineer for Model Sounds Inc.

USER MANUAL. Kramer Electronics, Ltd. Models:

USB (Universal Serial Bus) Presentation to UCHUG - 2/06/08 G. Skalka

Course 10: Interfaces Agenda

USB for Embedded Devices. Mohit Maheshwari Prashant Garg

1. INTRODUCTION 2. OVERVIEW

Motherboard BIOS. Fig: 1 What you see (or something similar) if you turn the PC manufacturer's logo off

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

Buses, Video, and Upgrades

SERIAL BUS COMMUNICATION PROTOCOLS USB

UFC3212V. Version 1.0

CHAPTER 2: SETUP...5 CHAPTER 1: GENERAL INFORMATION...3 USB HUB BACKGROUND...6 CASCADING LIMITATION...7 USB BACKGROUND...6 DESCRIPTION...

Bits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use:

Exam: A+ Practice Exam 3: Chapter 6

BACK TO BASICS PART I. Hardware & it s Associated Terminology

PDF created with pdffactory Pro trial version How Computer Memory Works by Jeff Tyson. Introduction to How Computer Memory Works

Getting Started. Here's how to get started using your Zip 250 drive: 1. Unpack the Zip 250 drive and accessories.

Bluetooth was originally started as a project by the Ericsson Company.

Essential Components for Today s Industrial Connections

Bus Example: Pentium II

Camera Chaos. Which interface is best for me?

Table of contents. Behind the Scenes 1)How USB works? 5 2)Special Software to run USB 5 3)USB Cable 5 4)How fast is USB? 5

SCSI Unscrewed. Click on the image to enlarge

LabSim Mapping Matrix

Organisasi Sistem Komputer

Agenda. Introduction Market trend and application 1394 Market Analysis Data 1394 and industry Applications. Other Technologies USB DVI

Microprocessors LCD Parallel Port USB Port

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

ICAU1128B: Operate a Personal Computer Student Handbook

Lesson 4: The Network Interface Card

AN INTRODUCTION TO USB EXTENDERS

INFORMATION COMUNICATION TECHNOLOGY SKS Lecture Two

PC I/O. May 7, Howard Huang 1

Input Devices. Chapter The McGraw-Hill Companies, Inc. All rights reserved. Mike Meyers CompTIA A+ Guide to Managing and Troubleshooting PCs

USB Port PCI Express Card

TU2-400 USB Port HUB

Datacom Connectivity Products

Extending the Benefits of USB

Q1. Describe C.P.U and its subunits with the help of diagram?

Module 6: INPUT - OUTPUT (I/O)

JUNE 2000 IC136C. USB Card

I/O, Input Ports and Devices

Computer Organization

PCI 32 bit P&P Agere IEEE Ports PCI Host

Chapter Four. Making Connections. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

USB. The Universal Serial Bus. Most of the material is taken from Jan Axelsson: USB Complete, third edition Lakeview Research ISBN:

INTRODUCTION. What You Need to Read. What this LANbook Covers

ECE 471 Embedded Systems Lecture 30

Removable Storage and Computer Interfaces

PC Connections. A typical computer connects to the world around it in three different ways: Input/output devices Ports Networking.

LabSim Mapping Matrix

Cables, Cards & Connectors

Everything You Wanted To Know About USB Embossers* *but were afraid to ask

Data Communications & Computer Networks. Digital Data Communications Techniques

Communication of graphics devices with PC. Bohdal, PhD.

Input/Output. Display Keyboard Mouse Removable storage

Discovering Computers 2012

Product Manual. USB 2.0 Over IP Network Industrial 4-Port Hub TCP/IP Network. Coolgear, Inc. Version 1.1 September 2017 Model Number: USBG-4NET

Kramer Electronics, Ltd. USER MANUAL. Model: FireWire 800/1394b Optical Repeater

USB and K-V-M switches. The Rise of USB in the Data Center - The Implementation can Make the Difference 2007 ATEN

Components of a personal computer

Inside the Computer System

Connectivity. Module 2.2. Copyright 2006 EMC Corporation. Do not Copy - All Rights Reserved. Connectivity - 1

Introduction to Computer Science Lesson 5

COMP asynchronous buses April 5, 2016

Laptop Docking Stations

Chapter 0: IT Essentials Introduction Chapter 1: Introduction to the Personal Computer

Computers Are Your Future

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

Main Parts of Personal Computer

USB over IP Quick Installation Guide

Computer Organization

MANUAL. Welcome Thank you and congratulations on your purchase of the NISIS G3 USB Graphic Tablet.

Table of Contents. D-Link SharePort Plus... 4 Introduction...4 System Requirements...4 Features...5. Installation... 6

Product Guide. USB and KVM Extenders & Accessories. Icron Technologies

4ARGUSÖ0ORT 2EPLICATOR 53%23Ö'5)$% -AKINGÖ9OURÖ-OBILEÖ,IFEÖ%ASIERË

CAT5 1500HD EXT-CAT5-1500HD USER MANUAL.

VCI Systems Cable and Socket Identification Guide

Universal Serial Bus - USB 2.0

UC-2000 / UC-2000L. User Manual

COMPUTER APPLICATIONS QuesBnk

LabSim Mapping Matrix

Chapter 1: Introduction to the Personal Computer

Windows MultiPoint Server 2011 Planning Guide. Document Version 1.0 March 2011

WORDSYNC ADDENDUM to the SupraDrive Operator s Manual

PCI Express Powered USB Card

USBTHERE User Guide USB100EXT. Featuring ExtremeUSB Technology

Lectures More I/O

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

Buying and Upgrading Your Computer System. Developing Your Own Microcomputer System. Get Started the Right Way. Analyzing Needs.

Prepared by Agha Mohammad Haidari Network Manager ICT Directorate Ministry of Communication & IT

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

HomePNA Overview. Home network standards. Examples. HomePNA Overview. HomePNA. Reference:

Inside Your PC. Introduction to Computer Science. Polly Huang NTU EE

Mount the machine in a rack (using the RK-2TB rack adapter) or place on a table.

Transcription:

Main > Computer > Hardware How USB Ports Work by Marshall Brain Introduction to How USB Ports Work Just about any computer that you buy today comes with one or more Universal Serial Bus connectors on the back. These USB connectors let you attach everything from mice to printers to your computer quickly and easily. The operating system supports USB as well, so the installation of the device drivers is quick and easy, too. Compared to other ways of connecting devices to your computer (including parallel ports, serial ports and special cards that you install inside the computer's case), USB devices are incredibly simple! In this article, we will look at USB ports from both a user and a technical standpoint. You will learn why the USB system is so flexible and how it is able to support so many devices so easily -- it's truly an amazing system! A typical USB connector. See more USB pictures. Anyone who has been around computers for more than two or three years knows the problem that the Universal Serial Bus is trying to solve -- in the past, connecting devices to computers has been a real headache! Printers connected to parallel printer ports, and most computers only came with one. Things like Zip drives, which need a high-speed connection into the computer, would use the parallel port as well, often with limited success and not much speed. Modems used the serial port, but so did some printers and a variety of odd things like Palm Pilots and digital cameras. Most computers have at most two serial ports, and they are very slow in most cases. Devices that needed faster connections came with their own cards, which had to fit in a card slot inside the computer's case. Unfortunately, the number of card slots is limited and you needed a Ph.D. to install the software for some of the cards. The goal of USB is to end all of these headaches. The Universal Serial Bus gives you a single, standardized, easy-to-use way to connect up to 127 devices to a computer. Just about every peripheral made now comes in a USB version. A sample list of USB devices that you can buy today includes: Printers Scanners Mice Joysticks Flight yokes Digital cameras Webcams Scientific data acquisition devices Modems Speakers Telephones Video phones Storage devices such as Zip drives Network connections In the next section, we'll look at the USB cables and connectors that allow your computer to communicate with these devices. USB Cables and Connectors Connecting a USB device to a computer is simple -- you find the USB connector on the back of your machine and plug the USB connector into it.

The rectangular socket is a typical USB socket on the back of a PC. If it is a new device, the operating system auto-detects it and asks for the driver disk. If the device has already been installed, the computer activates it and starts talking to it. USB devices can be connected and disconnected at any time. A typical USB connector, called an "A" connection Many USB devices come with their own built-in cable, and the cable has an "A" connection on it. If not, then the device has a socket on it that accepts a USB "B" connector. A typical "B" connection The USB standard uses "A" and "B" connectors to avoid confusion: "A" connectors head "upstream" toward the computer. "B" connectors head "downstream" and connect to individual devices. By using different connectors on the upstream and downstream end, it is impossible to ever get confused -- if you connect any USB cable's "B" connector into a device, you know that it will work. Similarly, you can plug any "A" connector into any "A" socket and know that it will work. USB Hubs Most computers that you buy today come with one or two USB sockets. With so many USB devices on the market today, you easily run out of sockets very quickly. For example, on the computer that I am typing on right now, I have a USB printer, a USB scanner, a USB Webcam and a USB network connection. My computer has only one USB connector on it, so the obvious question is, "How do you hook up all the devices?"

The easy solution to the problem is to buy an inexpensive USB hub. The USB standard supports up to 127 devices, and USB hubs are a part of the standard. A typical USB four-port hub accepts 4 "A" connections. A hub typically has four new ports, but may have many more. You plug the hub into your computer, and then plug your devices (or other hubs) into the hub. By chaining hubs together, you can build up dozens of available USB ports on a single computer. Hubs can be powered or unpowered. As you will see on the next page, the USB standard allows for devices to draw their power from their USB connection. Obviously, a high-power device like a printer or scanner will have its own power supply, but low-power devices like mice and digital cameras get their power from the bus in order to simplify them. The power (up to 500 milliamps at 5 volts) comes from the computer. If you have lots of self-powered devices (like printers and scanners), then your hub does not need to be powered -- none of the devices connecting to the hub needs additional power, so the computer can handle it. If you have lots of unpowered devices like mice and cameras, you probably need a powered hub. The hub has its own transformer and it supplies power to the bus so that the devices do not overload the computer's supply. The USB Process When the host powers up, it queries all of the devices connected to the bus and assigns each one an address. This process is called enumeration -- devices are also enumerated when they connect to the bus. The host also finds out from each device what type of data transfer it wishes to perform: Interrupt - A device like a mouse or a keyboard, which will be sending very little data, would choose the interrupt mode. Bulk - A device like a printer, which receives data in one big packet, uses the bulk transfer mode. A block of data is sent to the printer (in 64-byte chunks) and verified to make sure it is correct. Isochronous - A streaming device (such as speakers) uses the isochronous mode. Data streams between the device and the host in real-time, and there is no error correction. The host can also send commands or query parameters with control packets. As devices are enumerated, the host is keeping track of the total bandwidth that all of the isochronous and interrupt devices are requesting. They can consume up to 90 percent of the 480 Mbps of bandwidth that is available. After 90 percent is used up, the host denies access to any other isochronous or interrupt devices. Control packets and packets for bulk transfers use any bandwidth left over (at least 10 percent). The Universal Serial Bus divides the available bandwidth into frames, and the host controls the frames. Frames contain 1,500 bytes, and a new frame starts every millisecond. During a frame, isochronous and interrupt devices get a slot so they are guaranteed the bandwidth they need. Bulk and control transfers use

whatever space is left. The technical links at the end of the article contain lots of detail if you would like to learn more. USB Features The Universal Serial Bus has the following features: The computer acts as the host. Up to 127 devices can connect to the host, either directly or by way of USB hubs. Individual USB cables can run as long as 5 meters; with hubs, devices can be up to 30 meters (six cables' worth) away from the host. With USB 2.,the bus has a maximum data rate of 480 megabits per second. A USB cable has two wires for power (+5 volts and ground) and a twisted pair of wires to carry the data. On the power wires, the computer can supply up to 500 milliamps of power at 5 volts. Low-power devices (such as mice) can draw their power directly from the bus. High-power devices (such as printers) have their own power supplies and draw minimal power from the bus. Hubs can have their own power supplies to provide power to devices connected to the hub. USB devices are hot-swappable, meaning you can plug them into the bus and unplug them any time. Many USB devices can be put to sleep by the host computer when the computer enters a power-saving mode. The devices connected to a USB port rely on the USB cable to carry power and data. USB 2.0 Inside a USB cable: There are two wires for power -- +5 volts (red) and ground (brown) -- and a twisted pair (yellow and blue) of wires to carry the data. The cable is also shielded. The standard for USB version 2.0 was released in April 2000 and serves as an upgrade for USB 1.1. USB 2.0 (High-speed USB) provides additional bandwidth for multimedia and storage applications and has a data transmission speed 40 times faster than USB 1.1. To allow a smooth transition for both consumers and manufacturers, USB 2.0 has full forward and backward compatibility with original USB devices and works with cables and connectors made for original USB, too. Supporting three speed modes (1.5, 12 and 480 megabits per second), USB 2.0 supports low-bandwidth devices such as keyboards and mice, as well as high-bandwidth ones like high-resolution Webcams, scanners, printers and high-capacity storage systems. The deployment of USB 2.0 has allowed PC industry leaders to forge ahead with the development of next-generation PC peripherals to complement existing high-performance PCs. The transmission speed of USB 2.0 also facilitates the development of next-generation PCs and applications. In addition to improving functionality and encouraging innovation, USB 2.0 increases the productivity of user applications and allows the user to run multiple PC applications at once or several high-performance peripherals simultaneously. For more information on USB and related topics, check out the links on the next page. Lots More Information Related HowStuffWorks Articles How SCSI Works How Serial Ports Work How Parallel Ports Work How Home Networking Works How Ethernet Works Which is better to use for a cable modem -- a USB connection or an Ethernet card? Where to buy Compare Prices Super Deals

Partner Links USB Crazy More Great Links USB.org UMAX: USB Troubleshooting - Top Issues USB.org - USB Product Search Microsoft: USB Technology Apple: USB vs. FireWire HSW Brazil Home Company Info Advertise With Us Newsletter Careers Privacy Contact Us Help Terms & Conditions RSS 1998-2007 HowStuffWorks, Inc.