Cpu is the main circuit board of a personal computer.

If you’re just learning about the world of computers and electronics, the terminology used to refer to different parts can be confusing. One component term you may have encountered is “CPU,” which stands for “central processing unit.”

Contents

  • What makes a CPU a CPU?
  • What does a CPU actually do?
  • Cores, clocks, and costs
  • How important is the CPU?

CPUs reside in almost all devices you own, whether it’s a smartwatch, a computer, or a thermostat. They are responsible for processing and executing instructions and act as the brains of your devices. Here, we explain how CPUs interact with other parts of your devices and what makes them so integral to the computing process.

What makes a CPU a CPU?

The CPU is the core component that defines a computing device, and while it is of critical importance, the CPU can only function alongside other hardware. The silicon chip sits in a special socket located on the main circuit board (motherboard or mainboard) inside the device. It is separate from the memory, which is where information is temporarily stored. It is also separate from the graphics card or graphics chip, which renders the video and 3D graphics that are displayed on your screen.

CPUs are built by placing billions of microscopic transistors onto a single computer chip. Those transistors allow it to make the calculations it needs to run programs that are stored on your system’s memory. They’re effectively minute gates that switch on or off, thereby conveying the ones or zeros that translate into everything you do with the device, be it watching videos or writing an email.

One of the most common advancements of CPU technology is in making those transistors smaller and smaller. That’s resulted in the improvement to CPU speed over the decades, often referred to as Moore’s Law.

In the context of modern devices, a desktop or laptop has a dedicated CPU that performs many processing functions for the system. Mobile devices and some tablets instead utilize a System on Chip (SoC) which is a chip that packages the CPU alongside other components. Intel and AMD both offer CPUs with graphics chips and memory stored on them, too, meaning they can do more than just standard CPU functions.

What does a CPU actually do?

Cpu is the main circuit board of a personal computer.

Dell Precision T3600 System Motherboard, used in professional CAD Workstations. Manufactured in 2012

Similarly, the term mainboard describes a device with a single board and no additional expansions or capability, such as controlling boards in laser printers, television sets, washing machines, mobile phones, and other embedded systems with limited expansion abilities.

Cpu is the main circuit board of a personal computer.

Motherboard for a personal desktop computer; showing the typical components and interfaces which are found on a motherboard. This model follows the Baby AT (form factor), used in many desktop PCs.

 

Mainboard of a NeXTcube computer (1990) with microprocessor Motorola 68040 operated at 25 MHz and a digital signal processor Motorola 56001 at 25 MHz, which was directly accessible via a connector on the back of the casing.

Prior to the invention of the microprocessor, the digital computer consisted of multiple printed circuit boards in a card-cage case with components connected by a backplane, a set of interconnected sockets. In very old designs, copper wires were the discrete connections between card connector pins, but printed circuit boards soon became the standard practice. The central processing unit (CPU), memory, and peripherals were housed on individually printed circuit boards, which were plugged into the backplane. The ubiquitous S-100 bus of the 1970s is an example of this type of backplane system.

The most popular computers of the 1980s such as the Apple II and IBM PC had published schematic diagrams and other documentation which permitted rapid reverse-engineering and third-party replacement motherboards. Usually intended for building new computers compatible with the exemplars, many motherboards offered additional performance or other features and were used to upgrade the manufacturer's original equipment.

During the late 1980s and early 1990s, it became economical to move an increasing number of peripheral functions onto the motherboard. In the late 1980s, personal computer motherboards began to include single ICs (also called Super I/O chips) capable of supporting a set of low-speed peripherals: PS/2 keyboard and mouse, floppy disk drive, serial ports, and parallel ports. By the late 1990s, many personal computer motherboards included consumer-grade embedded audio, video, storage, and networking functions without the need for any expansion cards at all; higher-end systems for 3D gaming and computer graphics typically retained only the graphics card as a separate component. Business PCs, workstations, and servers were more likely to need expansion cards, either for more robust functions, or for higher speeds; those systems often had fewer embedded components.

