10 USB Pinout Explained- USB A, B, C(Male and Female)

Universal Serial Bus (USB) is an electronic device that gives us a universal medium for connecting peripherals. It can be a keyboard, printer, speaker, a storage device, or a mobile phone.

Table of Contents

The USB pinout can be divided into two parts: USB Connector Pinout and USB port Pinout. The connector here refers to the device that goes into the USB port. For example, a wired Mouse is connected to the laptop by inserting its connector into the USB port.

Hence the terms Male version for Connector and Female version for the USB port are tossed.

USB type A and type B pinout(male and female)

The USB type A is rectangular, while type B has a square-like shape. Both of them have 4 pins. The figure below shows the Pinout of Male and Female versions of both USBs.

USB type A and B pinout

1VccRed+5V
2D-WhiteData-
3D+GreenData+
4GNDBlackGround

USB mini A and mini B

USB Mini was the first improvised version of the normal connectors. This version was launched for both Type A and Type B.

1VccRed+5V
2D-WhiteData-
3D+GreenData+
4IDN/AUSB OTG ID
5GNDBlackGround

USB micro A and micro B

USB Micro is thinner and gives a higher data transfer speed than the USB Mini. It is often used for charging portable devices and comes in two shapes. Micro A is rectangular whereas Type Micro B has a camper shape.

USB standard 3

Features of usb standard 3.

The standard 3 models are accepted globally due to the following benefits:

USB type A 3.0 and type B 3.0

As discussed above, the normal Type A and Type B connectors have 4 pins. But the superspeed versions of Standard 3 have 9 pins which are visible in the figure below.

1RedVcc+5 DC
2WhiteD-Data –
3GreenD+Data +
4BlackGNDGround
5BlueStdB_SSRX-Superspeed Transmit-
6YellowStdB_SSRX+Superspeed Transmit+
7N/AGND_DrainGround Signal Return
8PurpleStdB_SSTX-Superspeed Receive-
9OrangeStdB_SSTX+Superspeed Receive+

Micro B 3.0

1RedVcc+5 DC
2WhiteD-Data –
3GreenD+Data +
4N/AIDOTG ID
5BlackGNDGround
6BlueStdB_SSRX-Superspeed Transmit-
7YellowStdB_SSRX+Superspeed Transmit+
8N/AGND_DrainGround Signal Return
9PurpleStdB_SSTX-Superspeed Receive-
10OrangeStdB_SSTX+Superspeed Receive+

USB type c 3.0

Type C has been the game-changer among all the USB types. It supports data transmission as well as power delivery. Thus, it has become a universal connector for modern devices.

A1GroundB12Ground
A2Superspeed differential pair 1, TX, positiveB11Superspeed differential pair 2, RX, positive
A3Superspeed differential pair 1, TX, negativeB10Superspeed differential pair 2, RX, negative
A4Bus powerB9Bus power
A5Configuration channelB8Side Band Use (SBU)
A6Differential pair 1, positiveB7Differential pair 2, negative
A7Differential pair 1, negativeB6Differential pair 2, positive
A8Side Band Use (SBU)B5Configuration channel
A9Bus powerB4Bus power
A10Superspeed differential pair 4, RX, negativeB3Superspeed differential pair 3, TX, negative
A11Superspeed differential pair 4, RX, positiveB2Superspeed differential pair 3, TX, positive
A12GroundB1Ground

2 thoughts on “10 USB Pinout Explained- USB A, B, C(Male and Female)”

Great knowledge about USB… Thank you

Glad to be of help.

Leave a Comment Cancel reply

ElectronicsHub USA Logo

  • Electronics

USB Pinout | USB 2.0, USB 3.0, Type A, Type B, Mini-B, Micro-B, USB-C

  • April 12, 2024
  • By Leela Prasad

Universal Serial Bus or simply USB is a popular computer interface that we use to connect a variety of peripherals and devices. Some of the things that we connect using USB are Mice, Keyboard, Printers, Game Controllers , Audio Devices, and many more. Apart from computing devices (laptops, tablets, mobile phones), you can find USBs in cars, bikes, power banks, LED Lights, chargers etc. Depending on the type of application and need, there are several USB ports (USB Type A, Type B, micro-USB, Mini-USB, Type-C etc.). If you are working on anything related to USB, then a knowledge of the USB Pinout is crucial.

