BBS United States: (512) 794-5422
BBS United Kingdom: 01635 551422
BBS France: 01 48 65 15 59
Fax-on-Demand Support
(512) 418-1111
Telephone Support (U.S.)
Tel: (512) 795-8248
Fax: (512) 794-5678
International 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 09 527 2321, France 01 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,
Mexico 5 520 2635, Netherlands 0348 433466, Norway 32 84 84 00, Singapore 2265886,
Spain 91 640 0085, Sweden 08 730 49 70, Switzerland 056 200 51 51, Taiwan 02 377 1200,
U.K. 01635 523545
National Instruments Corporate Headquarters
6504 Bridge Point ParkwayAustin, TX 78730-5039Tel: (512) 794-0100
Important Information
Warranty
The PCI-DIO-96 is warranted against defects in materials and workmanship for a period of one year 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.
XCEPT AS SPECIFIED HEREIN
E
SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
USTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL
C
NSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER
I
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
Instruments will apply regardless of the form of action, 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.
ATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND
, N
.
ATIONAL INSTRUMENTS
. N
. This limitation of the liability of National
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
LabVIEW®, NI-DAQ®, ComponentWorks™, CVI™, MITE™, and SCXI™ are trademarks 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.
About This Manual
Organization of This Manual........................................................................................ix
Conventions Used in This Manual................................................................................x
National Instruments Documentation...........................................................................xi
Related Documentation.................................................................................................xii
This manual describes the electrical and mechanical aspects of the
PCI-DIO-96 and contains information concerning its installation,
operation, and programming. The PCI-DIO-96 is a member of the
National Instruments PCI Series of expansion boards for PCI bus
computers. These boards are designed for high-performance data
acquisition and control for applications in laboratory testing,
production testing, and industrial process monitoring and control.
Organization of This Manual
The
PCI-DIO-96 User Manual
•Chapter 1,
need to get started, software programming choices, and optional
equipment; describes custom cabling options; and explains how to
unpack the PCI-DIO-96.
•Chapter 2,
and configure your PCI-DIO-96 board.
•Chapter 3,
output signal connections to your PCI-DIO-96 via the board I/O
connector.
•Chapter 4,
the PCI-DIO-96 and explains the operation of each functional unit
comprising the PCI-DIO-96.
•Chapter 5,
address and function of each PCI-DIO-96 register.
•Chapter 6,
the PCI-DIO-96 circuitry, and examples of the programming steps
necessary to execute an operation.
National Instruments CorporationixPCI-DIO-96 User Manual
About This Manual
•Appendix B,
data sheet for the MSM82C55A CMOS programmable peripheral
interface (OKI Semiconductor). This device is used on the
PCI-DIO-96.
•Appendix C,
sheet for the MSM82C53 CMOS programmable interval timer
(OKI Semiconductor). This timer is used on the PCI-DIO-96.
•Appendix D,
use to request help from National Instruments or to comment on our
products.
•The
•The
Glossary
used in this manual, including abbreviations, acronyms, metric
prefixes, mnemonics, symbols, and terms.
Index
in this manual, including the page where each one can be found.
MSM82C55A Data Sheet,
MSM82C53 Data Sheet,
Customer Communication
contains an alphabetical list and description of terms
contains an alphabetical list of key terms and topics used
contains a manufacturer
contains a manufacturer data
, contains forms you can
Conventions Used in This Manual
The following conventions are used in this manual:
bold
bold italic
italic
MacintoshMacintosh refers to all Macintosh computers with PCI bus, unless
monospaceText in this font denotes text or characters that are to be literally input
NI-DAQNI-DAQ is used in this manual to refer to NI-DAQ software for PC or
PCPC refers to all IBM PC compatible computers with PCI bus.
PPI xPPI x, where the x is replaced by A, B, C, or D, refers to one of the four
Bold text denotes menu items, function panel items, and dialog box
buttons or options.
Bold italic text denotes a note, caution, or warning.
Italic text denotes emphasis, a cross reference, or an introduction to a
key concept.
otherwise noted.
from the keyboard, sections of code, programming examples, and
syntax examples. This font is also used for the proper names of disk
drives, paths, directories, programs, subprograms, subroutines, device
names, functions, variables, parameters, file names, and extensions, and
for statements and comments taken from program code.
Macintosh computers unless otherwise noted.
programmable peripheral interface (PPI) chips on the PCI-DIO-96.
SCXISCXI stands for Signal Conditioning eXtensions for Instrumentation
and is a National Instruments product line designed to perform
front-end signal conditioning for National Instruments plug-in DAQ
boards.
< >Angle brackets containing numbers separated by an ellipses represent a
range of values associated with a bit, signal, or port (for example,
ACH<0..7> stands for ACH0 through ACH7).
Abbreviations, acronyms, metric prefixes, mnemonics, symbols, and
terms are listed in the Glossary.
National Instruments Documentation
The PCI-DIO-96 User Manual is one piece of the documentation set for
your data acquisition system. You could have any of several types of
manuals, depending on the hardware and software in your system. Use
the manuals you have as follows:
•Getting Started with SCXI—If you are using SCXI, this is the first
manual you should read. It gives an overview of the SCXI system
and contains the most commonly needed information for the
modules, chassis, and software.
•Your SCXI hardware user manuals—If you are using SCXI, read
these manuals next for detailed information about signal
connections and module configuration. They also explain in greater
detail how the module works and contain application hints.
•Your DAQ hardware user manuals—These manuals have detailed
information about the DAQ hardware that plugs into or is
connected to your computer. Use these manuals for hardware
installation and configuration instructions, specification
information about your DAQ hardware, and application hints.
•Software documentation—Examples of software documentation
you may have are the LabVIEW, LabWindows/CVI, or
ComponentWorks documentation sets and the NI-DAQ
documentation. After you set up your hardware system, use either
the application software or the NI-DAQ documentation to help you
write your application. If you have a large and complicated system,
it is worthwhile to look through the software documentation before
you configure your hardware.
National Instruments CorporationxiPCI-DIO-96 User Manual
About This Manual
•Accessory installation guides or manuals—If you are using
accessory products, read the terminal block and cable assembly
installation guides or accessory board user manuals. They explain
how to physically connect the relevant pieces of the system.
Consult these guides when you are making your connections.
•SCXI Chassis User Manual—If you are using SCXI, read these
manuals for maintenance information on the chassis and
installation instructions.
Related Documentation
The following National Instruments document contains information
that you may find helpful as you read this manual:
•Application Note 025, Field Wiring and Noise Considerations for
Analog Signals
The following documents also contain information that you may find
helpful as you read this manual:
•Your computer’s technical reference manual
•PCI Local Bus Specification, Revision 2.0
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 D, Customer Communication, at the end of this manual.
This chapter describes the PCI-DIO-96; lists what you need to get
started, software programming choices, optional equipment; describes
custom cabling options; and explains how to unpack the PCI-DIO-96.
About the PCI-DIO-96
Thank you for purchasing a National Instruments PCI-DIO-96 board.
The PCI-DIO-96 is a 96-bit, parallel, digital I/O interface for PCI bus
computers. Four 82C55A programmable peripheral interface (PPI)
chips control the 96 bits of TTL-compatible digital I/O. The four OKI
Semiconductor 82C55A PPI chips can operate in unidirectional mode,
bidirectional mode, or handshaking mode and can generate interrupt
requests to your computer. You can program the 82C55A for almost any
8-bit or 16-bit digital I/O application. The OKI Semiconductor 82C53
counter/timer chip has two usable counters that can generate timed
interrupt requests to your computer. The digital I/O lines are all
accessible through a 100-pin female connector.
The PCI-DIO-96 is a completely switchless and jumperless DAQ board.
All resource allocation is completed automatically at startup, so you
will not need to set interrupt levels or base addresses for the
PCI-DIO-96.
1
You can use the PCI-DIO-96 in a wide range of digital I/O applications.
For example, you can connect the PCI-DIO-96 to any of the following:
panel meters, instruments and test equipment with BCD readouts and/or
controls, or optically isolated, solid-state relays and I/O module
mounting racks.
With the PCI-DIO-96, you can use your computer as a digital I/O
system controller for laboratory testing, production testing, and
industrial process monitoring and control.
Detailed PCI-DIO-96 specifications are in Appendix A, Specifications.
National Instruments Corporation1-1PCI-DIO-96 User Manual
Chapter 1Introduction
What You Need to Get Started
To set up and use your PCI-DIO-96 board, you will need the following:
❑ PCI-DIO-96 board
❑ PCI-DIO-96 User Manual
❑ One of the following software packages and documentation:
ComponentWorks
LabVIEW for Macintosh
LabVIEW for Windows
LabWindows/CVI for Windows
NI-DAQ for Macintosh
NI-DAQ for PC Compatibles
❑ Your computer
Software Programming Choices
There are several options to choose from when programming your
National Instruments DAQ hardware. You can use LabVIEW,
LabWindows/CVI, ComponentWorks, or other application
development environments with the NI-DAQ instrument driver, or you
can register-level program.
National Instruments Application Software
ComponentWorks contains tools for data acquisition and instrument
control built on NI-DAQ driver software. ComponentWorks provides a
higher-level programming interface for building virtual instruments
through standard OLE controls and DLLs. With ComponentWorks, you
can use all of the configuration tools, resource management utilities,
and interactive control utilities included with NI-DAQ.
LabVIEW features interactive graphics, a state-of-the-art user
interface, and a powerful graphical programming language. The
LabVIEW Data Acquisition VI Library, a series of VIs for using
LabVIEW with National Instruments DAQ hardware, is included with
LabVIEW. The LabVIEW Data Acquisition VI Library is functionally
equivalent to the NI-DAQ software.
LabWindows/CVI features interactive graphics, a state-of-the-art user
interface, and uses the ANSI standard C programming language. The
LabWindows/CVI Data Acquisition Library, a series of functions for
using LabWindows/CVI with National Instruments DAQ hardware, is
included with the NI-DAQ software kit. The LabWindows/CVI Data
Acquisition Library is functionally equivalent to the NI-DAQ software.
Using ComponentWorks, LabVIEW, or LabWindows/CVI software
will greatly reduce the development time for your data acquisition and
control application.
NI-DAQ Driver Software
The NI-DAQ driver software is included at no charge with all National
Instruments DAQ hardware. NI-DAQ is not included with SCXI or
accessory products, except the SCXI-1200. NI-DAQ has an extensive
library of functions that you can call from your application
programming environment. These functions include routines for analog
input (A/D conversion), buffered data acquisition (high-speed A/D
conversion), analog output (D/A conversion), waveform generation
(timed D/A conversion), digital I/O, counter/timer operations, SCXI,
RTSI, self-calibration, messaging, and acquiring data to memory.
Chapter 1Introduction
NI-DAQ has both high-level DAQ I/O functions for maximum ease of
use and low-level DAQ I/O functions for maximum flexibility and
performance. Examples of high-level functions are streaming data to
disk or acquiring a certain number of data points. An example of a
low-level function is writing directly to registers on the DAQ device.
NI-DAQ does not sacrifice the performance of National Instruments
DAQ devices because it lets multiple devices operate at their peak
performance.
NI-DAQ also internally addresses many of the complex issues between
the computer and the DAQ hardware such as programming interrupts
and DMA controllers. NI-DAQ maintains a consistent software
interface among its different versions so that you can change platforms
with minimal modifications to your code. Whether you are using
conventional programming languages, ComponentWorks, LabVIEW,
or LabWindows/CVI, your application uses the NI-DAQ driver
software, as illustrated in Figure 1-1.
National Instruments Corporation1-3PCI-DIO-96 User Manual
Chapter 1Introduction
Programming Environment
SCXI Hardware
Figure 1-1. The Relationship between the Programming Environment,
Register-Level Programming
The final option for programming any National Instruments DAQ
hardware is to write register-level software. Writing register-level
programming software can be very time-consuming and inefficient, and
is not recommended for most users.
Conventional
DAQ or
ComponentWorks,
NI-DAQ
Driver Software
NI-DAQ, and Your Hardware
LabVIEW, or
LabWindows/CVI
Personal
Computer or
Workstation
Even if you are an experienced register-level programmer, consider
using NI-DAQ or other National Instruments application software to
program your National Instruments DAQ hardware. Using NI-DAQ,
ComponentWorks, LabVIEW, or LabWindows/CVI software is easier
than, and as flexible as, register-level programming, and can save
weeks of development time.
National Instruments offers a variety of products to use with your
PCI-DIO-96 board, including cables, connector blocks, and other
accessories, as follows:
•Cables and cable assemblies
•Connector blocks, 50-pin screw terminals
•SCXI modules and accessories for isolating, amplifying, exciting,
and multiplexing signals for relays and analog output. With SCXI
you can condition and acquire up to 3,072 channels.
•Low channel count signal conditioning modules, boards, and
accessories, including conditioning for strain gauges and RTDs,
simultaneous sample and hold, and relays
For more information about optional equipment available from
National Instruments, refer to your National Instruments catalog or call
the office nearest you.
Custom Cabling
Chapter 1Introduction
National Instruments offers cables and accessories for you to prototype
your application or to use if you frequently change board
interconnections.
If you want to develop your own cable, the mating connector for the
PCI-DIO-96 is a 100-position, right-angle receptacle without board
locks. Recommended manufacturer part numbers for this mating
connector are as follows:
National Instruments Corporation1-5PCI-DIO-96 User Manual
Chapter 1Introduction
Unpacking
Your PCI-DIO-96 board is shipped in an antistatic package to prevent
electrostatic damage to the board. Electrostatic discharge can damage
several components on the board. To avoid such damage in handling the
board, take the following precautions.
•Ground yourself via a grounding strap or by holding a grounded
object.
•Touch the antistatic package to a metal part of your computer
chassis before removing the board from the package.
•Remove the board from the package 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 describes how to install and configure your PCI-DIO-96
board.
Software Installation
If you are using NI-DAQ, ComponentWorks, LabWindows/CVI, or
LabVIEW, refer to the installation instructions in your documentation
to install and configure your software.
If you are a register-level programmer, refer to Chapter 5, Register Map and Description, and Chapter 6, Programming, of this manual.
Hardware Installation
The PCI-DIO-96 can be installed in any unused PCI expansion slot in
your computer.
The following are general installation instructions. Consult your
computer user manual or technical reference manual for specific
instructions and warnings.
1.Turn off your computer.
2.Remove the top cover or access port to the I/O channel.
3.Remove the expansion slot cover on the back panel of the
computer.
4.Insert the PCI-DIO-96 in an unused 5 V PCI slot. The fit may be
tight, but do not force the board into place.
5.Screw the PCI-DIO-96 mounting bracket to the back panel rail of
the computer, or use the slot side tabs, if available, to secure the
PCI-DIO-96 in place.
6.Replace the computer cover.
2
The PCI-DIO-96 board is installed. You are now ready to configure
your hardware.
National Instruments Corporation2-1PCI-DIO-96 User Manual
Chapter 2Installation and Configuration
Board Configuration
The PCI-DIO-96 is completely software configurable. The PCI-DIO-96
is fully compliant with the PCI Local Bus Specification, Revision 2.0.
Therefore, all board resources are automatically allocated by the PCI
system, including the base address and interrupt level. The base address
for the PCI-DIO-96 is mapped into PCI memory space. You do not need
to perform any configuration steps after the system powers up.
This chapter describes how to make input and output signal connections
to your PCI-DIO-96 via the board I/O connector.
I/O Connector
The I/O connector for the PCI-DIO-96 has 100 pins that you can
connect to 50-pin accessories with the R1005050 cable.
Warning: Connections that exceed any of the maximum ratings of input or output
!
I/O Connector Pin Descriptions
signals on the PCI-DIO-96 can damage the PCI-DIO-96 board and your
computer. The description of each signal in this chapter includes
information about maximum input ratings. National Instruments is NOT
liable for any damages resulting from signal connections that exceed these
maximum ratings.
Figures 3-1 and 3-2 show the pin assignments for the PCI-DIO-96
digital I/O connector using the R1005050 ribbon cable.
3
See Table 3-1 for descriptions of each pin on the I/O connector.
Table 3-1. Signal Descriptions for PCI-DIO-96 I/O Connector Pins (Continued)
PinSignal NameDescription
Chapter 3Signal Connections
83, 85, 87, 89,
91, 93, 95, 97
84, 86, 88, 90,
92, 94, 96, 98
CPA<7..0>Bidirectional data lines for port A of PPI C—CPA7 is the
MSB, CPA0 the LSB.
DPA<7..0>Bidirectional data lines for port A of PPI D—DPA7 is the
MSB, DPA0 the LSB.
Port C Pin Assignments
The signals assigned to port C depend on how the 82C55A is
configured. In mode 0, or no handshaking configuration, port C is
configured as two 4-bit I/O ports. In modes 1 and 2, or handshaking
configuration, port C is used for status and handshaking signals with
zero, two, or three lines available for general-purpose I/O. Table 3-2
summarizes the port C signal assignments for each configuration.
Consult Chapter 6, Programming, for register-level programming
information.
Note:Table 3-2 shows both the port C signal assignments and the terminology
correlation between different documentation sources. The 82C55A
terminology refers to the different 82C55A configurations as modes
whereas NI-DAQ, ComponentWorks, LabWindows/CVI, and LabVIEW
documentation refers to them as handshaking and no handshaking. These
signal assignments are the same for all four 82C55A PPIs. Refer to Port Identification in Chapter 6, Programming, for more information.
National Instruments Corporation3-5PCI-DIO-96 User Manual
Instruments
Software
No
Handshaking
Handshaking I/OI/OIBF
APC7,
BPC7,
CPC7,
DPC7
I/OI/OI/OI/OI/OI/OI/OI/O
APC6,
BPC6,
CPC6,
or
DPC6
or
APC5,
BPC5,
CPC5,
or
DPC5
A
APC4,
BPC4,
CPC4,
or
DPC4
STBA*INTRASTBB*IBFBBINTR
APC3,
BPC3,
CPC3,
or
DPC3
APC2,
BPC2,
CPC2,
or
DPC2
APC1,
BPC1,
CPC1,
or
DPC1
APC0,
BPC0,
CPC0,
or
DPC0
B
Chapter 3Signal Connections
Table 3-2. Port C Signal Assignments (Continued)
Configuration TerminologySignal Assignments
National
82C55A/
PCI-DIO-96
User Manual
Mode 1
(Strobed
Output)
Mode 2
(Bidirectional
Bus)
*Indicates that the signal is active low.
Subscripts A and B denote port A or port B handshaking signals.
Instruments
Software
HandshakingOBFA*ACKA* I/OI/OINTRAACKB*OBFB*INTR
HandshakingOBFA*ACKA* IBF
APC7,
BPC7,
CPC7,
or
DPC7
APC6,
BPC6,
CPC6,
or
DPC6
APC5,
BPC5,
CPC5,
DPC5
Digital I/O Signal Connections
Pins 1 through 48 and pins 51 through 98 of the I/O connector are
digital I/O signal pins. The following specifications and ratings apply
to the digital I/O lines.
•Absolute maximum voltage rating-0.5 to +5.5 V with
•Digital input specifications (referenced to GND):
–Input logic high
voltage
–Input logic low
voltage
–Maximum input
current
(0 < Vin < 5 V)
APC4,
BPC4,
CPC4,
or
A
or
DPC4
STBA*INTRAI/OI/OI/O
APC3,
BPC3,
CPC3,
or
DPC3
APC2,
BPC2,
CPC2,
or
DPC2
respect to GND
2.2 V minimum5.3 V maximum
-0.3 V minimum0.8 V maximum
-1 µA minimum1 µA maximum
APC1,
BPC1,
CPC1,
or
DPC1
APC0,
BPC0,
CPC0,
or
DPC0
B
•Digital output specifications (referenced to GND):
–Output logic high
Figure 3-3 depicts signal connections for three typical digital I/O
applications.
+5 V
41
+5 V
PPI A
Port A
APA<3..0>
PPI C
Port B
CPB<7..4>
PCI-DIO-96 Board
Switch
I/O Connector
43
45
47
67
69
TTL Signal
71
73
50, 100
GND
Figure 3-3. Digital I/O Connections Block Diagram
In Figure 3-3, PPI A, port A, is configured for digital output, and PPI C,
port B, is configured for digital input. Digital input applications include
receiving TTL signals and sensing external device states such as the
state of the switch in Figure 3-3. Digital output applications include
sending TTL signals and driving external devices such as the LED
shown in Figure 3-3.
National Instruments Corporation3-7PCI-DIO-96 User Manual
Chapter 3Signal Connections
Power Connections
Pins 49 and 99 of the I/O connector supply +5 V from the computer’s
power supply via a self-resetting fuse. The fuse will reset automatically
within a few seconds after the overcurrent condition is removed. These
pins are referenced to GND and can be used to power external digital
circuitry. For more information on these output pins, see Appendix A,
Specifications.
•Power rating1 A at +4.65 to +5.25 V
Warning: Under no circumstances should you connect these +5 V power pins directly
!
to ground or to any other voltage source on the PCI-DIO-96 or any other
device. Doing so can damage the PCI-DIO-96 and the computer. National
Instruments is
Timing Specifications
This section lists the timing specifications for handshaking with the
PCI-DIO-96. The handshaking lines STB* and IBF synchronize input
transfers. The handshaking lines OBF* and ACK* synchronize output
transfers.
Table 3-3 describes the connector pins on the PCI-DIO-96 I/O
connector by pin number and gives the signal name and description of
each signal connector pin.
NOT liable for damage resulting from such a connection.
Table 3-3. Signal Names Used in Timing Diagrams
NameTypeDescription
STB*InputStrobe Input—A low signal on this handshaking line loads data
into the input latch.
IBFOutputInput Buffer Full—A high signal on this handshaking line
indicates that data has been loaded into the input latch. This is
an input acknowledge signal.
ACK*InputAcknowledge Input—A low signal on this handshaking line
indicates that the data written to the port has been accepted.
This signal is a response from the external device indicating
that it has received the data from the PCI-DIO-96.
OBF*OutputOutput Buffer Full—A low signal on this handshaking line
Table 3-3. Signal Names Used in Timing Diagrams (Continued)
NameTypeDescription
INTROutputInterrupt Request—This signal becomes high when the
82C55A requests service during a data transfer. The
appropriate interrupt enable bits must be set to generate this
signal.
RD*InternalRead—This signal is the read signal generated from the control
lines of the computer I/O expansion bus.
WR*InternalWrite —This signal is the write signal generated from the
control lines of the computer I/O expansion bus.
DATABidirectionalData Lines at the Specified Port—This signal indicates the
availability of data on the data lines at a port that is in the output
mode. If the port is in the input mode, this signal indicates when
the data on the data lines should be valid.
National Instruments Corporation4-1PCI-DIO-96 User Manual
Chapter 4Theory of Operation
Data/Address
Interface Control
Error Reporting
Arbitration
System
PCI
Interrupt
+5 VDC
37
Port A
82C55A
PPI A
6
Interrupt
Interrupt
Data
Bus
Bus
82C55A
PPI B
82C55A
PPI C
82C55A
PPI D
82C53
Timer
2
2
2
1
MITE
PCI
Interface
Circuitry
Interrupt
Control
Circuitry
Port B
Port C
Port A
Port B
Port C
Port A
Port B
Port C
Port A
Port B
Port C
8
8
8
8
8
8
8
8
8
I/O Connector
8
8
8
1 A Fuse
Figure 4-1. PCI-DIO-96 Block Diagram
PCI Interface Circuitry
The PCI-DIO-96 uses the MITE ASIC to communicate with the PCI
bus. The MITE ASIC was designed by National Instruments
specifically for data acquisition. The PCI-DIO-96 is fully compliant
with Local Bus Specification 2.0.
The base memory address and interrupt level for the board are stored
inside the MITE at power on. You do not need to set any switches or
jumpers.
The four 82C55A PPI chips are the heart of the PCI-DIO-96. Each of
these chips has 24 programmable I/O pins that represent three 8-bit
ports: PA, PB, and PC. Each port can be programmed as an input or
output port. The 82C55A has three modes of operation: simple I/O
(mode 0), strobed I/O (mode 1), and bidirectional I/O (mode 2). In
modes 1 and 2, the three ports are divided into two groups: group A and
group B. Each group has eight data bits and four control and status bits
from port C (PC). Modes 1 and 2 use handshaking signals from the
computer to synchronize data transfers. Refer to Chapter 6,
Programming, or to Appendix B, MSM82C55A Data Sheet, for more
detailed information.
82C53 Programmable Interval Timer
The 82C53 programmable interval timer generates timed interrupt
requests to your computer. The 82C53 has three 16-bit counters, which
can each be used in one of six different modes. The PCI-DIO-96 uses
two of the counters to generate interrupt requests; the third counter is
not used and is not accessible. Refer to Chapter 5, Register Map and Description, or to Appendix C, MSM82C53 Data Sheet, for more
detailed information.
Chapter 4Theory of Operation
Interrupt Control Circuitry
Two software-controlled registers determine which devices, if any,
generate interrupts. Each of the four 82C55A devices has two interrupt
lines, PC3 and PC0, connected to the interrupt circuitry. The 82C53
device has two of its three counter outputs connected to the interrupt
circuitry. Any of these 10 signals can interrupt the computer if the
interrupt circuitry is enabled and the corresponding enable bit is set. See
Chapter 5, Register Map and Description, for more information.
Normally, the handshaking circuitry controls PC3 and/or PC0 of the
82C55A devices; however, you can configure either of these two lines
for input and then use them as external interrupts. An interrupt occurs
on the signal line low-to-high transition.
Refer to Chapter 5, Register Map and Description, Chapter 6,
Programming, Appendix B, MSM82C55A Data Sheet, or Appendix C,
MSM82C53 Data Sheet, for more detailed information concerning
Note:If you plan to use a programming software package such as
ComponentWorks, LabVIEW, LabWindows/CVI, or NI-DAQ with your
PCI-DIO-96 board, you need not read this chapter.
Introduction
5
This chapter describes in detail the address and function of each
PCI-DIO-96 register.
The three 8-bit ports of the 82C55A are divided into two groups of 12
signals: group A and group B. One 8-bit control word selects the mode
of operation for each group. The group A control bits configure port A
(A<7..0>) and the upper 4 bits (nibble) of port C (C<7..4>). The
group B control bits configure port B (B<7..0>) and the lower nibble of
port C (C<3..0>). These configuration bits are defined in the section
Register Description for the 82C55A later in this chapter. Because there
are four 82C55A PPI devices on the board, they are referenced as
PPI A, PPI B, PPI C, and PPI D when differentiation is required.
The three 16-bit counters of the 82C53 are accessed through individual
data ports and controlled by one 8-bit control word. The control word
selects how the counter data ports are accessed and what mode the
counter uses. The configuration bits are defined in the section Register Description for the 82C53 later in this chapter.
In addition to the 82C55A and 82C53 devices, there are two registers
that select which onboard signals are capable of generating interrupts.
There are two interrupt signals from each of the four 82C55A devices
and two interrupt signals from the 82C53 device. Individual enable bits
select which of these 10 signals can generate interrupts. Also, a master
enable signal determines whether the board can actually send a request
to the computer. The configuration bits for these registers are defined
in the section Register Description for the Interrupt Control Registers
later in this chapter.
PORTA Register
PORTB Register
PORTC Register
Configuration Register
Interrupt Control Register Group
Register 1
Register 2
Interrupt Clear Register
Register Descriptions
The register descriptions for the devices used on the PCI-DIO-96 are
given on the pages that follow. The register description bits labeled with
an X indicate don’t care bits. Always write a 0 to these bits.
Register Description Format
The remainder of this section discusses each of the PCI-DIO-96
registers in the order shown in Table 5-1. Each register group is
introduced, followed by a detailed bit description of each register.
Individual register descriptions give the address (in hexadecimal), type,
data size, and bit map of the register, followed by a description of each
bit.
The register bit map shows a diagram of the register with the MSB
(bit 7) shown on the left, and the LSB (bit 0) shown on the right. A
rectangle with the bit name inside represents each bit.
The bit map for the Interrupt Clear Register states not applicable, no bits used. The data is ignored when you write to this register; therefore,
any bit pattern will suffice.
Register Description for the 82C55A
Figure 5-1 shows the two control word formats used to completely
program the 82C55A. The control word flag (bit 7) determines which
control word format is being programmed. When the control word flag
National Instruments Corporation5-3PCI-DIO-96 User Manual
Chapter 5Register Map and Description
is 1, bits 6 through 0 select the I/O characteristics of the 82C55A ports.
These bits also select the mode in which the ports are operating; that is,
mode 0, mode 1, or mode 2. When the control word flag is 0, bits 3
through 0 select the bit set/reset format of port C.
Table 5-2 shows the control words for setting or resetting each bit in
port C. Notice that bit 7 of the control word is cleared when
programming the set/reset option for the bits of port C.
Table 5-2. Port C Set/Reset Control Words
Bit NumberBit Set
Control Word
00xxx00010xxx0000xxxxxxxb
10xxx00110xxx0010xxxxxxbx
20xxx01010xxx0100xxxxxbxx
30xxx01110xxx0110xxxxbxxx
40xxx10010xxx1000xxxbxxxx
50xxx10110xxx1010xxbxxxxx
60xxx11010xxx1100xbxxxxxx
70xxx11110xxx1110bxxxxxxx
Register Description for the 82C53
Figure 5-2 shows the control word format used to completely program
the 82C53. Bits 7 and 6 of the control word select the counter to be
programmed. Bits 5 and 4 select the mode by which the count data is
written to and read from the selected counter. Bits 3, 2, and 1 select the
mode for the selected counter. Bit 0 selects whether the counter counts
in binary or BCD format.
Register Description for the Interrupt Control Registers
There are two interrupt control registers on the PCI-DIO-96. One of
these registers has individual enable bits for the two interrupt lines from
each of the 82C55A devices. The other register has a master interrupt
enable bit and two bits for the timed interrupt circuitry. Of the latter two
bits, one bit enables counter interrupts, while the other selects counter 0
or counter 1. The bit maps and signal definitions are listed in this
chapter.
Address:Base address + 14 (hex)
Type:Write-only
Word Size:8-bit
Bit Map:
76543210
DIRQ1DIRQ0CIRQ1CIRQ0BIRQ1BIRQ0AIRQ1AIRQ0
BitNameDescription
7DIRQ1PPI D Port B Interrupt Enable Bit—If this bit and the
INTEN bit in Interrupt Control Register 2 are both
set, PPI D sends an interrupt, INTRB, to the
computer. If this bit is cleared, PPI D does not send
the interrupt INTRB to the computer, regardless of
the setting of INTEN.
6DIRQ0PPI D Port A Interrupt Enable Bit—If this bit and
the INTEN bit in Interrupt Control Register 2 are
both set, PPI D sends an interrupt, INTRA, to the
computer. If this bit is cleared, PPI D does not send
the interrupt INTRA to the computer, regardless of
the setting of INTEN.
5CIRQ1PPI C Port B Interrupt Enable Bit—If this bit and the
INTEN bit in Interrupt Control Register 2 are both
set, PPI C sends an interrupt, INTRB, to the
computer. If this bit is cleared, PPI C does not send
the interrupt INTRB to the computer, regardless of
the setting of INTEN.
4CIRQ0PPI C Port A Interrupt Enable Bit—If this bit and the
INTEN bit in Interrupt Control Register 2 are both
set, PPI C sends an interrupt, INTRA, to the
computer. If this bit is cleared, PPI C does not send
the interrupt INTRA to the computer, regardless of
the setting of INTEN.
National Instruments Corporation5-7PCI-DIO-96 User Manual
Chapter 5Register Map and Description
BitNameDescription (Continued)
3BIRQ1PPI B Port B Interrupt Enable Bit—If this bit and the
2BIRQ0PPI B Port A Interrupt Enable Bit—If this bit and the
1AIRQ1PPI A Port B Interrupt Enable Bit—If this bit and the
0AIRQ0PPI A Port A Interrupt Enable Bit—If this bit and
INTEN bit in Interrupt Control Register 2 are both
set, PPI B sends an interrupt, INTRB, to the
computer. If this bit is cleared, PPI B does not send
the interrupt INTRB to the computer, regardless of
the setting of INTEN.
INTEN bit in Interrupt Control Register 2 are both
set, PPI B sends an interrupt, INTRA, to the
computer. If this bit is cleared, PPI B does not send
the interrupt INTRA to the computer, regardless of
the setting of INTEN.
INTEN bit in Interrupt Control Register 2 are both
set, PPI A sends an interrupt, INTRB, to the
computer. If this bit is cleared, PPI A does not send
the interrupt INTRB to the computer, regardless of
the setting of INTEN.
the INTEN bit in Interrupt Control Register 2 are
both set, PPI A sends an interrupt, INTRA, to the
computer. If this bit is cleared, PPI A does not send
the interrupt INTRA to the computer, regardless of
the setting of INTEN.
Address:Base address + 15 (hex)
Type:Write-only
Word Size:8-bit
Bit Map:
76543210
XXXXXINTENCTRIRQCTR1
BitNameDescription
7–3XDon’t care bit.
2INTENInterrupt Enable Bit—If this bit is set, the
PCI-DIO-96 can interrupt the computer. If this bit is
cleared, the PCI-DIO-96 cannot generate interrupts
to the computer, regardless of the status of the bits in
Interrupt Control Register 2.
1CTRIRQCounter Interrupt Enable Bit—If this bit is set, the
82C53 counter outputs can interrupt the computer. If
this bit is cleared, the counter outputs have no effect.
0CTR1Counter Select Bit—If this bit is set, the output from
counter 1 of the 82C53 is connected to the interrupt
request circuitry. In this mode, counter 0 of the
82C53 acts as a frequency scaler for counter 1,
which generates the interrupt. If CTR1 is cleared, the
output from counter 0 of the 82C53 is connected to
the interrupt request circuitry. In this mode,
counter 0 generates the interrupt. For more
information, see the section Interrupt Programming
Example for the 82C53 in Chapter 6, Programming.
National Instruments Corporation5-9PCI-DIO-96 User Manual
Chapter 5Register Map and Description
Interrupt Clear Register
The interrupt clear register has no bits associated with it. Use this register to reset the
state of the interrupt request signal once the interrupt routine has been entered. To clear
the interrupt, perform an 8-bit write to this register address; the data is irrelevant.
Address:Base address + 16 (hex)
Type:Write-only
Word Size:8-bit
Bit Map:
This chapter contains instructions on how to operate the PCI-DIO-96
circuitry, and examples of the programming steps necessary to execute
an operation. If you are not using NI-DAQ, you must first initialize your
board. The initialization steps are unique for PC and Macintosh users,
so refer to the section pertaining to your platform.
Programming the PCI-DIO-96 involves writing to and reading from
registers on the board. You will find a listing of these registers in
Chapter 5, Register Map and Description, of this manual.
PCl Local Bus
The PCI-DIO-96 is fully compatible with the PCI Local Bus
Specification, Version 2.1, from the PCI Special Interest Group (SIG).
The PCI Local Bus is a high performance, 32-bit bus with multiplexed
address and data lines. The PCI system arbitrates and assigns resources
through software, freeing you from manually setting switches and
jumpers. Bus-related resources must be configured before you attempt
to execute a register-level program. This entails assigning a base
address and interrupt channel to the PCI-DIO-96.
6
You can use PCI local bus boards on both PC-compatible and
Macintosh computers. However, due to the differences in those
systems, configuration will be different and performed through
different versions of NI-DAQ.
Programming Examples
The programming examples in this section demonstrate the
programming steps needed to perform several different operations. The
instructions are language independent; that is, they tell you to read or
write a given register or to detect if a given bit is set or cleared, without
presenting the actual code. The information given is not intended to be
used without proper modification in a practical solution.
National Instruments Corporation6-1PCI-DIO-96 User Manual
Chapter 6Programming
Note:In this chapter all numbers preceded by 0x are hexadecimal
Before you can implement any of the examples into a real application,
you must know the base memory address for your board. To generate
and process any interrupts, you must write and install an applicable
interrupt service routine.
Common terms that you will see used in the programming examples are
listed below:
Port AAddress of PPI A Port A Register
(Base Address + 0x00)
Port BAddress of PPI A Port B Register
(Base Address + 0x01)
Port CAddress of PPI A Port C Register
(Base Address + 0x02)
8255CnfgAddress of PPI A Configuration
Register
(Base Address + 0x03)
Ctr0 Address of 82C53 Counter 0 Register
Ctr1Address of 82C53 Counter 1 Register
CntrCnfgAddress of 82C53 Configuration
IREG1Address of Interrupt Control Register 1
IREG2Address of Interrupt Control Register 2
Write (address, data)Generic function call for a memory
Read (address)Generic function call for a memory
CWrite (offset, data)PCI configuration space write of data to
To program at the register level without NI-DAQ, you must know the
PCI-DIO-96 base memory address and install an interrupt handler to
generate interrupts. Writing an interrupt handler is solely left to you
and is not discussed in this manual. The PCI-DIO-96 uses the MITE
Application Specific Integrated Circuit (ASIC) chip as the PCI bus
interface. National Instruments designed this ASIC specifically for
data acquisition. In order for the board to operate properly this chip
must be configured. Ordinarily, NI-DAQ performs this function, but if
you are not using NI-DAQ, then you must configure the MITE ASIC
chip. The following sections explain how to accomplish this. The
references made about PCI BIOS
In order to configure the MITE chip you must first write an algorithm
that finds and stores all configuration information about the
PCI-DIO-96. You can do this by using PCI BIOS calls to search PCI
configuration space for the National Instruments vendor ID (0x1093)
and PCI-DIO-96 device ID (0x0160). If a board is found, the algorithm
stores all the board’s configuration information into a data structure.
Base Address Register 0 (BAR0) corresponds to the base address of the
MITE, while Base Address Register 1 (BAR1) is the base address of the
board registers. The size of each of these windows is 4 KB. Both
addresses will most likely be mapped above 1 MB in the memory map.
This means that in order to communicate with the board you must know
how to perform memory cycles to extended memory. Information is
provided to re-map the board under 1 MB in the memory map, which
makes communicating with the board simpler. PCI BIOS read and write
calls are used to accomplish this. Use the pseudocode in this section to
re-map the board below 1 MB. If you choose not to re-map the board,
you must still perform Steps 4 and 5. All values in this example are
32 bits.
1.Write the address to which you want to re-map the MITE to PCI configuration space offset 0x10 (BAR0).
2.Write the value 0x0000aeae to offset 0x340 from the new MITE
address.
3.Write the address to which you want to re-map the board to PCI configuration space offset 0x14 (BAR1).
Chapter 6Programming
1
calls are left to you to implement.
1. You can obtain more information on PCI BIOS calls from the PCI SIG on the World Wide
Web.
The new base address for the PCI-DIO-96 would now be 0xd1000, for
this example. It is important that the memory range to which you
re-map the board is not being used by another device or system
resource. You can exclude this memory from use with a memory
manager.
PCI Initialization for the Macintosh
Programming Options
To program at the register level, you must know the PCI-DIO-96 base
memory address and you must install an interrupt handler to generate
interrupts. Both of these operations are difficult tasks. To make this
process easier, National Instruments provides a driver toolkit and
additional NI-DAQ functions to perform these operations.
You have three options to program the PCI-DIO-96. The following
sections describe these options.
Using NI-DAQ and the Driver Toolkit
Included on the NI-DAQ installation media is a toolkit for creating
plug-in drivers for most of the devices which NI-DAQ controls. Using
this toolkit, you can write a plug-in driver for your PCI board, but
continue to use NI-DAQ for any other boards that are installed in your
system. When you develop a driver using the toolkit, your driver
plug-in has access to all the information and support functions it needs
to control the device and respond to interrupts. When you use the
toolkit, your application is divided into two parts—a driver and an
interface to the driver. You use the driver to control the hardware and
the interface to control the driver. You can install the driver toolkit by
launching the NI-DAQ installer, choosing the alternate installations
option (see the installer for help), and dragging the toolkit icon to your
disk. Documentation for the toolkit is included in the toolkit.
Performing Simple Accesses
To perform simple input and output using your PCI board without using
the drivers included in NI-DAQ or writing your own drivers, you can
use the
board. If you want to use interrupts, you must work directly with the
Macintosh Operating System (OS), and you could inadvertently corrupt
portions of NI-DAQ. Therefore, National Instruments recommends this
option only if you are not generating interrupts. If you need or want to
use interrupts, either use the driver toolkit mentioned earlier or develop
your own method.
Get_DAQ_Device_Info call to do simple accesses with the
Developing Your Own Interrupt Method
National Instruments does not support developing your own interrupt
method. To do this, consult the following documents:
•Designing PCI Cards and Drivers for Power Macintosh Computers
•Inside Macintosh: Devices
•Inside Macintosh: Memory
•Inside Macintosh: Operating System Utilities
•Inside Macintosh: Processes
•Inside Macintosh: Power PC System Software
Because NI-DAQ has not configured your board, you will need to
perform the following code sequence to activate the board. Using the
documents listed above, you must retrieve the deviceNode parameter
from the Name Registry.
// activate the standard i/o window.
*((unsigned long *) (miteBaseAddress +
0x000000c0L)) =
EndianSwap32Bit(((cardBaseAddress &
0xffffff00L) | 0x00000080L));
// return the base address of the board.
return ((void *) cardBaseAddress);
}
Port Identification
This manual refers to each port as A, B, and C and each PPI (82C55A)
as A, B, C, and D. NI-DAQ and LabVIEW documentation use numbers
to identify each port and PPI. For example, this manual uses PPI A
port A to refer to port A of the 82C55A identified as PPI A. NI-DAQ,
LabWindows/CVI, LabVIEW, or other application software
documentation, however, refer to this port as 0. Table 6-1 shows the
correlation between the different port names.
This manual also differs from the NI-DAQ, ComponentWorks,
LabWindows/CVI, and LabVIEW documentation by using different
terminology to describe the 82C55A configurations. Refer to Port C Pin Assignments in Chapter 3, Signal Connections, for more information.
PCI-DIO-96 User Manual
PPI A Port A
PPI A Port B
PPI A Port C
PPI B Port A
PPI B Port B
PPI B Port C
PPI C Port A
PPI C Port B
PPI C Port C
PPI D Port A
PPI D Port B
PPI D Port C
Programming Considerations for the 82C55A
Modes of Operation
The three basic modes of operation for the 82C55A are as follows:
•Mode 0—Basic I/O
•Mode 1—Strobed I/O
•Mode 2—Bidirectional bus
The 82C55A also has a single bit set/reset feature for port C, which is
programmed by the 8-bit control word. For additional information, refer
to Appendix B, MSM82C55A Data Sheet.
Mode 0
This mode can be used for simple input and output operations for each
port. No handshaking is required; a specified port simply writes to or
reads from data.
National Instruments Corporation6-7PCI-DIO-96 User Manual
Chapter 6Programming
Mode 0 has the following features:
•Two 8-bit ports (A and B) and two 4-bit ports (upper and lower
nibbles of port C).
•Any port can be input or output.
•Outputs are latched, but inputs are not latched.
Mode 1
This mode transfers data that is synchronized by handshaking signals.
Ports A and B use the eight lines of port C to generate or receive the
handshake signals. This mode divides the ports into two groups
(group A and group B) and includes the following features:
•Each group contains one 8-bit data port (port A or port B) and one
4-bit control/data port (upper or lower nibble of port C).
•The 8-bit data ports can be either input or output; both are latched.
•The 4-bit ports are used for control and status of the 8-bit data ports.
•Interrupt generation and enable/disable functions are available.
Mode 2
This mode can be used for communication over a bidirectional 8-bit
bus. Handshaking signals are used in a manner similar to mode 1.
Mode 2 is available for use in group A only (port A and the upper
nibble of port C). Other features of this mode include the following:
•One 8-bit bidirectional port (port A) and a 5-bit control/status port
(port C).
•Latched inputs and outputs.
•Interrupt generation and enable/disable functions.
Single Bit Set/Reset Feature
Any of the eight bits of port C can be set or reset with one control word.
This feature generates control signals for port A and port B when these
ports are operating in mode 1 or mode 2.
Mode 0–Basic I/O
You can use mode 0 for simple I/O functions (no handshaking) for each
of the three ports and assign each port as an input or an output port.
Table 6-2 shows the 16 possible I/O configurations. Notice that bit 7 of
the control word is set when programming the mode of operation for
each port.
National Instruments Corporation6-9PCI-DIO-96 User Manual
Chapter 6Programming
Mode 0 Basic I/O Programming Example
The following example shows how to configure PPI A for mode 0 input
and output.
Write (8255Cnfg,0x80)Set mode 0—ports A, B, and C
Write (PortA, Data)Write data to port A
Write (PortB, Data)Write data to port B
Write (PortC, Data)Write data to port C
Write (8255Cnfg,0x90)Set mode 0—port A is Input;
Write (PortB, Data)Write data to port B
Read (PortA)Read data from port A
Mode 1–Strobed Input
Note:For mode 1 examples, you must configure the don’t care bits appropriately
in the control word if you want to use the other ports in combination with
the example.
In mode 1, the digital I/O bits are divided into two groups: group A and
group B. Each of these groups contains one 8-bit port and one 4-bit
control/data port. The 8-bit port can be either an input or an output port,
and the 4-bit port is used for control and status information for the 8-bit
port. The transfer of data is synchronized by handshaking signals in the
4-bit port.
are outputs
ports B and C are outputs
The control word written to the Configuration Register to configure
port A for input in mode 1 is shown in Figure 6-1. You can use bits PC6
and PC7 of port C as extra input or output lines.
D7D6D5D4D3D2D1D0
10111/0XXX
Figure 6-1. Control Word to Configure Port A for Mode 1 Input
Figure 6-2 shows the control word written to the Configuration Register
to configure port B for input in mode 1. Notice that port B does not have
extra input or output lines from port C.
D7D6D5D4D3D2D1D0
1XXXX1X1
Figure 6-2. Control Word to Configure Port B for Mode 1 Input
During a mode 1 data read transfer, read port C to obtain the status of
the handshaking lines and interrupt signals. See the Port C Status-Word
Bit Definitions for Input (Ports A and B), Port C Status-Word Bit
Definitions for Output (Ports A and B), and Port C Status-Word Bit
Definitions for Bidirectional Data Path (Port A Only) sections later in
National Instruments Corporation6-11PCI-DIO-96 User Manual
Chapter 6Programming
Port C Status-Word Bit Definitions for Input
(Ports A and B)
Address:Base address + 03 (hex) for PPI A
Base address + 07 (hex) for PPI B
Base address + 0B (hex) for PPI C
Base address + 0F (hex) for PPI D
Type:Read and write
Word Size:8-bit
Bit Map:
76543210
I/OI/OIBFAINTEAINTRAINTEBIBFBINTRB
BitNameDescription
7–6I/OInput/Output—These bits can be used for
general-purpose I/O when port A is in mode 1 input.
If these bits are configured for output, the port C bit
set/reset function must be used to manipulate them.
5IBFAInput Buffer Acknowledgment for Port A—A high
setting indicates that data has been loaded into the
input latch for port A.
4INTEAInterrupt Enable Bit for Port A—Setting this bit
enables interrupts from port A of the 82C55A.
Control this bit by setting/resetting PC4.
3INTRAInterrupt Request Status for Port A—When INTEA
and IBFA are high, this bit is high, indicating that an
interrupt request is pending for port A.
2INTEBInterrupt Enable Bit for Port B—Setting this bit
enables interrupts from port B of the 82C55A.
Control this bit by setting/resetting PC2.
1IBFBInput Buffer Acknowledgment for Port B—A high
setting indicates that data has been loaded into the
input latch for port B.
0INTRBInterrupt Request Status for Port B—When INTEB
and IBFB are high, this bit is high, indicating that an
interrupt request is pending for port B.
At the digital I/O connector, port C has the pin assignments shown in
Figure 6-3 when in mode 1 input. Notice that the status of STBA* and
the status of STBB* are not included in the port C status word.
Figure 6-3. Port C Pin Assignments on I/O Connector when Port C Configured
Mode 1 Strobed Input Programming Example
The following example shows how to configure PPI A for mode 1
input.
Write (8255Cnfg, 0xB0)Set mode 1—port A is an input.
Loop until IBFA (PC5) is set, indicating that data is
Read (PortA)Now, read the data from port A
Mode 1–Strobed Output
Note:For mode 1 examples, you must configure the don’t care bits appropriately
in the control word if you want to use the other ports in combination with
the example.
The control word written to the Configuration Register to configure
port A for output in mode 1 is shown in Figure 6-4. You can use bits
PC4 and PC5 of port C as extra input or output lines.
National Instruments Corporation6-13PCI-DIO-96 User Manual
Chapter 6Programming
D7D6D5D4D3D2D1D0
10101/0XXX
Port C bits PC4 and PC5
1 = Input
0 = Output
Figure 6-4. Control Word to Configure Port A for Mode 1 Output
The control word written to the Configuration Register to configure
port B for output in mode 1 is shown in Figure 6-5. Notice that port B
does not have extra input or output lines from port C.
D7D6D5D4D3D2D1D0
1XXXX1X0
Figure 6-5. Control Word to Configure Port B for Mode 1 Output
During a mode 1 data write transfer, you can obtain the status of the
handshaking lines and interrupt signals by reading port C. Notice that
the bit definitions are different for a write and a read transfer.
Port C Status-Word Bit Definitions for Output (Ports A and B)
Address:Base address + 03 (hex) for PPI A
Base address + 07 (hex) for PPI B
Base address + 0B (hex) for PPI C
Base address + 0F (hex) for PPI D
Type:Read and write
Word Size:8-bit
Bit Map:
76543210
OBFA*INTEAI/OI/OINTRAINTEBOBFB*INTRB
BitNameDescription
7OBFA*Output Buffer for Port A—A low setting indicates
that the CPU has written data to port A.
6INTEAInterrupt Enable Bit for Port A—Setting this bit
enables interrupts from port A of the 82C55A.
Control this bit by setting/resetting PC6.
5–4I/OInput/Output—These bits can be used for
general-purpose I/O when port A is in mode 1
output. If these bits are configured for output, you
must use the port C bit set/reset function to
manipulate them.
3INTRAInterrupt Request Status for Port A—When INTEA
and OBFA* are high, this bit is high, indicating that
an interrupt request is pending for port A.
2INTEBInterrupt Enable Bit for Port B—Setting this bit
enables interrupts from port B of the 82C55A.
Control this bit by setting/resetting PC2.
1OBFB*Output Buffer for Port B—A low setting indicates
that the CPU has written data to port B.
0INTRBInterrupt Request Status for Port B—When INTEB
and OBFB* are high, this bit is high, indicating that
an interrupt request is pending for port B.
National Instruments Corporation6-15PCI-DIO-96 User Manual
Chapter 6Programming
At the digital I/O connector, port C has the pin assignments shown in
Figure 6-6 when in mode 1 output. Notice that the status of ACKA* and
ACKB* are not included when port C is read.
Figure 6-6. Port C Pin Assignments on I/O Connector when Port C Configured for
Mode 1 Strobed Output Programming Example
The following example shows how to configure PPI A for mode 1
output.
Write (8255Cnfg, 0xA0)Set mode 1-port A is an output
Loop until OBFA (PC7) is set, indicating that the
Write (PortA, Data)Write data to port A
Mode 2–Bidirectional Bus
Note:For mode 2 examples, you must configure the don’t care bits appropriately
in the control word if you want to use the other ports in combination with
the example.
Mode 2 has an 8-bit bus that can transfer both input and output data
without changing the configuration. The data transfers are synchronized
with handshaking lines in port C. This mode uses only port A; however,
port B can be used in either mode 0 or mode 1 while port A is
configured for mode 2.
Mode 1 Output
data last written to port A
has been read
The control word written to the Configuration Register to configure
port A as a bidirectional data bus in mode 2 is shown in Figure 6-7. If
port B is configured for mode 0, you can use PC2, PC1, and PC0 of
port C as extra input or output lines.
Figure 6-7. Control Word to Configure Port A as Mode 2 Bidirectional Data Bus
During a mode 2 data transfer, you can obtain the status of the
handshaking lines and interrupt signals by reading port C. The port C
status-word bit definitions for a mode 2 transfer are shown as follows.
National Instruments Corporation6-17PCI-DIO-96 User Manual
Chapter 6Programming
Port C Status-Word Bit Definitions for Bidirectional Data Path
(Port A Only)
Address:Base address + 03 (hex) for PPI A
Base address + 07 (hex) for PPI B
Base address + 0B (hex) for PPI C
Base address + 0F (hex) for PPI D
Type:Read and write
Word Size:8-bit
Bit Map:
76543210
OBFA*INTE1IBFAINTE2INTRAI/OI/OI/O
BitNameDescription
7OBFA*Output Buffer for Port A—A low setting indicates
that the CPU has written data to port A.
6INTE1Interrupt Enable Bit for Port A Output Interrupts—
Setting this bit enables output interrupts from port A
of the 82C55A. Control this bit by setting/resetting
PC6.
5IBFAInput Buffer Acknowledgment for Port A—A high
setting indicates that data has been loaded into the
input latch of port A.
4INTE2Interrupt Enable Bit for Port A Input Interrupts—
Setting this bit enables input interrupts from port A
of the 82C55A. Control this bit by setting/resetting
PC4.
3INTRAInterrupt Request Status for Port A—If INTE1 and
IBFA are high, this bit is high, indicating that an
interrupt request is pending for port A input
transfers. If INTE2 and OBFA* are high, this bit is
high, indicating that an interrupt request is pending
for port A output transfers.
2-0I/OInput/Output—Use these bits for general-purpose
I/O lines if group B is configured for mode 0. If
group B is configured for mode 1, refer to the bit
explanations shown in the preceding mode 1
sections.
Figure 6-8 shows the port C pin assignments on the digital I/O
connector when port C is configured for mode 2. Notice that the status
of STBA* and the status of ACKA* are not included in the port C status
word.
# The three port C lines associated with group B function based on the
mode selected for group B; that is, if group B is configured for mode 0,
PC<2..0> function as general-purpose I/O, but if group B is configured
for mode 1 input or output, PC<2..0> function as handshaking lines as
shown in the preceding mode 1 sections.
Figure 6-8. Port C Pin Assignments on I/O Connector when Port C is
Configured for Mode 2
Mode 2 Bidirectional Bus Programming Example
The following example shows how to configure PPI A for mode 2 input
and output.
Write (8255Cnfg, 0xC0)Set mode 2 — port A
is bidirectional
Loop until OBFA (PC7) is set, indicating that the
data last written to port A
has been read
Write (PortA, Data)Write data to port A
Loop until IBFA (PC5) is set, indicating that data is
available in port A to be read
Read (PortA)Now, read the data from port A
National Instruments Corporation6-19PCI-DIO-96 User Manual
Chapter 6Programming
Interrupt Handling
You must set the INTEN bit of Interrupt Control Register 2 to enable
interrupts from the PCI-DIO-96. Clear this bit first to disable unwanted
interrupts. After all sources of interrupts have been disabled or placed
in an inactive state, you can set INTEN. You must set INTEN before
you generate an interrupt for proper operation.
To interrupt the computer using one of the 82C55A devices, program
the selected 82C55A for the I/O mode desired. In mode 1, set either the
INTEA or the INTEB bit to enable interrupts from port A or port B,
respectively. In mode 2, set either INTE1 or INTE2 for interrupts on
output or input transfers, respectively. The INTE1 and INTE2 interrupt
outputs are cascaded into a single interrupt output for port A. After you
enable interrupts from the 82C55A, set the appropriate enable bit for the
selected 82C55A; for example, if you select both mode 2 interrupts for
PPI C, set CIRQ0 to interrupt the computer.
To interrupt the computer using one of the 82C53 counter outputs,
program the counters as described in the Interrupt Programming Example section later in this chapter.
You can use external signals to interrupt the PCI-DIO-96 when port A
or port B is in mode 0 and the low nibble of port C is configured for
input. If port A is in mode 0, use PC3 to generate an interrupt; if port B
is in mode 0, use PC0 to generate an interrupt. After you have
configured the selected 82C55A, you must set the corresponding
interrupt enable bit in Interrupt Control Register 1. If you are using
PC3, set xIRQ0; if you are using PC0, set xIRQ1, where x is the letter
corresponding to the PPI you want to generate interrupts (A–D). When
the external signal becomes logic high, an interrupt request occurs. To
disable the external interrupt, the interrupt service routine that you have
written should acknowledge the interrupt and write the interrupt clear
register.
Interrupt Programming Examples for the 82C55A
The following examples show the process required to enable interrupts
for several different operating modes. You must write and install the
interrupt service routine in order to process the interrupt and gain any
useful knowledge from it. You should clear all interrupt sources and
interrupt enable bits first to disable unwanted interrupts.
National Instruments Corporation6-21PCI-DIO-96 User Manual
Chapter 6Programming
Programming Considerations for the 82C53
A general overview of the 82C53 and how it is configured on the
PCI-DIO-96 follows.
General Information
The 82C53 contains three counter/timers, each of which can operate in
one of six different modes. However, only counter 0 and counter 1 are
configured for operation; counter 2 is not connected, nor is it available
on the external I/O connector. In addition, counter 0 and counter 1 are
wired to the interrupt circuitry in such a way that only four of the modes
are available for use.
The source for counter 0 is a 2 MHz clock. If you use counter 0 to
interrupt the computer, configure the counter for rate generation, or
mode 2. If you use counter 1 to interrupt the computer, counter 0 is a
frequency scale that feeds the source input for counter 1. In this case,
configure both counters for rate generation, or mode 2.
To determine the time between pulses generated by counter 0, multiply
the load value by 500 ns (1/(2 MHz)). To determine the time between
pulses generated by counter 1, multiply the load value by the time
between pulses of counter 0. A sample configuration procedure is
presented in the next section.
Interrupt Programming Example
The following example shows how to set up counter 0 to generate
interrupts:
Write(IREG1, 0x00)Disable all 82C55A interrupts
Write(IREG2, 0x00)Disable counter interrupts
Write(CntrCnfg, 0x34)Set counter 0 to mode 2
Write(IREG2, 0x06)Enable interrupts and select
The counter begins counting as soon as the most significant byte is
written. When you are ready to exit your program, disable the counter
and interrupts as shown below.
Write(Cnfg, 0x30)Turn off counter 0
Write(IREG2, 0x00)Disable all PCI-DIO-96
interrupts
Note:In order for any of the interrupts to be processed, you must write and install
an interrupt service routine. Failure to do so could cause the system to fail
upon the interrupt generation.
Power consumption ................................400 mA at +5 VDC (±5%)
Power available at I/O connector............+4.65 to +5.25 V fused at 1 A
Dimensions.............................................13.7 x 10.7 cm (5.4 x 4.2 in.)
I/O connector..........................................100-pin female, 0.050 series
D-type
Environment
Operating temperature............................0° to 70° C
Storage temperature................................-55° to 150° C
Relative humidity....................................5% to 90% noncondensing
1
Transfer rate depends on the computer and software. These tests were made using either a
Power Macintosh 8500, 120 MHz computer, or a Pentium, 133 MHz computer.
This appendix contains a manufacturer data sheet for the MSM82C55A
CMOS programmable peripheral interface (OKI Semiconductor). This
interface is used on the PCI-DIO-96.
National Instruments CorporationB-1PCI-DIO-96 User Manual
Appendix
MSM82C53 Data Sheet
This appendix contains a manufacturer data sheet for the MSM82C53
CMOS programmable interval timer (OKI Semiconductor). This timer
is used on the PCI-DIO-96.
National Instruments CorporationC-1PCI-DIO-96 User Manual
Appendix
Customer Communication
For your convenience, this appendix contains forms to help you gather the information necessary
to help us solve your technical problems and a form you can use to comment on the product
documentation. When you contact us, we need the information on the Technical Support Form
and the configuration form, if your manual contains one, about your system configuration to
answer your questions as quickly as possible.
National Instruments has technical assistance through electronic, fax, and telephone systems to
quickly provide the information you need. Our electronic services include a bulletin board
service, an FTP site, a Fax-on-Demand system, and e-mail support. If you have a hardware or
software problem, first try the electronic support systems. If the information available on these
systems does not answer your questions, we offer fax and telephone support through our technical
support centers, which are staffed by applications engineers.
D
Electronic Services
Bulletin Board Support
National Instruments has BBS and FTP sites dedicated for 24-hour support with a collection of
files and documents to answer most common customer questions. From these sites, you can also
download the latest instrument drivers, updates, and example programs. For recorded instructions
on how to use the bulletin board and FTP services and for BBS automated information, call
(512) 795-6990. You can access these services at:
United States: (512) 794-5422
Up to 14,400 baud, 8 data bits, 1 stop bit, no parity
United Kingdom: 01635 551422
Up to 9,600 baud, 8 data bits, 1 stop bit, no parity
France: 01 48 65 15 59
Up to 9,600 baud, 8 data bits, 1 stop bit, no parity
FTP Support
To access our FTP site, log on to our Internet host, ftp.natinst.com, as anonymous and use
your Internet address, such as joesmith@anywhere.com, as your password. The support files
and documents are located in the /support directories.
National Instruments CorporationD-1PCI-DIO-96 User Manual
Fax-on-Demand Support
Fax-on-Demand is a 24-hour information retrieval system containing a library of documents on a
wide range of technical information. You can access Fax-on-Demand from a touch-tone
telephone at (512) 418-1111.
E-Mail Support (currently U.S. only)
You can submit technical support questions to the applications engineering team through e-mail
at the Internet address listed below. Remember to include your name, address, and phone number
so we can contact you with solutions and suggestions.
support@natinst.com
Fax and Telephone Support
National Instruments has branch offices all over the world. Use the list below to find the technical
support number for your country. If there is no National Instruments office in your country,
contact the source from which you purchased your software to obtain support.
Photocopy this form and update it each time you make changes to your software or hardware, and
use the completed copy of this form as a reference for your current configuration. Completing
this form accurately before contacting National Instruments for technical support helps our
applications engineers answer your questions more efficiently.
If you are using any National Instruments hardware or software products related to this problem,
include the configuration forms from their user manuals. Include additional pages if necessary.
Name __________________________________________________________________________
Company _______________________________________________________________________
Address ________________________________________________________________________
_______________________________________________________________________________
Fax (___ )___________________ Phone (___ ) ________________________________________
Computer brand ________________ Model ________________ Processor___________________
Operating system (include version number) ____________________________________________
Clock speed ______MHz RAM _____MB Display adapter __________________________
Mouse ___yes ___no Other adapters installed _______________________________________
Hard disk capacity _____MBBrand _____________________________________________
Instruments used _________________________________________________________________
_______________________________________________________________________________
National Instruments hardware product model__________ Revision _______________________
Configuration ___________________________________________________________________
National Instruments software product ___________________________ Version ____________
Configuration ___________________________________________________________________
The problem is: __________________________________________________________________
_______________________________________________________________________________
List any error messages: ___________________________________________________________
_______________________________________________________________________________
The following steps reproduce the problem:____________________________________________
PCI-DIO-96 Hardware and Software
Configuration Form
Record the settings and revisions of your hardware and software on the line to the right of each
item. Complete a new copy of this form each time you revise your software or hardware
configuration, and use this form as a reference for your current configuration. Completing this
form accurately before contacting National Instruments for technical support helps our
applications engineers answer your questions more efficiently.
National Instruments Products
PCI-DIO-96 board _____________________________________________________________
PCI-DIO-96 board serial number _________________________________________________
Base memory address of PCI-DIO-96 board ________________________________________
Interrupt level of PCI-DIO-96 board ______________________________________________
Programming choice (NI-DAQ, LabVIEW, LabWindows/CVI, or other) __________________
Software version ______________________________________________________________
Other Products
Computer make and model ______________________________________________________
Microprocessor _______________________________________________________________
Clock frequency or speed _______________________________________________________
Type of video board installed ____________________________________________________
Operating system (DOS, Windows, or MacOS) ______________________________________
Operating system version _______________________________________________________
Operating system mode _________________________________________________________
Programming language _________________________________________________________
Programming language version __________________________________________________
Other boards in system _________________________________________________________
Base memory address of other boards _____________________________________________
Interrupt level of other boards ___________________________________________________
Documentation Comment Form
National Instruments encourages you to comment on the documentation supplied with our
products. This information helps us provide quality products to meet your needs.
Title:PCI-DIO-96 User Manual
Edition Date:January 1997
Part Number:320938B-01
Please comment on the completeness, clarity, and organization of the manual.
Thank you for your help.
Name _________________________________________________________________________
Title __________________________________________________________________________
Company _______________________________________________________________________
Address ________________________________________________________________________
National Instruments CorporationG-1PCI-DIO-96 User Manual
Glossary
±plus or minus
+positive of, or plus
+5 V+5 Volts signal
A
Aamperes
ACK*acknowledge input signal
AIRQ0PPI A port A interrupt enable bit
AIRQ1PPI A port B interrupt enable bit
ANSIAmerican National Standards Institute
APAPPI A port A
APBPPI A port B
APCPPI A port C
ASICApplication Specific Integrated Circuit
AWGAmerican Wire Gauge
B
BIRQ0PPI B port A interrupt enable bit
BIRQ1PPI B port B interrupt enable bit
BPAPPI B port A
BPBPPI B port B
BPCPPI B port C
CCelsius
CIRQ0PPI C port A interrupt enable bit
CIRQ1PPI C port B interrupt enable bit
cmcentimeters
CPAPPI C port A
CPBPPI C port B
CPCPPI C port C
CTR1counter select bit
CTRIRQcounter interrupt enable bit
D
Glossary
DAQa system that uses the personal computer to collect, measure, and
generate electrical signals
DIdigital input
DIOdigital input/output
DIRQ0PPI D port A interrupt enable bit
DIRQ1PPI D port B interrupt enable bit
DMAdirect memory access—a method by which data can be transferred
to/from computer memory from/to a device or memory on the bus while
the processor does something else. DMA is the fastest method of
transferring data to/from computer memory.
DOdigital output
DPAPPI D port A
DPBPPI D port B
DPCPPI D port C
National Instruments CorporationG-3PCI-DIO-96 User Manual
Glossary
F
ftfeet
G
GNDground signal
H
hexhexadecimal
I
IBFinput buffer full signal
in.inches
INTE1port A output interrupt enable bit
INTE2port A input interrupt enable bit
INTEAport A interrupt enable bit
INTEBport B interrupt enable bit
INTENinterrupt enable bit
INTRAport A interrupt request status
INTRBport B interrupt request status
I/Oinput/output
general information, 6-22
interrupt programming example, 6-22 to
6-23
82C53 Register Group
address map (table), 5-3
control word format (figure), 5-6
Interrupt Clear Register, 5-10
Interrupt Control Register 1, 5-7 to 5-8
Interrupt Control Register 2, 5-9
82C55A Programmable peripheral Interface
data sheet, B-1 to B-17
theory of operation, 4-3
82C55A programming considerations, 6-7 to
6-19
Mode 0 basic I/O, 6-8 to 6-10
configurations (table), 6-9
programming example, 6-10
Mode 1 strobed input, 6-10 to 6-13
control word configuration
Port A (figure), 6-10
Port B (figure), 6-11
Port C pin assignments (figure), 6-13
Port C status-word bit definitions,
6-12 to 6-13
programming example, 6-13
Mode 1 strobed output, 6-13 to 6-16
control word configuration
Port A (figure), 6-14
Port B (figure), 6-14
Port C pin assignments (figure), 6-16
Port C status-word bit definitions,
6-15 to 6-16
programming example, 6-16
Mode 2 bidirectional bus, 6-16 to 6-19
control word configuration of Port A
(figure), 6-17
Port C pin assignments (figure), 6-19
Port C status-word bit definitions,
6-18 to 6-19
programming example, 6-19
modes of operation, 6-7 to 6-8
Mode 0, 6-7 to 6-8
Mode 1, 6-8
Mode 2, 6-8
single bit set/reset feature, 6-8
82C55A Register Group
address map (table), 5-2
control word formats (figure), 5-4
description, 5-3 to 5-5
Port C set/reset control words (table), 5-5
National Instruments CorporationI -5PCI-DIO-96 User Manual
Index
I/O, 6-19
OBFA*, 6-18
port identification, 6-6 to 6-7
power connections, 3-8
power requirement specifications, A-2
programming, 6-1 to 6-23
82C53 programming considerations, 6-22
to 6-23
82C55A considerations, 6-7 to 6-8
Mode 0 basic I/O, 6-8 to 6-10
Mode 1 strobed input, 6-10 to 6-13
Mode 1 strobed output, 6-13 to 6-16
Mode 2 bidirectional bus, 6-16 to
6-19
modes of operation, 6-7 to 6-8
Mode 0, 6-7 to 6-8
Mode 1, 6-8
Mode 2, 6-8
single bit set/reset feature, 6-8
common terms used in examples, 6-2
interrupt generation
developing your own driver, 6-5 to
6-6
simple access with
Get_DAQ_device_Info, 6-5
using NI-DAQ software, 6-4 to 6-5
interrupt handling, 6-20 to 6-21
82C53 programming example, 6-22
to 6-23
82C55A programming examples,
6-20 to 6-21
Mode 0 basic I/O, 6-8 to 6-10
configurations (table), 6-9
programming example, 6-10
Mode 1 strobed input, 6-10 to 6-13
control word to configure Port A
(figure), 6-10
control word to configure Port B
(figure), 6-11
Port C pin assignments on I/O
connector (figure), 6-13
Port C status-word bit definitions for
input, 6-12 to 6-13
programming example, 6-13
Mode 1 strobed output, 6-13 to 6-16
control word to configure Port A
(figure), 6-14
control word to configure Port B
(figure), 6-14
Port C pin assignments on I/O
connector (figure), 6-16
Port C status-word bit definitions for
output, 6-15 to 6-16
programming example, 6-16
Mode 2 bidirectional bus, 6-16 to 6-19
control word to configure Port A
(figure), 6-17
Port C pin assignments on I/O
connector, 6-19
Port C status-word bit definitions,
6-18 to 6-19
programming example, 6-19
PCI initialization for Macintosh, 6-4 to
6-5
developing your own interrupt
method, 6-5 to 6-6
performing simple accesses, 6-5
port identification, 6-6 to 6-7
programming options, 6-4 to 6-6
using NI-DAQ and driver toolkit, 6-4
to 6-5
PCI initialization for PC, 6-3 to 6-4
software programming choices, 1-2 to 1-4