Laptop and notebook computers that were developed in the 1990s integrated the most common peripherals. This even included motherboards with no upgradeable components, a trend that would continue as smaller systems were introduced after the turn of the century (like the tablet computer and the netbook). Memory, processors, network controllers, power source, and storage would be integrated into some systems.

 

The Octek Jaguar V motherboard from 1993.[2] This board has few onboard peripherals, as evidenced by the 6 slots provided for ISA cards and the lack of other built-in external interface connectors. Note the large AT keyboard connector at the back right is its only peripheral interface.

 

The motherboard of a Samsung Galaxy SII; almost all functions of the device are integrated into a very small board

A motherboard provides the electrical connections by which the other components of the system communicate. Unlike a backplane, it also contains the central processing unit and hosts other subsystems and devices.

A typical desktop computer has its microprocessor, main memory, and other essential components connected to the motherboard. Other components such as external storage, controllers for video display and sound, and peripheral devices may be attached to the motherboard as plug-in cards or via cables; in modern microcomputers, it is increasingly common to integrate some of these peripherals into the motherboard itself.

An important component of a motherboard is the microprocessor's supporting chipset, which provides the supporting interfaces between the CPU and the various buses and external components. This chipset determines, to an extent, the features and capabilities of the motherboard.

Modern motherboards include:

  • CPU sockets (or CPU slots) in which one or more microprocessors may be installed. In the case of CPUs in ball grid array packages, such as the VIA Nano and the Goldmont Plus, the CPU is directly soldered to the motherboard.[3]
  • Memory slots into which the system's main memory is to be installed, typically in the form of DIMM modules containing DRAM chips can be DDR3, DDR4, DDR5, or onboard LPDDRx.
  • The chipset which forms an interface between the CPU, main memory, and peripheral buses
  • Non-volatile memory chips (usually Flash ROM in modern motherboards) containing the system's firmware or BIOS
  • The clock generator which produces the system clock signal to synchronize the various components
  • Slots for expansion cards (the interface to the system via the buses supported by the chipset)
  • Power connectors, which receive electrical power from the computer power supply and distribute it to the CPU, chipset, main memory, and expansion cards. As of 2007[update], some graphics cards (e.g. GeForce 8 and Radeon R600) require more power than the motherboard can provide, and thus dedicated connectors have been introduced to attach them directly to the power supply[4]
  • Connectors for hard disk drives, optical disc drives, or solid-state drives, typically SATA and NVMe now[when?].

Additionally, nearly all motherboards include logic and connectors to support commonly used input devices, such as USB for mouse devices and keyboards. Early personal computers such as the Apple II or IBM PC included only this minimal peripheral support on the motherboard. Occasionally video interface hardware was also integrated into the motherboard; for example, on the Apple II and rarely on IBM-compatible computers such as the IBM PC Jr. Additional peripherals such as disk controllers and serial ports were provided as expansion cards.

Given the high thermal design power of high-speed computer CPUs and components, modern motherboards nearly always include heat sinks and mounting points for fans to dissipate excess heat.

Form factor

Motherboards are produced in a variety of sizes and shapes called form factors, some of which are specific to individual computer manufacturers. However, the motherboards used in IBM-compatible systems are designed to fit various case sizes. As of 2005[update], most desktop computer motherboards use the ATX standard form factor — even those found in Macintosh and Sun computers, which have not been built from commodity components. A case's motherboard and power supply unit (PSU) form factor must all match, though some smaller form factor motherboards of the same family will fit larger cases. For example, an ATX case will usually accommodate a microATX motherboard. Laptop computers generally use highly integrated, miniaturized, and customized motherboards. This is one of the reasons that laptop computers are difficult to upgrade and expensive to repair. Often the failure of one laptop component requires the replacement of the entire motherboard, which is usually more expensive than a desktop motherboard

CPU sockets