In this guide, let us take a quick look at the popular USB Ports and their pinouts. If you are interested in learning about different types of computers ports, then take a look at this 16 Different Types of Computer Ports guide.

A Brief Note on USB

Before the development of USB, we had to deal with separate ports for different types of devices. For example, mice and keyboards had PS/2 Ports, Modems has Serial Ports, Printers had Parallel Ports to name a few.

But with the introduction of USB, this has changed completely. You just need a single port to connect all the aforementioned and many other peripherals and devices to a computer.

From an end-user’s perspective, USB is an easy-to-use interface that supports many devices, is hot pluggable and no fiddling with configuration or settings. You plug-in a device and it just works.

All is not good and positive about USB. There are some negatives as well. For example, the main problem with USB is the different types of connectors it has for different devices (USB A, B, C, Micro, Mini etc.).

This is now changing with the development of USB Type C. We can use USB-C for data transfer, power and charging, connecting to displays, docking stations, etc. with a variety of devices (laptops, smartphones, tablets, computers, cars, external drives, power banks etc.). We believe that USB is finally living up to its “Universal” name with USB Type C.

Different Types of USB Ports

We can divide USB connectors and ports into three types: Type A, Type B and Type C. In both Type A and Type B, there are again three different sizes of connectors intended for different classes of devices. They are: Regular, Mini and Micro.

The connectors are also different based on the version of the USB i.e., USB 1.1 and USN 2.0 have a similar connectors and ports but when it comes to USB3.0, they are completely different. USB Type C sorted this whole mess with a single connector.

Before looking at the USB pinout of different USB ports, here is an image of all the USB Connectors.

Let us now take a look at the pinouts of different USB Ports. We are mentioning the USB Pinout only for the female side of the connection. The pinout of the male side will be identical except that it will be a mirror image of the female side.

1 V +5V Red or Orange
2 D– Data – White or Gold
3 D+ Data + Green
4 GND Ground Black or Blue
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG (On-the-Go) Identification

Connected to Ground on Mini-A Port (Host)

No Wire
5 GND Ground Black
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG (On-the-Go) Identification

Not Connected on Mini-B Connector (Device)

No Wire
5 GND Ground Black
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG (On-the-Go) Identification

Connected to Ground on Type A Port (Host)

No Wire
5 GND Ground Black
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG (On-the-Go) Identification

Not Connected on Type B Connector (Device)

No Wire
5 GND Ground Black
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG (On-the-Go) Identification

Connected to Ground on Type A Port (Host)

Not Connected on Type B Connector (Device)

No Wire
5 GND Ground Black
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 GND Ground (Power Return) Black
5 StdA_SSRX– Super Speed Differential Pair for Receiving Blue
6 StdA_SSRX+ Yellow
7 GND_DRAIN Ground (Signal Return) None
8 StdA_SSTX– Super Speed Differential Pair for Transmitting Purple
9 StdA_SSTX+ Orange
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 GND Ground (Power Return) Black
5 StdA_SSTX– Super Speed Differential Pair for Receiving Blue
6 StdA_SSTX+ Yellow
7 GND_DRAIN Ground (Signal Return) None
8 StdA_SSRX– Super Speed Differential Pair for Transmitting Purple
9 StdA_SSRX+ Orange
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG Mode Detect Dark Blue
5 GND Ground (Power Return) Black
6 StdA_SSRX– Super Speed Differential Pair for Receiving Blue
7 StdA_SSRX+ Yellow
8 GND_DRAIN Ground (Signal Return) None
9 StdA_SSTX– Super Speed Differential Pair for Transmitting Purple
10 StdA_SSTX+ Orange
1 V +5V Red
2 D– Data – White
3 D+ Data + Green
4 ID OTG Mode Detect Dark Blue
5 GND Ground (Power Return) Black
6 StdA_SSTX– Super Speed Differential Pair for Receiving Blue
7 StdA_SSTX+ Yellow
8 GND_DRAIN Ground (Signal Return) None
9 StdA_SSRX– Super Speed Differential Pair for Transmitting Purple
10 StdA_SSRX+ Orange
A1 GND Ground Return Tin Plated (Gray)
A2 SSTXP1 (TX1+) Super Speed Differential Pair #1 TX Positive Yellow
A3 SSTXN1 (TX1–) Super Speed Differential Pair #1 TX Negative Brown
A4 V Bus Power Red
A5 CC1 Configuration Channel Blue
A6 DP1 USB 2.0 Data + Green
A7 DN1 USB 2.0 Data – White
A8 SBU1 Sideband Use Red
A9 V Bus Power Red
A10 SSRXN2 (RX2–) Super Speed Differential Pair #4 RX Negative Blue
A11 SSRXP2 (RX2+) Super Speed Differential Pair #4 RX Positive Red
A12 GND Ground Return Tin Plated (Gray)
B1 GND Ground Return Tin Plated (Gray)
B2 SSTXP2 (TX2+) Super Speed Differential Pair #3 TX Positive White
B3 SSTXN2 (TX2–) Super Speed Differential Pair #3 TX Negative Black
B4 V Bus Power Red
B5 CC2 Configuration Channel Yellow
B6 DP2 USB 2.0 Data + Green
B7 DN2 USB 2.0 Data – White
B8 SBU2 Sideband Use Black
B9 V Bus Power Red
B10 SSRXN1 (RX1–) Super Speed Differential Pair #2 RX Negative Orange
B11 SSRXP1 (RX1+) Super Speed Differential Pair #2 RX Negative Green
B12 GND Ground Return Tin Plated (Gray)

