GPIB
GPIB
The GPIB or General Purpose Interface Bus or IEEE 488 bus is still one of
the more popular and versatile interface standards available today.
Today most bench electronics test equipment has either a GPIB option or are
fitted with it as standard. Even though it has been surpassed by other
technologies, it is still widely used and often fitted as a basic option.
GPIB connectors are still incorporated onto modern test equipment to maintain
compatibility
GPIB origins
Originally GPIB was named the HP-IB. This came from the words: Hewlett
Packard Interface Bus as it was originally introduced by HP for controlling
their electronics test equipment (later the test equipment arm of HP became a
separate company with the name Agilent and later still Keysight).
As it has gained popularity, the HPIB as it was initially called has gained a
number of other names over the years. GPIB has been adopted by a number
of major institutions that have given it their numbers. The Institute of Electrical
and Electronic Engineers in the U.S.A. have given it their specification
number 488 in 1978, and as a result it is sometimes referred to as the IEEE
488 bus or IEEE488 bus.
The IEEE specification defines the basic mechanical electrical and protocol
parameters. The IEEE 488.2 standard released in 1987 defines the related
software specifications.
Other organisations have also adopted the standard as well and given it their
own numbers which will occasionally be seen.. The American National
Standards Institute as has the IEC. The IEC standard numbers were
IEC-60625-1 and IEC-60625-2, but these were later replaced by IEC-60488
to provide number compatibility.
Despite the proliferation of names and numbers for it, the specifications are
all virtually the same and can be used interchangeably. Of all the names
GPIB is the most common, followed by IEEE 488 bus, referring to the most
commonly used standard for the bus.
In 2004 the IEEE and IEC combined their own standards into combined work:
IEEE/IEC standard IEC-60488-1. The IEEE 488.2 standard was similarly
combined and became IEC-60488-2.
A further requirement for the bus is that there must also be no more than 2 m
between two adjacent test instruments.
It is possible to purchase GPIB cards to incorporate into computers that do
not have the interface fitted. As GPIB cards are relatively cheap, this makes
the inclusion of a GPIB card into the system a very cost effect method of
installing it. That said, the falling usage of GPIB means that GPIB cards are
not nearly as widely available as they used to be.
Active extenders are available and these items allow longer buses: up to 31
devices theoretically possible, along with a greater overall length dependent
upon the extender.
In the original HPIB protocol, transfers utilise three wire handshaking system.
Using this the maximum data rate achievable is around 1 Mbyte per second,
but this is always governed by the speed of the slowest device. A later
enhancement often referred to as HS-488 relaxes the handshaking conditions
and enables data rates up to about 8 Mbytes / second.
The connector used for the IEEE 488 bus is standardised as a 24-way
Amphenol 57 series type. This provides an ideal physical interface for the
standard. The IEEE 488 or GPIB connector is very similar in format to those
that were used for parallel printer ports on PCs although the type used for the
GPIB has the advantage it has been changed so that several connectors can
be piggy-backed. This helps the physical setting up of the bus and prevents
complications with special connection boxes or star points.
Within IEEE 488, the equipment on the bus falls into three categories,
although items can fulfil more than one function:
Advantages
• Bulky connectors
• Cable reliability poor - often as a result of the bulky cables.
• Low bandwidth - slow compared to more modern interfaces
• Basic IEEE 422 does not mandate a command language (SCPI used in
later implementations but not included on all instruments.
GPIB capability is included on a large number of bench instruments, but when
opting to use the facility to build a system, it is necessary to consider all the
advantages and disadvantages before committing time and cost to its use.
Message Format
Bits 0 through 4 indicate the primary address of the device, for
which the Talker/Listener assignment is intended. If bit 5 is high, the
device should listen. If bit 6 is high, the device should talk. Bit 7 is a
“don’t care” bit. Its value is ignored, so it is interpreted as a value of
zero in command messages.
All three functional groups explain the IEEE 488 bus working
principle.
fi
Data Bus
The data bus acts as a channel for data transmission and passage
of commands across the device connected to the GPIB device. The
8 signals are named DIO 1 to DIO 8 which are bidirectional in
nature and active low lines. The data transmission using the
commands takes place in bit-parallel and byte-serial approaches
which correspond that only one data byte can be transmitted at a
time. DIO 1 is the LSB bit and DIO 8 is the MSB bit.
Every byte which is placed in the data bus denotes either a data
byte or a command. At the time of data transmission, when the ATN
pin is TRUE, then the data bus carries a command that is to be
received by each device in the GPIB bus. Whereas when the ATN is
FALSE while data transmission, then the data bus carries a data
byte. Here, only the active listeners are able to receive the carried
byte.
• Initially, the DAV signal will be made to LOW by the talker and
observes the NRFD and NDAC lines which are regulated by
the listener.
• On the DIO lines, data bytes are placed by the talker.
• Then the talker holds its time for NRFD in order to make the
listener LOW.
•
Now, the talker af rms the DAV line and the listener
instantaneously af rms the NRFD which concedes to the talker
that the present data bye is under process.
• Later, the listener receives the data byte and lows down the
NDAC signal. At this time, the talker will make the DAV signal
Low.
• In the process of the next byte to transmit, the listener makes
NDAC high.
The DAV (Data Available) is managed by the talker, and the NRFD
(Not Ready For Data) and NDAC (Not Data Accepted) which are
wired-OR lines are shared by all the active listeners. All the three
DAV, NRFD, and NDAC are active-low signals.
This is a group of 5 lines that controls the data ow all over the
GPIB device. The functionality of each line is explained below:
There exist two kinds of commands which are inline and multiline.
The commands are said to be multiline in that the bytes are
transferred by the active controller through DIO1 – DIO8 pins
having the ATN line set as TRUE. Whereas the commands are said
to be online when the signals are carried by the interface
management bus.
fi
fl
Device Correspondent Commands – These are either the
mnemonic codes or keywords transmitted by the external controller
in order to regulate the functionality and setup of the addressed
instrument. These commands are distinctive for each instrument.
The device correspondent commands will transmit in ASCII pattern
having codes/one or more keywords.
GPIB
Abbreviation Line Name
Pin
Data Input/Output
1 DIO1
1
Data Input/Output
2 DIO2
2
fi
fi
Data Input/Output
3 DIO3
3
Data Input/Output
4 DIO4
4
5 End or Identify EOI
6 Data Valid DAV
Not Ready for
7 NRFD
Data
8 Not Data Accepted NDAC
9 Interface Clear IFC
10 Service Request SRQ
11 Attention ATN
Shield (Connected
12
to Earth)
Data Input / Output
13 DIO5
5
Data Input / Output
14 DIO6
6
Data Input / Output
15 DIO7
7
Data Input / Output
16 DIO8
8
17 Remote Enable REN
Twisted pair with Wire twisted with
18
pin 6 DAV line
Twisted pair with Wire twisted with
19
pin 7 NRFD line
Twisted pair with Wire twisted with
20
pin 8 NDAC line
Twisted pair with Wire twisted with
21
pin 9 IFC line
Twisted pair with Wire twisted with
22
pin 10 SRQ line
Twisted pair with Wire twisted with
23
pin 11 ATN line
24 Signal Ground
Advantages
• This interface is widely used in most bench instruments.
• This bus allows connecting multiple instruments for a single
controller.
• The hardware interface is not complex and standard also.
• The connectors that are used in the bus are rugged in nature.
• Shows enhanced performance levels.
Disadvantages
• These are hard to maintain as they occupy heavy spacing and
are bulky too.
• When compared with modern-day interfaces, IEEE 488 bus
offers minimal bandwidth.
• Because of heavy cables, the device exhibits less reliability.
• Used only for minimal-speed data transmissions.
• Its use is mostly limited to laboratories and manufacturing
facilities where there are multiple instruments connected
together.
IEEE 488 Bus Applications
A few of the applications of GPIB are:
MANAGEMENT Pin
LINES No.
IFC 9
REN 17
ATN 11
SRQ 10
EOI 5
HANDSHAKE Pin
LINES No.
DAV 6
NRFD 7
NDAC 8