A CPU socket (central processing unit) or slot is an electrical component that attaches to a Printed Circuit Board (PCB) and is designed to house a CPU (also called a microprocessor). It is a special type of integrated circuit socket designed for very high pin counts. A CPU socket provides many functions, including a physical structure to support the CPU, support for a heat sink, facilitating replacement (as well as reducing cost), and most importantly, forming an electrical interface both with the CPU and the PCB. CPU sockets on the motherboard can most often be found in most desktop and server computers (laptops typically use surface mount CPUs), particularly those based on the Intel x86 architecture. A CPU socket type and motherboard chipset must support the CPU series and speed.

Integrated peripherals

 

Block diagram of an early 2000s motherboard, which supports many on-board peripheral functions as well as several expansion slots

With the steadily declining costs and size of integrated circuits, it is now possible to include support for many peripherals on the motherboard. By combining many functions on one PCB, the physical size and total cost of the system may be reduced; highly integrated motherboards are thus especially popular in small form factor and budget computers.

  • Disk controllers for SATA drives, and historical PATA drives.
  • Historical floppy-disk controller
  • Integrated graphics controller supporting 2D and 3D graphics, with VGA, DVI, HDMI, DisplayPort and TV output
  • integrated sound card supporting 8-channel (7.1) audio and S/PDIF output
  • Ethernet network controller for connection to a LAN and to receive Internet
  • USB controller
  • Wireless network interface controller
  • Bluetooth controller
  • Temperature, voltage, and fan-speed sensors that allow software to monitor the health of computer components.

Peripheral card slots

A typical motherboard will have a different number of connections depending on its standard and form factor.

A standard, modern ATX motherboard will typically have two or three PCI-Express x16 connection for a graphics card, one or two legacy PCI slots for various expansion cards, and one or two PCI-E x1 (which has superseded PCI). A standard EATX motherboard will have two to four PCI-E x16 connection for graphics cards, and a varying number of PCI and PCI-E x1 slots. It can sometimes also have a PCI-E x4 slot (will vary between brands and models).

Some motherboards have two or more PCI-E x16 slots, to allow more than 2 monitors without special hardware, or use a special graphics technology called SLI (for Nvidia) and Crossfire (for AMD). These allow 2 to 4 graphics cards to be linked together, to allow better performance in intensive graphical computing tasks, such as gaming, video editing, etc.

In newer motherboards, the M.2 slots are for SSD and/or Wireless network interface controller.

Temperature and reliability

 

A motherboard of a Vaio E series laptop (right)

 

A microATX motherboard with some faulty capacitors

Motherboards are generally air cooled with heat sinks often mounted on larger chips in modern motherboards.[5] Insufficient or improper cooling can cause damage to the internal components of the computer, or cause it to crash. Passive cooling, or a single fan mounted on the power supply, was sufficient for many desktop computer CPU's until the late 1990s; since then, most have required CPU fans mounted on heat sinks, due to rising clock speeds and power consumption. Most motherboards have connectors for additional computer fans and integrated temperature sensors to detect motherboard and CPU temperatures and controllable fan connectors which the BIOS or operating system can use to regulate fan speed.[6] Alternatively computers can use a water cooling system instead of many fans.

Some small form factor computers and home theater PCs designed for quiet and energy-efficient operation boast fan-less designs. This typically requires the use of a low-power CPU, as well as a careful layout of the motherboard and other components to allow for heat sink placement.

A 2003 study found that some spurious computer crashes and general reliability issues, ranging from screen image distortions to I/O read/write errors, can be attributed not to software or peripheral hardware but to aging capacitors on PC motherboards.[7] Ultimately this was shown to be the result of a faulty electrolyte formulation,[8] an issue termed capacitor plague.

Modern motherboards use electrolytic capacitors to filter the DC power distributed around the board. These capacitors age at a temperature-dependent rate, as their water based electrolytes slowly evaporate. This can lead to loss of capacitance and subsequent motherboard malfunctions due to voltage instabilities. While most capacitors are rated for 2000 hours of operation at 105 °C (221 °F),[9] their expected design life roughly doubles for every 10 °C (18 °F) below this. At 65 °C (149 °F) a lifetime of 3 to 4 years can be expected. However, many manufacturers deliver substandard capacitors,[10] which significantly reduce life expectancy. Inadequate case cooling and elevated temperatures around the CPU socket exacerbate this problem. With top blowers, the motherboard components can be kept under 95 °C (203 °F), effectively doubling the motherboard lifetime.