USB is the most popular type of connector at the moment. With USB Type C, it is very close to achieving the true “universal” stature for data, power display and many more. In this guide, we saw the basics of USB, different types of USB ports, USB Pinout of different connectors and receptacles.

Related Posts:

  • Can USB Port be Converted to HDMI?
  • 16 Types of Computer Ports and Their Functions
  • Micro HDMI Vs Mini HDMI
  • What Are the Different USB Types?
  • What is USB C? (Introduction, Versions, Pros and Cons)
  • What Is A Docking Station

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get our Latest Newletters

Get great content that you love. No ads or spams, we promise.

Electronics Hub Logo

How To Guides

Android Apple Windows Email YouTube Instagram SnapChat Discord Cloud Storage Google Sheets

Product Reviews

Home & Security Camera Motherboard PC & PC Accessories Laptops Speakers Car Accessories Air Conditioner Solar Software

For Students

Electronics Projects Arduino Projects Embedded Free Circuits Mini Projects Robotics Sensor

Interesting

Insights Tutorials Symbols Courses Calculator Deals Our Story

Your Privacy is important to us

Tutorials Symbols Courses Calculator

Electrical Electronics Embedded Power Robotics ARM IOT

Mini projects Microcontroller Arduino Solar Free circuits Home Automation Seminar Topics Electronics Questions

Capacitors Resistors Filters Diodes Transistors Amplifiers IO Devices Thyristors DC Circuits Number System

  • Affiliate Disclosure
  • Terms and Conditions
  • Privacy Policy

Copyright © 2024 Electronicshub.org

Electronicshub Favicon

computer bus pin assignment

usb type b pin assignment

  • Ask a question

Universal Serial Bus (USB) is an interface to establish communication between devices and a host controller (usually personal computer). Nowdays USB has replaced a variety of earlier PC interfaces (such as RS-232 serial , parallel port , and even FireWire ). Due to the ability to supply power to the preipheral devices USB is often used as a power charger for portable devices .

An USB system architecture consists of a host controller, a USB ports, and multiple connected devices. Additional USB hubs may be included allowing branching into a tree structure with up to five tier levels.  USB can connect computer peripherals such as mice, keyboards, digital cameras , PDA , mobile phones , printers, personal media players , Media Transfer Protocol (MTP) devices, flash drives, GPS , Network Adapters, and external hard drives . For many of those devices, USB has become the standard connection method.

USB interface aimed to remove the need for adding expansion cards into the computer's PCI or PCI-Express bus, and improve plug-and-play capabilities by allowing devices to be hot swapped or added to the system without rebooting the computer.  

The USB Pinout:

Pin Name Cable color Description
1 VCC Red +5 VDC
2 D- White Data -
3 D+ Green Data +
4 GND Black Ground

USB connectors

There are several types of USB connectors. The connector mounted on the host or device is called the receptacle, and the connector attached to the cable is called the plug. The original USB specification detailed Standard-A and Standard-B plugs and receptacles. Nowdays there are 7 USB connectors known: Standard-A, Standard-B, Mini-A, Mini-B , Micro-A, Micro-AB, Micro-B , Type-C . Mini-USB pinout and Micro-USB pinout are slightly different: standard USB uses 4 pins while Mini-USB and Micro-USB uses 5 pins in connector. The additional pin is used as an attached device presence indicator.   

