Appendix C: Introduction to the GPIB
The
The controller (generally your computer) coordinates data transfer on the bus by designating all participating instruments (including itself) as either a talker or a listener. Listeners can receive data placed on the bus by the Talker. Devices can have the capacity to operate in either mode. The address of each device is set by switches in the device and must be between 0 and 30.
Bus Description
Byte Transfer Control Group. This consists of 3 negative logic lines that implement the GPIB handshaking. The NRFD (Not Ready For Data) line is held low by any designated listener who is not ready to accept data. When every listener is ready, the line goes high and the talker may release data to the bus. After data is on the bus, the talker pulls the DAV (Data Valid) line down. At this point, each listener retrieves the data. Before and during the retrieval of the data, the listener holds the NDAC (No Data Accepted) line down. When every listener has received the data, the NDAC line goes high, allowing the talker to release the DAV line high. Finally, the listener pulls down the NDAC line until another transfer is initiated.
Data Bus: There are eight data lines which use negative logic and pass the bits of each byte in parallel.
General Interface Lines: These five lines operate independently of the handshake lines and use negative logic.
1)The EOI (End or Identify) line is used by the talker to designate the end of message.
2)The SRQ (Service Request) line is used by any device to ask for service. The controller can serial poll each device (each device returns an 8 bit status byte) to determine who needs attention. It can also do a parallel poll using the EOI and ATN lines where each device is assigned a single data line.
3)The ATN (Attention) line makes both talkers and listeners accept information and passes control of the DAV line to the controller. This line is used by the controller to identify talkers and listeners through their addresses.
4)The REN (Remote Enable) line changes the status of an instrument from local to remote.
5)The IFC (Interface Clear) line clears the bus of all data and activity.
Though GPIB is a very powerful interface, strict protocol must be observed for it to operate successfully.
41