Mid-range and high-end motherboards, on the other hand, use solid capacitors exclusively. For every 10 °C less, their average lifespan is multiplied approximately by three, resulting in a 6-times higher lifetime expectancy at 65 °C (149 °F).[11] These capacitors may be rated for 5000, 10000 or 12000 hours of operation at 105 °C (221 °F), extending the projected lifetime in comparison with standard solid capacitors.

In Desktop PCs and notebook computers, the motherboard cooling and monitoring solutions are usually based on Super I/O or Embedded Controller.

Motherboards contain a ROM (and later EPROM, EEPROM, NOR flash) to initialize hardware devices and load an operating system from a peripheral device. Microcomputers such as the Apple II and IBM PC used ROM chips mounted in sockets on the motherboard. At power-up, the central processor unit would load its program counter with the address of the Boot ROM and start executing instructions from the Boot ROM. These instructions initialized and tested the system hardware, displays system information on the screen, performed RAM checks, and then loaded an operating system from a peripheral device. If none was available, then the computer would perform tasks from other ROM stores or display an error message, depending on the model and design of the computer. For example, both the Apple II and the original IBM PC had Cassette BASIC (ROM BASIC) and would start that if no operating system could be loaded from the floppy disk or hard disk.

Most modern motherboard designs use a BIOS, stored in an EEPROM or NOR flash chip soldered to or socketed on the motherboard, to boot an operating system. When the computer is powered on, the BIOS firmware tests and configures memory, circuitry, and peripherals. This Power-On Self Test (POST) may include testing some of the following things:

  • Video card
  • Expansion cards inserted into slots, such as conventional PCI and PCI Express
  • Historical floppy drive
  • Temperatures, voltages, and fan speeds for hardware monitoring
  • CMOS memory used to store BIOS configuration
  • Keyboard and Mouse
  • Sound card
  • Network adapter
  • Optical drives: CD-ROM or DVD-ROM
  • Hard disk drive and solid state drive
  • Security devices, such as a fingerprint reader
  • USB devices, such as a USB mass storage device

Many motherboards now use a successor to BIOS called UEFI. It became popular after Microsoft began requiring it for a system to be certified to run Windows 8.[12][13]

  • Peripheral Component Interconnect (PCI)
    • PCI-X
    • PCI Express (PCIe)
  • Accelerated Graphics Port (AGP)
  • M.2
  • U.2
  • Computer case screws
  • CMOS battery
  • Expansion card
  • List of computer hardware manufacturers
  • Basic Input/Output System (BIOS)
  • Unified Extensible Firmware Interface (UEFI)
  • Overclocking
  • Single-board computer
  • Switched-mode power supply applications
  • Symmetric multiprocessing
  • Chip creep

  1. ^ Miller, Paul (July 8, 2006). "Apple sneaks new logic board into whining MacBook Pros". Engadget. Archived from the original on October 4, 2013. Retrieved October 2, 2013.
  2. ^ "Golden Oldies: 1993 mainboards". Archived from the original on May 13, 2007. Retrieved June 27, 2007.
  3. ^ "CPU Socket Types Explained: From Socket 5 To BGA [MakeUseOf Explains]". January 25, 2013. Archived from the original on April 7, 2015. Retrieved April 12, 2015.
  4. ^ W1zzard (April 6, 2005). "Pinout of the PCI-Express Power Connector". techPowerUp. Archived from the original on October 4, 2013. Retrieved October 2, 2013.
  5. ^ Karbo, Michael. "The CPU and the motherboard". Karbos Guide. Archived from the original on April 27, 2015. Retrieved June 21, 2015.
  6. ^ "Temperatures". Intel® Visual BIOS Wiki. Archived from the original on June 21, 2015. Retrieved June 21, 2015.
  7. ^ c't Magazine, vol. 21, pp. 216-221. 2003.
  8. ^ Chiu, Yu-Tzu; Moore, Samuel K. (January 31, 2003). "Faults & Failures: Leaking Capacitors Muck up Motherboards". IEEE Spectrum. Archived from the original on February 19, 2003. Retrieved October 2, 2013.
  9. ^ "Capacitor lifetime formula". Low-esr.com. Archived from the original on September 15, 2013. Retrieved October 2, 2013.
  10. ^ Carey Holzman The healthy PC: preventive care and home remedies for your computer McGraw-Hill Professional, 2003 ISBN 0-07-222923-3 page 174
  11. ^ "-- GIGABYTE, --Geeks Column of the Week - All Solid Capacitor". www.gigabyte.com. Archived from the original on March 27, 2017. Retrieved May 6, 2017.
  12. ^ "Windows Hardware Certification Requirements for Client and Server Systems". Microsoft. January 2013. System.Fundamentals.Firmware.CS.UEFISecureBoot.ConnectedStandby ... Platforms shall be UEFI Class Three (see UEFI Industry Group, Evaluating UEFI using Commercially Available Platforms and Solutions, version 0.3, for a definition) with no Compatibility Support Module installed or installable. BIOS emulation and legacy PC/AT boot must be disabled.
  13. ^ "Microsoft: All You Need to Know About Windows 8 on ARM". PC Magazine. Retrieved September 30, 2013.

  • The Making of a Motherboard: ECS Factory Tour
  • The Making of a Motherboard: Gigabyte Factory Tour
  • Front Panel I/O Connectivity Design Guide - v1.3 (pdf file)

