# D-subminiature

The D-subminiature or D-sub is a common type of electrical connector. They are named for their characteristic D-shaped metal shield. When they were introduced, D-subs were among the smallest connectors used on computer systems.

## Description, nomenclature, and variants

| Normal density | Normal density | High density | High density | Double density | Double density |
| Name | Pin layout | Name | Pin layout | Name | Pin layout |
| DA-15 | 8–7 | DA-26 | 9–9–8 | DA-31 | 10–11–10 |
| DB-25 | 13–12 | DB-44 | 15–15–14 | DB-52 | 17–18–17 |
| DC-37 | 19–18 | DC-62 | 21–21–20 | DC-79 | 26–27–26 |
| DD-50 | 17–16–17 | DD-78 | 20–19–20–19 | DD-100 | 26–25–24–25 |
| DE-9 | 5–4 | DE-15 | 5–5–5 | DE-19 | 6–7–6 |
| 19-pin | 10–9 | 104-pin | 21–21–21–21–20 | | |
| 23-pin | 12–11 |
| 1 2 non-standard shell size Note that the high density and double density classification here is the reverse of floppy disk nomenclature. Here, high density is intermediate, between nominal and double density. ||||||
A D-sub contains two or more parallel rows of pins or sockets usually surrounded by a D-shaped metal shield, or shell, that provides mechanical support, ensures correct orientation, and may screen against electromagnetic interference. Calling that shield a shell (or D-shell) can be ambiguous, as the term shell is also short for the cable shell, or backshell. D-sub connectors have gender: parts with pin contacts are called male connectors or plugs, while those with socket contacts are called female connectors or sockets. The socket's shield fits tightly inside the plug's shield. Panel-mounted connectors usually have #4-40 UNC (as designated with the Unified Thread Standard) jackscrews that accept screws on the cable end connector cover that are used for locking the connectors together and offering mechanical strain relief, and can be tightened with a 3/16" (or 5mm) hex socket.
The hexagonal standoffs (4-40 bolts) at both sides of each connector have a threaded stud fastening the connectors to the metal panel. They also have threaded sockets to receive jackscrews on the cable shell, holding the plug and socket together.
Occasionally the nuts may be found on a cable end connector if it is expected to connect to another cable end (see the male DE-9 pictured). When screened cables are used, the shields are connected to the overall screens of the cables. This creates an electrically continuous screen covering the whole cable and connector system.
The D-sub series of connectors was introduced by Cannon in 1952. Cannon's part-numbering system uses D as the prefix for the whole series, followed by one of A, B, C, D, or E denoting the shell size, followed by the number of pins or sockets, followed by either P (plug or pins) or S (socket) denoting the gender of the part. Each shell size usually (see below for exceptions) corresponds to a certain number of pins or sockets: A with 15, B with 25, C with 37, D with 50, and E with 9. For example, DB-25 denotes a D-sub with a 25-position shell size and a 25-position contact configuration. The contacts in each row of these connectors are spaced 326/3000 of an inch apart, or approximately 0.1087 inches (2.76 mm), and the rows are spaced 0.112 inches (2.84 mm) apart; the pins in the two rows are offset by half the distance between adjacent contacts in a row. This spacing is called normal density. The suffixes M and F (for male and female) are sometimes used instead of the original P and S for plug and socket.

### Variants

Later D-sub connectors added extra pins to the original shell sizes, and their names follow the same pattern. For example, the DE-15, usually found in VGA cables, has 15 pins in three rows, all surrounded by an E size shell. The pins are spaced at 0.090 inches (2.3 mm) horizontally and 0.078 inches (2.0 mm) vertically, in what is called high density. The other connectors with the same pin spacing are the DA-26, DB-44, DC-62, DD-78 and 104-pin. They all have three rows of pins, except the DD-78 which has four, and the 104-pin which has five rows. The double density series of D-sub connectors features even denser arrangements and consists of the DE-19, DA-31, DB-52, DC-79, and DD-100. These each have three rows of pins, except the DD-100, which has four.

#### Common misnomers