USB pinout signals

USB is a serial bus. It uses 4 shielded wires: two for power (+5v & GND) and two for differential data signals (labelled as D+ and D- in pinout). NRZI (Non Return to Zero Invert) encoding scheme used to send data with a sync field to synchronise the host and receiver clocks. In USB data cable Data+ and Data- signals are transmitted on a twisted pair. No termination needed. Half-duplex differential signaling helps to combat the effects of electromagnetic noise on longer lines. Contrary to popular belief, D+ and D- operate together; they are not separate simplex connections. USB 2.0 provides for a maximum cable length of 5 meters for devices running at Hi Speed.

USB transfer modes

Univeral serial bus supports Control, Interrupt, Bulk and Isochronous transfer modes.

USB interfaces specifications.

There are some major USB versions known nowdays:

USB 1.0 - Low Speed or Full Speed

  • released in 1996.
  • Specifies data rates of 1.5 Mbit/s (Low-Bandwidth, is mostly used for Human Input Devices (HID) such as keyboards, mouses, joysticks and often the buttons on higher speed devices such as printers or scanners) and 12 Mbit/s (Full-Bandwidth).
  • nowadays is still used used by some devices that don't need faster data transfer rates.

USB 2.0 - High Speed

  • released in 2000
  • in addition to USB 1.0 adds signaling rate of 480 Mbit/s (Hi-Speed)
  • compatible with USB 1.0, but some hardware designed for USB 2.0 may not work with USB 1.0 host controllers.

USB 3.0 - SuperSpeed

  • released in 2008
  • added transmission rates up to 5 Gbit/s (SuperSpeed)
  • USB 3.1 released in 2013 added SuperSpeed+ transmission rate up to 10 Gbit/s
  • USB 3.2 released in 2017 added SuperSpeed+ transmission rate up to 20 Gbit/s and multi-link modes

USB 1.0 and USB 2.0 shares same connector pinout, USB 3.0 pinout  and USB Type C features new connectors with their own pinouts.

An USB device must indicate its speed by pulling either the D+ or D- line high to 3.3 volts. These pull up resistors at the device end will also be used by the host or hub to detect the presence of a device connected to its port. Without a pull up resistor, USB assumes there is nothing connected to the bus.

In order to help user to identify maximum speed of device, a USB device often specifies its speed on its cover with one of the USB special marketing logos.

When the new device first plugs in, the host enumerates it and loads the device driver necessary to run it. The loading of the appropriate driver is done using a PID/VID (Product ID/Vendor ID) combination supplied by attached hardware. The USB host controllers has their own specifications: UHCI (Universal Host Controller Interface), OHCI (Open Host Controller Interface) with USB 1.1, EHCI (Enhanced Host Controller Interface) is used with USB 2.0.

USB powered devices

The USB connector provides a single 5 volt wire from which connected USB devices may power themselves. A given segment of the bus is specified to deliver up to 500 mA. This is often enough to power several devices, although this budget must be shared among all devices downstream of an unpowered hub. A bus-powered device may use as much of that power as allowed by the port it is plugged into.

Bus-powered hubs can continue to distribute the bus provided power to connected devices but the USB specification only allows for a single level of bus-powered devices from a bus-powered hub. This disallows connection of a bus-powered hub to another bus-powered hub. Many hubs include external power supplies which will power devices connected through them without taking power from the bus. Devices that need more than 500 mA or higher than 5 volts must provide their own power.

When USB devices (including hubs) are first connected they are interrogated by the host controller, which enquires of each their maximum power requirements. However, seems that any load connected to USB port may be treated by operating system as device. The host operating system typically keeps track of the power requirements of the USB network and may warn the computer's operator when a given segment requires more power than is available and may shut down devices in order to keep power consumption within the available resource.