Retrieved from "https://en.wikipedia.org/w/index.php?title=Motherboard&oldid=1096093094"


Page 2

The PS/2 port is a 6-pin mini-DIN connector used for connecting keyboards and mice to a PC compatible computer system. Its name comes from the IBM Personal System/2 series of personal computers, with which it was introduced in 1987. The PS/2 mouse connector generally replaced the older DE-9 RS-232 "serial mouse" connector, while the PS/2 keyboard connector replaced the larger 5-pin/180° DIN connector used in the IBM PC/AT design. The PS/2 keyboard port is electrically and logically identical to the IBM AT keyboard port, differing only in the type of electrical connector used. The PS/2 platform introduced a second port with the same design as the keyboard port for use to connect a mouse; thus the PS/2-style keyboard and mouse interfaces are electrically similar and employ the same communication protocol. However, unlike the otherwise similar Apple Desktop Bus connector used by Apple, a given system's keyboard and mouse port may not be interchangeable since the two devices use different sets of commands and the device drivers generally are hard-coded to communicate with each device at the address of the port that is conventionally assigned to that device. (That is, keyboard drivers are written to use the first port, and mouse drivers are written to use the second port.[1])

Cpu is the main circuit board of a personal computer.
PS/2 port

The color-coded PS/2 connection ports (purple for keyboard and green for mouse)

Type Keyboard and computer mouse data connectorProduction historyDesigner IBMDesigned 1987; 35 years ago (1987)Superseded DIN connector, DE-9 connector and Mini-DIN-9 InPortSuperseded by USB (USB human interface device class)General specificationsHot pluggable NoExternal YesCable 4 wires plus shieldPins 6Connector Mini-DIN-6ElectricalSignal 5 V DCMax. voltage 5.0±0.5 VMax. current 275 mADataData signal Serial data at 10.0–16.7 kHz with 1 start bit, 8 data bits (LSB first), 1 parity bit (odd), 1 stop bit, [1 ack bit (if host-to-device)]Bitrate 7–12 kbit/sMax. devices 1 or 2[a]Protocol SerialPinout

Cpu is the main circuit board of a personal computer.

Female connector from the frontPin 1 +DATA DataPin 2 Not connected[b]Pin 3 GND GroundPin 4 Vcc +5 V DC at 275 mAPin 5 +CLK ClockPin 6 Not connected[c]

  1. ^ Keyboard and mouse ports may be combined into a single port which can be used to connect both by splitter cable.
  2. ^ Sometimes, mouse Data for splitter cable.
  3. ^ Sometimes, mouse Clock for splitter cable.

