datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com  
Events
UBM Tech
UBM Tech

Design Article

Comment


Luis Gordillo

2/15/2013 3:01 PM EST

Thank you very much!!! I will read it to the last letter :-)

More...



Jamison

2/15/2013 2:15 PM EST

Great work!

More...

Introduction to USB—Part I

Christian Legare, Micrium

11/14/2012 12:20 PM EST

Introduction to USB--Part I--Page 2.

USB MINI CONNECTORS

Mini connectors were added in USB 2.0. They are an alternative to the standard B connector, and are used on handheld and portable devices; the Type B connector is too large to be easily integrated into these devices. The mini-B connecter has a fifth pin, named ID. but it is not connected. Mini connectors have fallen out of use with the development of micro connectors for smaller handheld devices.

USB ON-THE-GO (MICRO) CONNECTORS
USB OTG devices use Micro-USB connectors. These connectors are smaller, which makes them more useful for handheld devices, and support the use of the ID pin to determine the device type. An OTG device is required to be able to detect whether a Micro-A or Micro-B plug is inserted by determining if the ID pin resistance to ground is less than 10Ω MAX or if the resistance to ground is greater than 100KΩ. If the electrical resistance on the ID pin is less than 10Ω MAX, the pin shall be treated as ID = FALSE, and a resistance greater than 100kΩ MIN shall be treated as ID = TRUE. “USB Stacks” on page 61 for more details about OTG usage in embedded systems.

1-2-2 ELECTRICAL SPECIFICATIONS

In most embedded system designs, adherence to the USB electrical specifications is guaranteed by the USB controller used, whether that is an external controller, or one that is integrated into an MCU. Most USB controller vendors provide excellent reference materials that you can use as the basis of your product design.

So, the main issue you should consider is compliance testing, if you want to get the USB logo on your product. See “Compliance” on page 64 for more information. Once a device has indicated its presence by setting the signal lines with the correct set of pull-ups resistors, the host controller is responsible for all further traffic on the bus.

A high-speed device begins by connecting to the host/hub as a full-speed device. Once attached, it will perform a high speed chirp during reset, and if the hub supports it, the device establishes a high speed connection. If the device operates in high speed mode, then the D+ line is pulled high to balance the line.

Note: A high-speed device must not support low speed mode. A USB 2.0 compliant downstream-facing hub or host must support all three modes: high speed, full speed and low speed.

USB supports hot plugging with dynamically loadable and unloadable drivers. The user simply plugs the device into the bus, and the host detects this addition, interrogates the newly inserted device, and loads the appropriate driver (provided a driver is installed for your device).

 

Quick facts about the electrical characteristics of USB cabling:

 

  • In USB 2.0, a unit load is defined as 100 mA. A device may draw a maximum of five unit loads, for a total of 500 mA from a single port.
  • Either the D+ or the D- line will be pulled high. If D+ is high, the device is Full or High Speed. If D- is high, the device is Low Speed.
  • High Speed negotiation protocol occurs during the Bus Reset phase
  • After detecting the reset signal, a high speed device will signal the host with a 480 Mbps chirp.

 

1-2-3 HIGH SPEED

High-speed additions to the USB specification were introduced in USB 2.0 as a response to the higher speed of FireWire. It was added as an afterthought, and was designed to maintain compatibility without compromising performance. High Speed provides a maximum theoretical throughput of 480 Mb/s using the same cables as Low/Full Speed USB.

This is achieved by having each end of D+ and each end of D- terminated with a 45 Ohm resistance to ground when the link is conveying high speed data

A high-speed transceiver current source injects a current of 17.78 mA (derived from the positive supply) into either the D+ or the D- line. A voltage of 400mV on the line is generated. A differential receiver detects the differential state of the line.

In fact, the 45 ohm resistors are provided by the Full Speed / Low Speed circuitry, at each end of the link, applying a Single Ended Zero. The FS/LS controller is designed to provide as accurate a termination resistance as possible. Removing the high speed transceiver current source from the circuit re-establish the line conditions as defined for Low/Full Speed USB.

 

Next:  Powering USB Devices

 

µC/USB Device: Universal Serial Bus Device Stack for the Renesas RX63N, Chapter 2, by Christian Legare, is excerpted with permission. The text is available at Micrium.


 

 





S_Reichert

11/16/2012 3:23 PM EST

good primer, would have liked to see coverage of USB 3.0 as well

Sign in to Reply



cmathas

11/21/2012 7:47 AM EST

I'll put up the next section of this next week. I believe there will be a future 3.0 primer--and when it happens, you'll see it here!

Sign in to Reply



GREAT-Terry

11/28/2012 9:21 AM EST

Good primer. I like reading this kind of article. Keep up the good work!

Sign in to Reply



krishna_amba

11/29/2012 10:23 PM EST

Thanks a lot. Your work is really helpful for students like me.

Sign in to Reply



Jamison

2/15/2013 2:15 PM EST

Great work!

Sign in to Reply



Luis Gordillo

2/15/2013 3:01 PM EST

Thank you very much!!! I will read it to the last letter :-)

Sign in to Reply



Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)