ArticleslgStudy

computer science

GPIB

GPIB is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GPIB rather than just read about it. In short: General Purpose Interface Bus (GPIB) or Hewlett-Packard Interface Bus (HP-IB) is a short-range digital communications 8-bit parallel multi-master interface bus specification originally developed by Hewlett-Packard and standardized in IEEE 488.1-2003. It subsequently became the subject of several standards.

GPIB — main illustration
GPIB — illustration

Key takeaways

  • GPIB belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GPIB to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GPIB from memory before moving on to harder problems.

Reference excerpt

General Purpose Interface Bus (GPIB) or Hewlett-Packard Interface Bus (HP-IB) is a short-range digital communications 8-bit parallel multi-master interface bus specification originally developed by Hewlett-Packard and standardized in IEEE 488.1-2003. It subsequently became the subject of several standards. Although the bus was originally created to connect together automated test equipment, it also had some success as a peripheral bus for early microcomputers, notably the Commodore PET. Newer standards have largely replaced IEEE 488 for computer use, but it is still used by test equipment.

History In the 1960s, Hewlett-Packard (HP) manufactured various automated test and measurement instruments, such as digital multimeters and logic analyzers. They developed the HP Interface Bus (HP-IB) to enable easier interconnection between instruments and controllers (computers and other instruments). This part of HP was later (c. 1999) spun off as Agilent Technologies, and in 2014 Agilent's test and measurement division was spun off as Keysight Technologies. The bus was relatively easy to implement using the technology at the time, using a simple parallel bus and several individual control lines. For example, the HP 59501 Power Supply Programmer and HP 59306A Relay Actuator were both relatively simple HP-IB peripherals implemented in TTL, without the need for a microprocessor. HP licensed the HP-IB patents for a nominal fee to other manufacturers. It became known as the General Purpose Interface Bus (GPIB), and became a de facto standard for automated and industrial instrument control. As GPIB became popular, it was formalized by various standards organizations. In 1975, the IEEE standardized the bus as Standard Digital Interface for Programmable Instrumentation, IEEE 488; it was revised in 1978 (producing IEEE 488-1978). The standard was revised in 1987, and redesignated as IEEE 488.1 (IEEE 488.1-1987). These standards formalized the mechanical, electrical, and basic protocol parameters of GPIB, but said nothing about the format of commands or data. In 1987, IEEE introduced Standard Codes, Formats, Protocols, and Common Commands, IEEE 488.2. It was revised in 1992. IEEE 488.2 provided for basic syntax and format conventions, as well as device-independent commands, data structures, error protocols, and the like. IEEE 488.2 built on IEEE 488.1 without superseding it; equipment can conform to IEEE 488.1 without following IEEE 488.2. While IEEE 488.1 defined the hardware and IEEE 488.2 defined the protocol, there was still no standard for instrument-specific commands. Commands to control the same class of instrument, e.g., multimeters, varied between manufacturers and even models. The United States Air Force, and later Hewlett-Packard, recognized this as a problem. In 1989, HP developed their Test Measurement Language (TML) or Test and Measurement Systems Language (TMSL) which was the forerunner to Standard Commands for Programmable Instrumentation (SCPI), introduced as an industry standard in 1990. SCPI added standard generic commands, and a series of instrument classes with corresponding class-specific commands. SCPI mandated the IEEE 488.2 syntax, but allowed other (non-IEEE 488.1) physical transports. The IEC developed their own standards in parallel with the IEEE, with IEC 60625-1 and IEC 60625-2 (IEC 625), later replaced by IEC 60488-2. National Instruments introduced a backward-compatible extension to IEEE 488.1, originally known as HS-488. It increased the maximum data rate to 8 Mbyte/s, although the rate decreases as more devices are connected to the bus. This was incorporated into the standard in 2003 (IEEE 488.1-2003), over HP's objections. In 2004, the IEEE and IEC combined their respective standards into a "Dual Logo" IEEE/IEC standard IEC 60488-1, Standard for Higher Performance Protocol for the Standard Digital Interface for Programmable Instrumentation - Part 1: General, replaces IEEE 488.1/IEC 60625-1, and IEC 60488-2,Part 2: Codes, Formats, Protocols and Common Commands, replaces IEEE 488.2/IEC 60625-2. The Linux kernel got support for GPIB with version 6.19, after Greg Kroah-Hartman merged the code.

Characteristics IEEE 488 is an 8-bit, electrically parallel bus which employs sixteen signal lines — eight used for bi-directional data transfer, three for handshake, and five for bus management — plus eight ground return lines. The bus supports 31 five-bit primary device addresses numbered from 0 to 30, allocating a unique address to each device on the bus. The standard allows up to 15 devices to share a single physical bus of up to 20 metres (66 ft) total cable length. The physical topology can be linear or star (forked). Active extenders allow longer buses, with up to 31 devices theoretically possible on a logical bus. Control and data transfer functions are logically separated; a controller can address one device as a "talker" and one or more devices as "listeners" without having to participate in the data transfer. It is possible for multiple controllers to share the same bus, but only one can be the "Controller In Charge" at a time. In the original protocol, transfers use an interlocked, three-wire ready–valid–accepted handshake. The maximum data rate is about one megabyte per second. The later HS-488 extension relaxes the handshake requirements, allowing up to 8 Mbyte/s. The slowest participating device determines the speed of the bus.

Connectors

… excerpt ends here. Continue reading the full article.

Illustrations

GPIB: IEEE 488 cable with stacking connectors
IEEE 488 cable with stacking connectors
GPIB illustration
GPIB: IEEE-488 port with listed capabilities on a laboratory temperature controller
IEEE-488 port with listed capabilities on a laboratory temperature controller
GPIB: National Instruments GPIB controller card for PCI bus
National Instruments GPIB controller card for PCI bus
GPIB illustration

Worked examples

Example 1 — a first encounter with GPIB

Start with the simplest possible case. Write down what GPIB claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GPIB before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GPIB ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GPIB

In research
GPIB appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GPIB in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GPIB is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer buses, Electronic test equipment, IEEE standards, so understanding it makes those chapters shorter.
In everyday life
Look for GPIB outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GPIB” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study GPIB in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GPIB means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GPIB out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GPIB in simple terms?

General Purpose Interface Bus (GPIB) or Hewlett-Packard Interface Bus (HP-IB) is a short-range digital communications 8-bit parallel multi-master interface bus specification originally developed by Hewlett-Packard and standardized in IEEE 488.1-2003. It subsequently became the subject of several st…

Why does GPIB matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GPIB?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GPIB.

Tags

  • Computer buses
  • Electronic test equipment
  • IEEE standards

Keep exploring