Each port implements a bidirectional synchronous serial channel.[2] The channel is slightly asymmetrical: it favors transmission from the input device to the computer, which is the majority case. The bidirectional IBM AT and PS/2 keyboard interface is a development of the unidirectional IBM PC keyboard interface, using the same signal lines but adding capability to send data back to the keyboard from the computer; this explains the asymmetry.[3]

The interface has two main signal lines, Data and Clock. These are single-ended signals driven by open-collector drivers at each end. Normally, the transmission is from the device to the host. To transmit a byte, the device simply outputs a serial frame of data (including 8 bits of data and a parity bit) on the Data line serially as it toggles the Clock line once for each bit. The host controls the direction of communication using the Clock line; when the host pulls it low, communication from the attached device is inhibited. The host can interrupt the device by pulling Clock low while the device is transmitting; the device can detect this by Clock staying low when the device releases it to go high as the device-generated clock signal toggles. When the host pulls Clock low, the device must immediately stop transmitting and release Clock and Data to both float high. (So far, all of this is the same as the unidirectional communication protocol of the IBM PC keyboard port, though the serial frame formats differ.) The host can use this state of the interface simply to inhibit the device from transmitting when the host is not ready to receive. (For the IBM PC keyboard port, this was the only normal use of signalling from the computer to the keyboard. The keyboard could not be commanded to retransmit a keyboard scan code after it had been sent, since there was no reverse data channel to carry commands to the keyboard, so the only way to avoid losing scan codes when the computer was too busy to receive them was to inhibit the keyboard from sending them until the computer was ready. This mode of operation is still an option on the IBM AT and PS/2 keyboard port.)[4]

To send a byte of data back to the device, the host pulls Clock low, waits briefly, pulls Data low and releases the Clock line again. The device then generates a Clock signal while the host outputs a frame of bits on the Data line, one bit per Clock pulse, similar to what the attached device would do to transmit in the other direction. However, while device-to-host transmission reads bits on falling Clock edges, transmission in the other direction reads bits on rising edges. After the data byte, the host releases the Data line, and the device will pull the Data line low for one clock period to indicate successful reception. A keyboard normally interprets the received byte as a command or a parameter for a preceding command. The device will not attempt to transmit to the host until both Clock and Data have been high for a minimum period of time.[5]

Transmission from the device to the host is favored because from the normal idle state, the device does not have to seize the channel before it can transmit—the device just begins transmitting immediately. In contrast, the host must seize the channel by pulling first the Clock line and then the Data line low and waiting for the device to have time to release the channel and prepare to receive; only then can the host begin to transmit data.

 

 

 

PS/2 dualport, corresponding splitter (Y-cable) and pinout (female).

Older laptops and most contemporary motherboards have a single port that supports either a keyboard or a mouse. Sometimes the port also allows one of the devices to be connected to the two normally unused pins in the connector to allow both to be connected at once through a special splitter cable.[6] This configuration is common on IBM/Lenovo Thinkpad notebooks among many others.

The PS/2 keyboard interface is electrically the same as the 5-pin DIN connector on earlier AT keyboards, and keyboards designed for one can be connected to the other with a simple wiring adapter. Such wiring adapters and adapter cables were once commonly available for sale. Note that IBM PC and PC XT keyboards use a different unidirectional protocol with the same DIN connector as AT keyboards, so though a PC or XT keyboard can be connected to PS/2 port using a wiring adapter intended for an AT keyboard, the earlier keyboard will not work with the PS/2 port. (At least, it cannot work with normal PS/2 keyboard driver software, including the system BIOS keyboard driver.)

In contrast to this, the PS/2 mouse interface is substantially different from RS-232 (which was generally used for mice on PCs without PS/2 ports), but nonetheless many mice were made that could operate on both with a simple passive wiring adapter, where the mice would detect the presence of the adapter based on its wiring and then switch protocols accordingly.

PS/2 mouse and keyboard connectors have also been used in non-IBM PC-compatible computer systems, such as the DEC AlphaStation line, early IBM RS/6000 CHRP machines and SGI Indy, Indigo 2, and newer (Octane, etc.) computers.[7] Macintosh clone computers based on the "LPX-40" logic board design featured PS/2 mouse and keyboard ports, including the Motorola StarMax and the Power Computing PowerBase.[8]