The above naming pattern was not always followed. Because personal computers first used DB-25 connectors for their serial and parallel ports, when the PC serial port began to use 9-pin connectors, they were often labeled as DB-9 instead of DE-9 connectors, due to an ignorance of the fact that B represented a shell size. It is now common to see DE-9 connectors sold as DB-9 connectors. DB-9 nearly always refers to a 9-pin connector with an E-size shell. The non-standard 23-pin D-sub connectors for external floppy drives and video output on most of the Amiga computers are usually labeled DB-23, even though their shell size is two pins smaller than ordinary DB sockets. Several computers also used a non-standard 19-pin D-sub connector, sometimes called DB-19, including Macintosh (external floppy drive), Atari ST (external hard drive), and NeXT (Megapixel Display monitor and laser printer).
Reflecting the same confusion of the letters DB with just D as mentioned above, high-density connectors are also often called DB-15HD (or even DB-15 or HD-15), DB-26HD (HD-26), DB-44HD, DB-62HD, and DB-78HD connectors, respectively, where HD stands for high density.
Cannon also produced combo D-subs with larger contacts in place of some of the normal contacts, for use for high-current, high-voltage, or co-axial inserts. The DB13W3 variant was commonly used for high-performance video connections; this variant provided 10 regular (#20) pins plus three coaxial contacts for the red, green, and blue video signals. Combo D-subs are currently manufactured in a broad range of configurations by other companies. Some variants have current ratings up to 40 A; others are waterproof and meet IP67 standards.
A further family of connectors of similar appearance to the D-sub family uses names such as HD-50 and HD-68, and has a D-shaped shell about half the width of a DB-25. They are common in SCSI attachments.
The original D-sub connectors are now defined by an international standard, IEC 60807-3 / DIN 41652. The United States military also maintains another specification for D-subminiature connectors, the MIL-DTL-24308 standard.

### Micro-D and Nano-D

Smaller connectors have been derived from the D-sub including the microminiature D (micro-D) and nanominiature D (nano-D) which are trademarks of ITT Cannon. Micro-D is about half the length of a D-sub and Nano-D is about half the length of Micro-D. Their primary applications are in military and space-grade technology such as SpaceWire networks. The MIL-SPEC for Micro-D is MIL-DTL-83513 and for Nano-D is MIL-DTL-32139.

## Typical applications
### Communications ports

The widest application of D-subs is for RS-232 serial communications, though the standard did not make this connector mandatory. RS-232 devices originally used the DB-25, but for many applications the less common signals were omitted, allowing a DE-9 to be used. The standard specifies a male connector for terminal equipment and a female connector for modems, but many variations exist. IBM PC-compatible computers tend to have male connectors at the device and female connectors at the modems. Early Apple Macintosh models used DE-9 connectors for RS-422 multi-drop serial interfaces (which can operate as RS-232). Later Macintosh models use 8-pin miniature DIN connectors instead.
On PCs, 25-pin and (beginning with the IBM PC/AT) 9-pin plugs were used for the RS-232 serial ports; 25-pin sockets were used for parallel ports (instead of the Centronics port found on the printer itself, which was inconveniently large for direct placement on the expansion cards).
Many uninterruptible power supply units have a DE-9F connector on them in order to signal to the attached computer via an RS-232 interface. Often these do not send data serially to the computer but instead use the handshaking control lines to indicate low battery, power failure, or other conditions. Such usage is not standardized between manufacturers and may require special cables.

### Network ports

DE-9 connectors were used for some Token Ring networks as well as other computer networks.
Originally in the 1980s Ethernet network interface cards or devices were connected using Attachment Unit Interface (AUI) cables to Medium Attachment Units that then connected to 10BASE5 and later 10BASE2 or 10BASE-T network cabling. The AUI cables used DA-15 connectors albeit with a sliding latch to lock the connectors together instead of the usual hex studs with threaded holes. The sliding latch was intended to be quicker to engage and disengage and to work in places where jackscrews could not be used for reasons of component shape.
In vehicles, DE-9 connectors are commonly used in Controller Area Networks (CAN): female connectors are on the bus while male connectors are on devices.

### Computer video output
#### DE-9 connectors

A female 9-pin connector on an IBM compatible personal computer may be a digital RGBI video display output such as MDA, Hercules, CGA, or EGA (rarely VGA or others). Even though these all use the same DE-9 connector, the displays cannot all be interchanged and monitors or video interfaces may be damaged if connected to an incompatible device using the same connector.
9-pin connector pinouts :
| Adaptor | MDA | CGA | EGA | VGA (early DE-9 variant) |
| Pin 1 | Ground | Ground | Ground | + Analog red |
| Pin 2 | Ground | Ground | + Secondary red (intensity) | + Analog green |
| Pin 3 | | + Red | + Red | + Analog blue |
| Pin 4 | | + Green | + Green | − Horizontal sync. (31.5 kHz) |
| Pin 5 | | + Blue | + Blue | ± Vertical sync. (70 / 60 Hz) |
| Pin 6 | + Intensity | + Intensity | + Secondary green (intensity) | Red ground |
| Pin 7 | + Video | Reserved | + Secondary blue (intensity) | Green ground |
| Pin 8 | + Horizontal sync. (18.43 kHz) | + Horizontal sync. (15.7 kHz) | + Horizontal sync. (15.7 / 21.85 kHz) | Blue ground |
| Pin 9 | − Vertical sync. (50 Hz) | + Vertical sync. (60 Hz) | ± Vertical sync. (60 Hz) | Combined sync ground |

#### DE-15 connectors

Later analog video (VGA and later) adapters generally replaced DE-9 connectors with DE-15 high-density sockets (though some early VGA devices still used DE-9 connectors). DE-15 connectors have the same shell size as DE-9 connectors (see above). The additional pins of the DE-15 VGA connector were used to add increasingly sophisticated monitor-sensing plug and play functionality.

#### DA-15 connectors

Many Apple Macintosh models, beginning with the Macintosh II, used DA-15 sockets for analog RGB video out. These connectors had the same number of pins as the above DE-15 connectors, but used the more traditional pin size, pin spacing, and size shell of the DA-15 standard connector. "VGA adapters" (i.e. DA-15 to DE-15 dongles) were available but sometimes monitor-specific, or they needed DIP switch configuration, as the Macintosh's monitor sense pins in particular were not identical with a VGA connector's DDC.
The earlier Apple IIGS used the same physical DA-15 connector for the same purpose but with an incompatible pinout. A digital (and thus also incompatible) RGB adapter for the Apple IIe also used a DA-15F. The Apple IIc used a DA-15F for an auxiliary video port which was not RGB but provided the necessary signals to derive RGB.

### Game controller ports
#### DE-9 connectors

The 1977 Atari Video Computer System game console uses modified DE-9 connectors (male on the system, female on the cable) for its game controller connectors. The Atari joystick ports have bodies entirely of molded plastic without the metal shield, and they omit the pair of fastening screws. In the years following, various video game consoles and home computers adopted the same connector for their own game ports, though they were not all interoperable. The most common wiring supported five connections for discrete signals (five switches, for up, down, left, and right movement, and a fire button), plus one pair of 100 kΩ potentiometers, or paddles, for analog input. Some computers supported additional buttons, and on some computers additional devices, such as a computer mouse, a light pen, or a graphics tablet were also supported via the game port. Unlike the basic one-button digital joysticks and the basic paddles, such devices were not typically interchangeable between different systems.
Systems using the DE-9 connector for their game port include the TI-99/4A, Atari 8-bit computers, Atari ST, Atari 7800, VIC-20, Commodore 64, Commodore 128, Amiga, Amstrad CPC (which employs daisy-chaining when connecting two Amstrad-specific joysticks), MSX, X68000, FM Towns, ColecoVision, SG-1000, Master System, Mega Drive/Genesis, and the 3DO Interactive Multiplayer.
The ZX Spectrum lacks a built-in joystick connector of any kind but aftermarket interfaces provided the ability to connect DE-9 joysticks. NEC's home computers (e.g. PC-88, PC-98) also used DE-9 connectors for game controllers, depending on the sound card used.
The Fairchild Channel F System II and Bally Astrocade use DE-9 connectors for their detachable joystick as well. Both are incompatible with the Atari connector.
Many Apple II computers also use DE-9 connectors for joysticks, but they have a female port on the computer and a male on the controller, use analog rather than digital sticks, and the pinout is completely unlike that used on the aforementioned systems. DE-9 connectors were not used for game ports on the Macintosh, Apple III, IBM PC compatibles, or most game consoles outside the aforementioned examples. Sega switched to proprietary controller ports for the Saturn and Dreamcast.

#### DA-15 connectors

DA-15S connectors are used for PC joystick connectors, where each DA-15 connector supports two joysticks each with two analog axes and two buttons. In other words, one DA-15S game adapter connector has 4 analog potentiometer inputs and 4 digital switch inputs. This interface is strictly input-only, though it does provide +5 V DC power. Some joysticks with more than two axes or more than two buttons use the signals designated for both joysticks. Conversely, Y-adapter cables are available that allow two separate joysticks to be connected to a single DA-15 game adapter port; if a joystick connected to one of these Y-adapters has more than two axes or buttons, only the first two of each will work.
The IBM DA-15 PC game connector has been modified to add a (usually MPU-401 compatible) MIDI interface, and this is often implemented in the game connectors on third-party sound cards, for example, the Sound Blaster line from Creative Labs. The standard straight game adapter connector (introduced by IBM) has three ground pins and four +5 V power pins, and the MIDI adaptation replaces one of the grounds and one of the +5 V pins, both on the bottom row of pins, with MIDI In and MIDI Out signal pins. (There is no MIDI Thru provided.) Creative Labs introduced this adaptation.
The Neo Geo AES game console also used the DA-15 connector, however, the pins are wired differently and it is therefore not compatible with the regular DA-15 PC game controllers.
The Nintendo Famicom's controllers were hardwired but also included a DA-15 expansion port for additional controllers. Many clones of the hardware used a DA-15 which implemented a subset of the Famicom expansion port and were therefore compatible with some Famicom accessories. Later clones switched to the cheaper DE-9 port.
The Atari 5200 also used a DA-15 instead of the DE-9 of its predecessor to facilitate the matrix for the keypad. The Atari Falcon, Atari STe and Atari Jaguar used a DE-15.

### Other

25-pin sockets on Macintosh computers are typically single-ended SCSI connectors, combining all signal returns into one contact (again in contrast to the Centronics C50 connector typically found on the peripheral, supplying a separate return contact for each signal), while older Sun hardware uses DD-50 connectors for Fast-SCSI equipment. As SCSI variants from Ultra2 onwards used differential signaling, the Macintosh DB-25 SCSI interface became obsolete.
D-subminiature connectors are often used in industrial products, the DA-15 version being commonly used on rotary and linear encoders.
The early Macintosh and late Apple II computers used a non-standard 19-pin D-sub for connecting external floppy disk drives. Atari also used this connector on their 16-bit computer range for attaching hard disk drives and the Atari laser printer, where it was known as both the ACSI (Atari Computer System Interface) port and the DMA bus port. The Commodore Amiga used an equally non-standard 23-pin version for both its video output (male) and its port for daisy-chaining up to three extra external floppy disk drives (female).
In professional audio, several connections use DB-25 connectors:
* TASCAM and many others are using a connection over DB-25 connectors, which has been standardized into AES59. This connection transports AES3 digital audio or analog audio using the same pinout.
* TASCAM initially used their TDIF connection over DB-25 connectors for their multitrack recording audio equipment. The transported signals are not AES3 compatible.
* Roland used DB-25 connectors for their multi-track recording audio equipment (R-BUS). A few patch panels have been made which have the DB-25 connectors on the back with phone jacks (or even TRS phone connectors) on the front, however, these are normally wired for TASCAM, which is more common outside of broadcasting.
In broadcast and professional video, parallel digital is a digital video interface that uses DB-25 connectors, per the SMPTE 274M specification adopted in the late 1990s. The more common SMPTE 259M serial digital interface (SDI) uses BNC connectors for digital video signal transfer.
DC-37 connectors are commonly used in hospital facilities as an interface between hospital beds and nurse call systems, allowing for the connection and signaling of Nurse Call, Bed Exit, and Cord out including TV entertainment and lighting controls. The comparatively rare DC-37 connector was also found as the so-called "GeekPort" electronics experimentation breakout connector on the even rarer BeBox computer.
DB-25 connectors are commonly used to carry analog signals for beam displacement and color control to laser projectors, as specified in the ISP-DB25 protocol published by the International Laser Display Association.

## Wire-contact attachment types

There are many different methods used to attach wires to the contacts in D-sub connectors.
* Solder-bucket (or solder-cup) contacts have a cavity into which the stripped wire is inserted and hand-soldered.
* Insulation displacement contacts (IDCs) allow a ribbon cable to be forced onto sharp tines on the back of the contacts; this action pierces the insulation of all the wires simultaneously. This is a very quick means of assembly whether done by hand or machine.
* Crimp contacts are assembled by inserting a stripped wire end into a cavity in the rear of the contact, then crushing the cavity using a crimp tool, causing the cavity to grip the wire tightly at many points. The crimped contact is then inserted into the connector where it locks into place. Individual crimped pins can be removed later by inserting a special tool into the rear of the connector.
* PCB pins are soldered directly to a printed circuit board and not to a wire. Traditionally through hole plated (THP) board style pins were used (print) but increasingly gull-wing surface mount (SMD) connections are used, although the latter frequently exhibit solder pad contact problems when exposed to mechanical stress. These connectors are frequently mounted at a right angle to the PCB, allowing a cable to be plugged into the edge of the PCB assembly.
* Wire wrap connections are made by wrapping solid wire around a square post with a wire wrap tool. This type of connection is often used in developing prototypes.
The wire wrap and IDC connections styles had to contend with incompatible pin spacing to the 0.05 in ribbon cable or 0.1 in proto board grid, especially for larger pin counts.