6504 Bridge Point Parkway
Austin, TX 78730-5039
(512) 794-0100
Technical support phone: (512) 795-8248
Technical support fax:(512) 794-5678
Branch Offices:
Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Canada (Ontario) 905 785 0085,
Canada (Québec) 514 694 8521, Denmark 45 76 26 00, Finland 90 527 2321, France 1 48 14 24 24,
Germany 089 741 31 30, Hong Kong 2645 3186, Israel 03 5734815, Italy 02 413091, Japan 03 5472 2970,
Korea 02 596 7456, Mexico5 520 2635, Netherlands 0348 433466, Norway 32 84 84 00,
Singapore 2265886, Spain 91 640 0085, Sweden 08 730 49 70, Switzerland 056 20 51 51,
Taiwan 02 377 1200, U.K. 01635 523545
Limited Warranty
The GPIB-1014 is warranted against defects in materials and workmanship for a period of two years from the date of
shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace
equipment that proves to be defective during the warranty period. This warranty includes parts and labor.
The media on which you receive National Instruments software are warranted not to fail to execute programming
instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as
evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software
media that do not execute programming instructions if National Instruments receives notice of such defects during
the warranty period. National Instruments does not warrant that the operation of the software shall be uninterrupted
or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the
outside of the package before any equipment will be accepted for warranty work. National Instruments will pay the
shipping costs of returning to the owner parts which are covered by warranty.
National Instruments believes that the information in this manual is accurate. The document has been carefully
reviewed for technical accuracy. In the event that technical or typographical errors exist, National Instruments
reserves the right to make changes to subsequent editions of this document without prior notice to holders of this
edition. The reader should consult National Instruments if errors are suspected. In no event shall National
Instruments be liable for any damages arising out of or related to this document or the information contained in it.
EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE
OF
NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS,
USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY
THEREOF
whether in contract or tort, including negligence. Any action against National Instruments must be brought within
one year after the cause of action accrues. National Instruments shall not be liable for any delay in performance due
to causes beyond its reasonable control. The warranty provided herein does not cover damages, defects,
malfunctions, or service failures caused by owner's failure to follow the National Instruments installation, operation,
or maintenance instructions; owner's modification of the product; owner's abuse, misuse, or negligent acts; and
power failure or surges, fire, flood, accident, actions of third parties, or other events outside reasonable control.
. CUSTOMER'S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART
NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER.
. This limitation of the liability of National Instruments will apply regardless of the form of action,
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or
mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or
in part, without the prior written consent of National Instruments Corporation.
Trademarks
NI-488M™ is a trademark of National Instruments Corporation.
Product and company names listed are trademarks or trade names of their respective companies.
Warning Regarding Medical and Clinical Use
of National Instruments Products
National Instruments products are not designed with components and testing intended to ensure a level of reliability
suitable for use in treatment and diagnosis of humans. Applications of National Instruments products involving
medical or clinical treatment can create a potential for accidental injury caused by product failure, or by errors on the
part of the user or application designer. Any use or application of National Instruments products for or involving
medical or clinical treatment must be performed by properly trained and qualified medical personnel, and all
traditional medical safeguards, equipment, and procedures that are appropriate in the particular situation to prevent
serious injury or death should always continue to be used when National Instruments products are being used.
National Instruments products are NOT intended to be a substitute for any form of established process, procedure, or
equipment used to monitor or safeguard human health and safety in medical or clinical treatment.
FCC/DOC Radio Frequency Interference Compliance
This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the
instructions in this manual, may cause interference to radio and television reception. This equipment has been tested
and found to comply with the following two regulatory agencies:
Federal Communications Commission
This device complies with Part 15 of the Federal Communications Commission (FCC) Rules for a Class A digital
device. Operation is subject to the following two conditions:
1.This device may not cause harmful interference in commercial environments.
2.This device must accept any interference received, including interference that may cause undesired operation.
Canadian Department of Communications
This device complies with the limits for radio noise emissions from digital apparatus set out in the Radio
Interference Regulations of the Canadian Department of Communications (DOC).
Le présent appareil numérique n’émiet pas de bruits radioélectriques dépassant les limites applicables aux appareils
numériques de classe A prescrites dans le réglement sur le brouillage radioélectrique édicté par le ministére des
communications du Canada.
Instructions to Users
These regulations are designed to provide reasonable protection against harmful interference from the equipment to
radio reception in commercial areas. Operation of this equipment in a residential area is likely to cause harmful
interference, in which case the user will be required to correct the interference at his own expense.
There is no guarantee that interference will not occur in a particular installation. However, the chances of
interference are much less if the equipment is installed and used according to this instruction manual.
If the equipment does cause interference to radio or television reception, which can be determined by turning the
equipment on and off, one or more of the following suggestions may reduce or eliminate the problem.
•Operate the equipment and the receiver on different branches of your AC electrical system.
•Move the equipment away from the receiver with which it is interfering.
•Reorient or relocate the receiver’s antenna.
•Be sure that the equipment is plugged into a grounded outlet and that the grounding has not been defeated with a
cheater plug.
Notice to user: Changes or modifications not expressly approved by National Instruments could void the user’s
authority to operate the equipment under the FCC Rules.
If necessary, consult National Instruments or an experienced radio/television technician for additional suggestions.
The following booklet prepared by the FCC may also be helpful: How to Identify and Resolve Radio-TVInterference Problems. This booklet is available from the U.S. Government Printing Office, Washington, DC
20402, Stock Number 004-000-00345-4.
Contents
About This Manual............................................................................................................ xiii
Organization of This Manual ........................................................................................ xiii
Conventions Used in This Manual ................................................................................ xiv
Related Documentation ................................................................................................. xiv
Customer Communication............................................................................................. xv
Chapter 1
Introduction
What Your Kit Should Contain..................................................................................... 1-3
The GPIB-1014 User Manual describes the mechanical and electrical aspects of the GPIB-1014,
the data transfer features, and contains information concerning its operation and programming.
Organization of This Manual
The GPIB-1014 User Manual is organized as follows:
•Chapter 1, Introduction, describes the GPIB-1014, lists the contents and optional equipment
for your GPIB-1014 kit, and explains how to unpack the GPIB-1014 kit.
•Chapter 2, General Description, contains the electrical specifications for the GPIB-1014, the
data transfer features, and describes the characteristics of key interface board components.
•Chapter 3, Configuration and Installation, describes the steps needed to configure and install
the GPIB-1014 hardware.
•Chapter 4, Register Bit Descriptions, contains a description of the register map, a list of
interface registers, and a description of the DMA registers.
•Chapter 5, Programming Considerations, explains the initialization process,
sending/receiving messages, and the serial/parallel poll process.
•Chapter 6, Theory of Operation, contains a functional overview of the GPIB-1014 board and
explains the operation of each functional block making up the GPIB-1014.
•Chapter 7, Diagnostic and Troubleshooting Test Procedures, contains test procedures for
determining if the GPIB-1014 is installed and operating correctly.
•Appendix A, Hardware Specifications, specifies the electrical, environmental, and physical
characteristics of the GPIB-1014 board and the condition under which it should be operated.
•Appendix B, Parts List and Schematic Diagrams, contains the parts list and schematic
diagrams for the GPIB-1014.
•Appendix C, Sample Programs, contains listings of routines in 68000 assembly language
code that implement the essential elements of the major utility functions.
•Appendix D, Multiline Interface Messages, lists the multiline interface messages and
describes the mnemonics and messages that correspond to the interface functions. These
functions include initializing the bus, addressing and unaddressing devices, and setting
device modes for local or remote programming. The multiline interface messages are
IEEE 488-defined commands that are sent and received with ATN TRUE.
•Appendix E, Operation of the GPIB, describes the operation of the GPIB.
•Appendix F, Mnemonics Key, contains a mnemonics key that defines the mnemonics
(abbreviations) used throughout this manual for functions, remote messages, local messages,
states, bits, registers, integrated circuits, system functions, and VMEbus operations and
signals.
•Appendix G, Customer Communication, contains forms for you to complete to facilitate
communication with National Instruments concerning our products.
•The Glossary contains an alphabetical list and description of terms used in this manual,
including abbreviations, acronyms, metric prefixes, and symbols.
•The Index contains an alphabetical list of key terms and topics used in this manual, including
the pages where each one can be found.
Conventions Used in This Manual
The following conventions are used to distinguish elements of text throughout this manual:
italicItalic text denotes emphasis, a cross reference, or an introduction to a key
concept.
IEEE 488IEEE 488 is used throughout this manual to refer to the ANSI/IEEE
Standard 488.1-1987, which defines the GPIB.
IEEE 1014IEEE 1014 is used throughout this manual to refer to the ANSI/IEEE
Standard 1014-1987, which defines the GPIB.
Related Documentation
The following documents contain information that you may find helpful as you read this manual:
•ANSI/IEEE Standard 488.1-1987, IEEE Standard Digital Interface for ProgrammableInstrumentation.
•ANSI/IEEE Standard 1014-1987, IEEE Standard for a Versatile Backplane Bus: VMEbus.
µ
PD7210 GPIB-IFC User Manual, NEC Electronics U.S.A., Inc., One Natick Executive
•
Park, Natick, MA 01760.
•
µ
PD7210 Intelligent GPIB Interface Controller Engineering Data Sheet, NEC Electronics
U.S.A., Inc., Microcomputer Division.
•How to Interface a Microcomputer System to a GPIB, (& The NEC µPD7210 TLC), NEC
Electronics U.S.A., Inc.
•Motorola Semiconductor Technical Data MC68450 Advance Information Direct Memory
Access Controller (DMAC)
•Hitachi Microcomputer System HD68450 DMAC (Direct Memory Access Controller)
Customer Communication
National Instruments wants to receive your comments on our products and manuals. We are
interested in the applications you develop with our products, and we want to help if you have
problems with them. To make it easy for you to contact us, this manual contains comment and
configuration forms for you to complete. These forms are in Appendix G, Customer
This chapter describes the GPIB-1014, lists the contents and oiptional equipment for your
GPIB-1014 kit, and explains how to unpack the GPIB-1014 kit.
The GPIB-1014 is a high-performance IEEE 488 interface for the VMEbus. This interface
permits IEEE 488 compatible engineering, scientific, or medical instruments to be controlled
from a VMEbus-based computer. The GPIB-1014 has the following features:
•Complete IEEE 488 Talker/Listener/Controller (TLC) capability using the NEC µPD7210
GPIB TLC chip
•DMA transfers
-Data rates up to 500 kbytes/sec
-Unlimited data block lengths
-Full 24-bit addressing
-GPIB synchronization detection
-General purpose DMA capability
•Complete software control through programmable configuration parameters
The GPIB-1014 interface kit includes hardware and programming examples to implement the
GPIB functions. Optional cables are supplied for interconnection with other devices on the
GPIB.
What Your Kit Should Contain
Your GPIB-1014 kit should contain the following components:
Kit ComponentPart Number
One of these GPIB-1014 boards:
• GPIB-1014-1776059-01
• GPIB-1014-2776060-01
• GPIB-1014-EH (EH=Ejector Handles)776059-51
• GPIB-1014-1S (no P2 signals)776059-21
• GPIB-1014-1S-EH (no P2 signals; EH=Ejector Handles)776059-61
One GPIB-1014 User Manual320030-01
1. Verify that the pieces contained in the package you received match the kit parts list given
earlier in this chapter. Do not remove the board from its plastic bag at this point.
2. Your GPIB-1014 board is shipped packaged in an antistatic plastic bag to prevent
electrostatic damage to the board. Several components on the board can be damaged by
electrostatic discharge. To avoid such damage in handling the board, touch the plastic bag to
a metal part of your VMEbus computer chassis before removing the board from the bag.
3. Remove the board from the bag and inspect the board for loose components or any other sign
of damage. Notify National Instruments if the board appears damaged in any way. Do not
install a damaged board into your computer.
This chapter contains the electrical specifications for the GPIB-1014, the data transfer features,
and describes the characteristics of key interface board components.
Electrical Characteristics
All integrated circuit drivers and receivers used on the GPIB-1014 meet the requirements of the
VMEbus specification and the IEEE 1014 standard. Table 2-1 contains a list of the VMEbus
signals used by the GPIB-1014 and the electrical loading presented by the circuitry on the
interface board (in terms of device types and their part numbers).
Note: The asterisk (*) after the bus signal indicates that the signal is active low.
All GPIB transceivers meet the requirements of the IEEE 488 standard. The components used
are as follows:
TransceiversComponent Designation
Data TransceiversDS75160AN
Control TransceiversDS75162AN
Note:The GPIB-1014 requires regulated +5 VDC power from the VMEbus. Current load is
typically 1.6 A (2.0 A maximum).
VMEbus Characteristics
The following paragraphs describe each of the VMEbus modules on the GPIB-1014: slave,
master, interrupter, and requester. Table 2-5 at the end of this chapter summarizes the
capabilities of these modules.
VMEbus Slave-Addressing
The GPIB-1014 occupies 512 bytes (256 words) in the A16 (short) I/O space. As a VMEbus
slave, it only responds when the address modifier (AM) lines specify a short supervisory access
(AM code = 2D) or a short nonprivileged access (AM code = 29). The board responds to short
16-bit addresses. The GPIB-1014 compares address lines A15 through A9 with its base address
You can configure the base address of the board through the hardware jumper set W1 located on
the interface board. Except for the models GPIB-1014-1S and GPIB-1014-1S-EH, the base
address can also be set using strapped address lines located on the VMEbus P2 connector. See
Chapter 3, Configuration and Installation, on how to set the base address of the board.
VMEbus Slave-Data
The GPIB-1014 can function as a VMEbus slave, decoding short I/O addresses and commands
from a VMEbus master. The µPD7210 and the two Configuration Registers function as 8-bit
slaves, allowing data to be transferred to and from the VMEbus Master on data lines D07
through D00. The 68450 can function as an 8- or 16-bit slave, allowing transfers on data lines
D15 through D00. The board is designed to accommodate Address Only (ADO) cycles. In
VMEbus terminology, the slave module of the board is designated as D16 & D08(EO).
The GPIB Interface Registers associated with the µPD7210 are addressed relative to the base
address of the board, as shown in Table 2-2. The DMA registers internal to the 68450 are shown
in Table 2-3. The two Configuration Registers of the GPIB-1014 are shown in Table 2-4.
The GPIB-1014 can function as a VMEbus master, performing data transfers to and from
VMEbus memory. In most applications, the 68450 controls the data transfer to and from the
GPIB during DMA, and can transfer the 8-bit data on data lines D07 through D00 or D15
through D08, allowing the packing of data in VMEbus memory. In addition to GPIB-to-VMEbus
memory DMA transfers, the board can also perform 8- or 16-bit memory-to-memory DMA
transfers.
Memory addresses generated by the GPIB-1014 are 24 bits wide and the VMEbus Address
Modifier Lines (AM5 through AM0) are fully programmable using function code registers
located in the 68450 and three hardware jumpers (W3, W4, and W5). (See Chapter 3 for
instructions on setting the hardware jumpers. See Chapter 4 for a description of the DMAC
Function Code Registers.) The 24-bit addresses, along with selectable Address Modifier codes,
eliminate artificial memory boundaries and allow data transfers between the GPIB and data area,
program area, or even devices located in the short I/O area. In VMEbus terminology, the
GPIB-1014 has A24 / D08(EO) & D16 master capability. The board does not use Unaligned
Transfer (UAT), Block Transfer (BLT), or Read Modify Write (RMW) cycles. The chaining
feature of the 68450 allows data blocks of unlimited size to be transferred.
Interrupter
Interrupt events that can drive a hardware-programmed VMEbus interrupt request line are as
follows:
•GPIB Data In (DI)•Address Status Change (ADSC)
•GPIB Data Out (DO)•Secondary Address Pass Through (APT)
•END Message Received (END RX)•Service Request Input (SRQI)
•GPIB Command Out (CO)•Device Execute Trigger (DET)
•Remote Mode Change (REMC)•Device Clear received (DEC RX)
•GPIB Handshake Error (ERR)•Command Pass Through (CPT)
•Lockout Change (LOKC)•Bus Error (BERR)
•GPIB DMA Transfer Finished and
GPIB Synchronized (FIN)
You can select one of seven VMEbus interrupt request lines (IRQ1* through IRQ7*) through
software using three bits located in Configuration Register 1.
The onboard hardware implements the VMEbus interrupt acknowledge protocol. Interrupt
Vector Registers located in the 68450 let you select, through software, the 8-bit Interrupt
Status/ID byte supplied by the GPIB-1014 during an interrupt acknowledge cycle of the correct
priority. The GPIB-1014 is a D08(O) interrupter, because it responds to an interrupt
acknowledge cycle by providing an 8-bit status/ID byte on data lines D00 through D07. In
addition, the board is a Release On Register Access (RORA) interrupter, because it releases its
interrupt line when the Channel Status Register is written with the proper value. In VMEbus
terminology, the GPIB-1014 has D08(O) / RORA Interrupter capability.
The GPIB-1014 arbitrates for the DTB before each DMA transfer. The board is designed for you
to select, through software, one of four VMEbus request lines (BR0* through BR3*) using two
bits in Configuration Register 1. To maximize the capabilities of the DTB, the board can be
programmed to become a Release On Request (ROR) DTB master. Unless programmed, the
GPIB-1014 is a Release When Done (RWD) master.
VMEbus Modules Not Provided
Because the GPIB-1014 is not designed to be VMEbus System Controller, it does not have the
following modules:
•Bus Timer
•Arbiter
•Interrupt Handler
•IACK Daisy-Chain Driver
•System Clock Driver
•Serial Clock Driver
•Power Monitor
Diagnostic Aids
The GPIB-1014 is designed to allow stand-alone verification of I/O and DMA functions. See
Chapter 7, Diagnostic and Troubleshooting Test Procedures, for details.
Data Transfer Features
The GPIB-1014 can be used to transfer data to and from the GPIB using Direct Memory Access
(DMA) and programmed I/O. The overall throughput is dependent upon the following
parameters:
•The number of GPIB commands sent
•The amount of time spent setting up the GPIB-1014 DMA transfers
•The size of the DMA data buffers (number of bytes transferred in one DMA operation)
•Operating system overhead
•Interrupt service time
•VMEbus memory response time (DS* low to DTACK* low)
•GPIB Listener response time (DAV* low to NDAC* high)
•GPIB Talker response time (NRFD* high to DAV* low)
•GPIB-1014 transfer mode: Cycle Steal with hold, programmable timeout
•T1 timing: high-speed
Transfer rates of 250 to 350 kbytes/sec can be expected in typical systems, and rates up to 500
kbytes/sec can be achieved under optimum conditions.
Programmed I/O Transfers
The GPIB-1014 is able to transfer data to and from the GPIB using programmed I/O. Transfer
rates using programmed I/O depend on many factors including how fast the program code
executes, how fast the microprocessor services interrupts, and the operating system overhead.
Typically, the GPIB-1014 transfers data at rates ranging from 10 to 80 kbytes/sec using
programmed I/O.
GPIB-1014 Functional Description
In the simplest terms, the GPIB-1014 can be thought of as a bus translator, converting messages
and signals present on the VMEbus into appropriate GPIB messages and signals. Expressed in
GPIB terminology, the GPIB-1014 implements GPIB interface functions for communicating
with other GPIB devices and device functions for communicating with the central processor and
memory. Expressed in VMEbus terminology, the GPIB-1014 is an interface to the outside
world.
Figures 2-1 and 2-2 show typical applications for the GPIB-1014. In Figure 2-1, the GPIB-1014
is used to interface an assortment of test instruments to a VMEbus computer system, which then
functions as an intelligent System Controller. This is the traditional role of the GPIB.
In Figure 2-2, the GPIB-1014 is used along with other National Instruments interface boards to
connect a VMEbus computer to other processors to transfer files electrically rather than manually
(via a removable storage medium) or to perform other interprocessor communication functions.
The interface consists of these major components, which are discussed in greater detail in
Chapter 6.
•VMEbus InterfaceConsists of the buffers, drivers, and transceivers for the
address, data, status, and control lines used on the VMEbus,
plus other logic circuitry that converts internal signals to
bus-compatible signals.
•Address DecoderRecognizes when the VMEbus master addresses one of the
GPIB-1014 registers and generates the appropriate strobe to
begin the data transfer.
•Clock and Reset CircuitryMonitors the VMEbus utility signals to generate the 8-MHz
clock used by the TLC and DMAC and to detect System
Reset, Power Failure, and Bus Error conditions.
•Configuration RegistersProgrammably configures some of the operating parameters
of the GPIB-1014.
•Timing State MachineControls the timing of DMA transfers and accesses to the
GPIB-1014 from the VMEbus.
•DMA Gating and ControlControls the DMA request/acknowledge interface between
the DMAC and the TLC.
•InterrupterImplements the VMEbus priority interrupt protocol,
allowing the GPIB-1014 to request and respond to an
interrupt acknowledge cycle. All interrupt conditions are
also detectable by polling.
•DTB Control TransceiversPerforms the necessary VMEbus protocol to request,
obtain, and release control of the VME system bus. Once
configured for a DMA transfer, the GPIB-1014
automatically performs data transfers between the GPIB
and VMEbus memory.
•GPIB Synchronization and Detects the synchronization of the GPIB after the last byte
Interrupt Controlin a DMA transfer (all devices on the GPIB have accepted
the last byte) and detects interrupting conditions from the
TLC. TLC interrupt requests are routed through the
DMAC, which notifies the Interrupter when either a TLC
interrupt or one of its own internal interrupt conditions is
detected.
•DMAC (68450)Controls DMA transfers between the GPIB and the
VMEbus. The DMA Gating and Control circuitry controls
the DMA request/acknowledge interface between the TLC
and the DMAC.
•GPIB TLC (NEC µPD7210)Implements many of the GPIB interface functions, either
independently or with assistance of or interpretation by the
controlling program. Together with special transceivers,
the TLC forms the GPIB interface side of the GPIB-1014.