Legacy port status and USB

PS/2 is now considered a legacy port, with USB ports now normally preferred for connecting keyboards and mice. This dates back at least as far as the Intel/Microsoft PC 2001 specification of 2000.

However, PS/2 ports continue to be included on many computer motherboards, and are favored by some users, for various reasons including the following:

  • PS/2 ports may be favored for security reasons in a corporate environment as they allow USB ports to be totally disabled, preventing the connection of any USB removable disks and malicious USB devices.[9]
  • The PS/2 interface provides no restriction on key rollover, although USB keyboards have no such restriction either, unless operated in BOOT mode, which is the exception.
  • To free USB ports for other uses like removable USB devices.
  • Some USB keyboards may not be able to operate the BIOS on certain motherboards due to driver issues or lack of support. The PS/2 interface has near-universal compatibility with BIOS.

Latency of mice

USB mice send data more quickly than PS/2 mice because standard USB mice are polled at a default rate of 125 hertz while standard PS/2 mice send interrupts at a default rate of 100 Hz when they have data to send to the computer. However, PS2 mice and keyboards are favored by many gamers because they essentially have zero latency through the port. There is no "polling" needed by the OS. The device notifies the OS when it's time to receive a packet of data from it.[10][11]

Also, USB mice do not cause the USB controller to interrupt the system when they have no status change to report according to the USB HID specification's default profile for mice.[12] Both PS/2 and USB allow the sample rate to be overridden, with PS/2 supporting a sampling rate of up to 200 Hz[2] and USB supporting a polling rate up to 1 kHz[10] as long as the mouse runs at full-speed USB speeds or higher.

USB key rollover limitations

The USB HID keyboard interface requires that it explicitly handle key rollover, with the full HID keyboard class supporting n-key rollover. However, the USB boot keyboard class (designed to allow the BIOS to easily provide a keyboard in the absence of OS USB HID support) only allows 6-key rollover. Some keyboard peripherals support only the latter class, and some OSes may fail to switch to using the full HID keyboard class with a device after boot.[13]

Conversion between PS/2 and USB

Many keyboards and mice were specifically designed to support both the USB and the PS/2 interfaces and protocols, selecting the appropriate connection type at power-on. Such devices are generally equipped with a USB connector and ship with a passive wiring adapter to allow connection to a PS/2 port. Such passive adapters are not standardized and may therefore be specific to the device they came with. Connecting them to a PS/2 port would require a protocol converter, actively translating between the protocols. Such adapters only support certain classes of USB devices such as keyboards and mice, but are not model- or vendor-specific.

Older PS/2-only peripherals can be connected to a USB port via an active converter, which generally provides a pair of PS/2 ports (which may be designated as one keyboard and one mouse, even though both ports may support both protocols) at the cost of one USB port on the host computer.[14]

Color Description
  Purple Keyboard
  Green Mouse

Original PS/2 connectors were black or had the same color as the connecting cable (mainly white). Later the PC 97 standard introduced a color code: the keyboard port, and the plugs on compliant keyboards, were purple; mouse ports and plugs were green. (Some vendors initially used a different color code; Logitech used the color orange for the keyboard connector for a short period, but soon switched to purple.) Today this code is still used on most PCs. The pinouts of the connectors are the same, but most computers will not recognize devices connected to the wrong port.

PS/2 ports are designed to connect the digital I/O lines of the microcontroller in the external device directly to the digital lines of the microcontroller on the motherboard. They are not designed to be hot swappable. Hot swapping PS/2 devices usually does not cause damage because more modern microcontrollers tend to have more robust I/O lines built into them which are harder to damage than those of older controllers;[15] however, hot swapping can still potentially cause damage on older machines, or machines with less robust port implementations.

If they are hot swapped, the devices must be similar enough that the driver running on the host system recognizes and can be used with the new device. Otherwise, the new device will not function properly. While this is seldom an issue with standard keyboard devices, the host system rarely recognizes the new device attached to the PS/2 mouse port. In practice most keyboards can be hot swapped but this should be avoided.