USB power usage:

 
Specification Current Voltage Power (max)
Low-power device 100 mA 5 V 0.50 W
Low-power SuperSpeed (USB 3.0) device 150 mA 5 V 0.75 W
High-power device 500 mA 5 V 2.5 W
High-power SuperSpeed (USB 3.0) device 900 mA 5 V 4.5 W
Battery Charging (BC) 1.2 1.5 A 5 V 7.5 W
Type-C 1.5 A 5 V 7.5 W
3 A 5 V 15 W
Power Delivery 2.0 Micro-USB 3 A 20 V 60 W
Power Delivery 2.0 Type-A/B/C 5 A 20 V 100 W

To recognize Battery Charging, a dedicated charging port places a resistance not exceeding 200 Ω across the D+ and D− terminals.

Dedicated charger mode:

A simple USB charger should incorporate 200 Ohm resistor between D+ and D- wires (sometimes shortcircuit D+ and D- together is enough). The device will then not attempt to transmit or receive data, but can draw up to 1.8A, if the supply can provide it.

USB voltage:

Supplied voltage by a host or a powered hub ports is between 4.75 V and 5.25 V. Maximum voltage drop for bus-powered hubs is 0.35 V from its host or hub to the hubs output port. All hubs and functions must be able to send configuration data at 4.4 V, but only low-power functions need to be working at this voltage. Normal operational voltage for functions is minimum 4.75 V.

USB cable shielding:

Shield should only be connected to Ground at the host. No device should connect Shield to Ground.

USB cable wires:

Shielded: Data: 28 AWG twisted Power: 28 AWG - 20 AWG non-twisted

Non-shielded:  Data: 28 AWG non-twisted Power: 28 AWG - 20 AWG non-twisted

Power Gauge Max length
28 0.81 m
26 1.31 m
24 2.08 m
22 3.33 m
20 5.00 m

usb type b pin assignment

  • Mini-USB connector of cell phones pinout
  • Micro-USB 2.0 connector pinout
  • Apple iPhone (1G, 3G, 3GS, 4, 4S) Dock cable connector pinout
  • Nokia Micro USB connector and cable pinout
  • Micro-USB mobile phone/smartphone cable connector pinout
  • Mini-USB charging cable pinout
  • HTC ExtUSB charger pinout
  • HTC ExtUSB pinout
  • Sony DSC-W310 USB cable pinout
  • USB header internal connector pinout
  • eSATA USB hybrid (EUHP) external connector pinout
  • A USB slide show presenter
  • DIY USB adapter GIMX
  • DIY USB oscilloscope
  • Make your own cheap USB MIDI Controller or Keyboard
  • USB Implementers Forum

USB diagram

COMMENTS

  1. 10 USB Pinout Explained- USB A, B, C(Male and Female)

    USB Type-A is used to make a connection with a PC while Type B is used to connect smaller peripherals. In other words, Type A is a downstream connector, while Type B is an upstream connector. The USB type A is rectangular, while type B has a square-like shape. Both of them have 4 pins.

  2. USB Type B Connectors & Pinouts | What is USB Type B ...

    USB Type B Pinout. The Type B connector has four pins in its older generations and nine pins in standard 3.0: Looking at the Type B connector on a cable, the pins are numbered 1-4, ascending, clockwise from top left in the central rectangular portion of all generations.

  3. USB Pinout | USB 2.0, USB 3.0, Type A, Type B, Mini-B, Micro ...

    USB Pinout for USB 2.0 Type A, Type B Mini-A, Mini-B, Micro-A, Micro-B, USB 3.0, USB Type C. Different USB Ports and connectors with pinouts.

  4. USB Pinout, Wiring and How It Works | ElectroSchematics

    Each USB device uses the standard A type connector to the USB host or Hub through A type receptacle. The other end of the cable has series B connector which is used to plug into the B type receptacle.

  5. USB 3.0 connector pinout diagram @ pinoutguide.com

    USB 3.0 combines USB 2.0 bus and new SuperSpeed bus with transfer rate up to 5.0 Gbit/s, which is about ten times faster than the USB 2.0 standard. USB 3.0 connectors are usually distinguished from their USB 2.0 counterparts by blue color-coding of the receptacles and plugs, and the initials SS.

  6. USB pinout diagram @ pinouts.ru - pinoutguide.com

    Nowdays there are 7 USB connectors known: Standard-A, Standard-B, Mini-A, Mini-B, Micro-A, Micro-AB, Micro-B, Type-C. Mini-USB pinout and Micro-USB pinout are slightly different: standard USB uses 4 pins while Mini-USB and Micro-USB uses 5 pins in connector.