Sunday, 19 April 2015

USB 2.0 - Overview of Architecture


Architecture:
  1. USB system comprises of three components:
    • USB Host - Root Hub (Host controller).
    • USB Device - Device can be either a function or a hub.
    • USB Interconnect - The manner in which Host and devices are connected.
      Points below will describe Host, Devices and their interconnection.
  2. Bus Topology: 
    • Tiered star topology.
    • A hub is at the center of each star.
    • The maximum number of tiers allowed is seven (including the root tier).
    • In seven tiers, five non-root hubs maximum can be supported in a communication path between the host and any device. Implies only functions can be enabled in tier seven.
  3. Host: There is only one host in USB system. Host comprises of Host controller(Interface to host computer system) and Root Hub(Integrated in host itself to provide more than one attachment points).
  4. Device: can be one of the following,
    • Hubs, which provide additional attachment points to the USB.
    • Functions, which provide capabilities to the system, such as a digital joystick, or speaker.
  5. Electrical characteristics:
    • USB transfers Power(VBUS,GND) and Data(D+,D- = Differential pair).
    • Host controllers and hubs provide capabilities so that full-speed and low-speed data can be transmitted at high-speed between the host controller and the hub, but transmitted between the hub and the device at full-speed or low-speed. This capability minimizes the impact that full-speed and low-speed devices have upon the bandwidth available for high-speed devices.
    • The clock encoding scheme is NRZI.
  6. Power : Two areas of power are displayed by USB 2.0, as described below,
    •  Power Distribution : 
      • The host/hubs supplies power for use by USB devices that are directly connected.
      • USB devices that rely totally on power from the cable are called bus-powered devices otherwise called self-powered devices.
    • Power Management : This is related to power management of system itself, i.e. when to get into resume or standby or active power modes. This will be controlled by system software. 

Tuesday, 14 April 2015

USB 2.0 - Introduction


Introduction:
  1. Following speeds are supported,
    • Low speed : 10-100 kbps, for Interactive devices(Mouse..). 
    • Full speed : 500kbps - 10Mbps, for phone,audio,video applications.
    • High speed : 25 - 400 Mbps, for video storage applications.
  2. Important Features :
    • Self-identifying peripherals, automatic mapping of function to driver and configuration.
    • Dynamically attachable and reconfigurable peripherals.
    • Supports isochronous as well as asynchronous transfer types over the same set of wires.
    • Supports concurrent operation of many devices (multiple connections) (upto 127 devices).
    • Guaranteed bandwidth and low latencies appropriate for telephony, audio, video, etc.
    • Supports a wide range of packet sizes, which allows a range of device buffering options.
    • Allows a wide range of device data rates by accommodating packet buffer size and latencies.
    • Flow control for buffer handling is built into the protocol.
    • Error handling/fault recovery mechanism is built into the protocol.
    • Dynamic insertion and removal of devices is identified in user-perceived real-time.
    • Architecture upgradeable to support multiple USB Host Controllers in a system.