Durability

 

Bus powered PS/2-to-USB adapter

PS/2 connectors are not designed to be plugged in and out very often, which can lead to bent or broken pins. Additionally, PS/2 connectors only insert in one direction and must be rotated correctly before attempting connection. (If a user attempts to insert the connector in the wrong orientation and then tries to rotate it to the correct orientation without first pulling it out, then bent pins could result.)

Most but not all connectors include an arrow or flat section which is usually aligned to the right or top of the jack before being plugged in. The exact direction may vary on older or non-ATX computers and care should be taken to avoid damaged or bent pins when connecting devices. This issue is slightly alleviated in modern times with the advent of the PS/2-to-USB adapter: users can just leave a PS/2 connector plugged into the PS/2-to-USB adapter at all times and not risk damaging the pins this way. A USB-to-PS/2 adapter does not have this problem.

Fault isolation

In a standard implementation both PS/2 ports are usually controlled by a single microcontroller on the motherboard. This makes design and manufacturing extremely simple and cheap. However, a rare side effect of this design is that a malfunctioning device can cause the controller to become confused, resulting in both devices acting erratically. (A well designed and programmed controller will not behave in this way.) The resulting problems can be difficult to troubleshoot (e.g., a bad mouse can cause problems that appear to be the fault of the keyboard and vice versa).

  • BIOS interrupt call
  • DIN connector on IBM PC keyboards
  • Bus mouse
  • Connections on mice
  • DE-9 connector
  • USB

  1. ^ There is actually no technical reason that either port could not work with either type of device, if appropriate software was written to support that arrangement.
  2. ^ a b "The PS/2 Mouse Interface". 1 April 2003. Archived from the original on 16 September 2008.
  3. ^ Compare the logic diagrams in the IBM Personal Computer Technical Reference manual with those in the IBM Personal Computer AT Technical Reference manual.
  4. ^ IBM Personal Computer Technical Reference, IBM Personal Computer AT Technical Reference
  5. ^ IBM Personal Computer AT Technical Reference
  6. ^ "PS/2 Keyboard (IBM Thinkpad) Y adapter". RU: Pinouts. Retrieved 14 June 2011.
  7. ^ Lenerz, Gerhard (7 November 2006). "Common Input Devices". Hardware. SGIstuff. Archived from the original on 26 June 2007. Retrieved 14 March 2007.
  8. ^ "Power Computing PowerBase". Low end Mac. Retrieved 4 April 2011.
  9. ^ "Massive, undetectable security flaw found in USB: It's time to get your PS/2 keyboard out of the cupboard". ExtremeTech. Retrieved 26 October 2015.
  10. ^ a b "Mouse Optimization Guide: Acceleration Fix and Polling Rate".
  11. ^ "Computer Labs 2012/2013 - 1st Semester Lab 5: The PS/2 Mouse".
  12. ^ "Device Class Definition for HID 1.11" (PDF). Archived from the original (PDF) on 11 August 2014.
  13. ^ "N-key Rollover via PS/2 and USB". Geek hack. Archived from the original on 25 December 2010.
  14. ^ "The pros and cons of PS-2 to USB adapters and converters". TechTarget.
  15. ^ Adam Chapweske (5 September 2003). "The PS/2 Mouse/Keyboard Protocol". Archived from the original on 16 November 2016. Retrieved 26 November 2016.

  • "Keyboard and Auxiliary Device Controller" (PDF). Hardware Interface Technical Reference -Common Technical-. IBM. October 1990.
  • PS/2 keyboard and mouse mini-DIN 6 connector pinouts, Burton sys.
  • PS/2 In-depth information, Computer engineering, archived from the original on 1 September 2006, retrieved 11 September 2006.
  • Technical information on Interfacing with the AT keyboard, Beyond logic, archived from the original on 30 August 2018, retrieved 25 March 2012.

Retrieved from "https://en.wikipedia.org/w/index.php?title=PS/2_port&oldid=1074580650"