National Instruments PC-DIO-24-PnP User Manual

PC-DIO-24/PnP
Click here to comment on this document via the
www.natinst.com/documentation/daq
User Manual
24-bit Digital I/O Board for ISA Computers
February 1998 Edition
Part Number 320288C-01
© Copyright 1989, 1998 National Instruments Corporation. All rights reserved.
Internet Support
E-mail: support@natinst.com FTP Site: ftp.natinst.com Web Address: http://www.natinst.com
Bulletin Board Support
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 (USA)
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, Brazil 011 288 3336, Canada (Ontario) 905 785 0085, Canada (Québec) 514 694 8521, Denmark 45 76 26 00, Finland 09 725 725 11, France 01 48 14 24 24, Germany 089 741 31 30, Hong Kong 2645 3186, Israel 03 6120092, 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, United Kingdom 01635 523545
National Instruments Corporate Headquarters
6504 Bridge Point Parkway Austin, Texas 78730-5039 USA Tel: 512 794 0100

Important Information

Warranty

The PC-DIO-24 and PC-DIO-24PnP boards are 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 an d work manship, fo r a pe riod of 90 days from date of shipment , as evi denced 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 subseq uent editio ns of th is do cum ent wi thout prio r not ice to ho lders of this edit ion. Th e 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

BridgeVIEWTM, ComponentWorksTM, CVITM, LabVIEWTM, MeasureTM, NI-DAQTM, and VirtualBenchTM are trademarks of National Instruments Corporation.
Product and company names referred to in this document 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 perso nnel, and all traditi onal 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 Class A 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. Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC). This equipment has been tested and found to comply with the following two regulatory agencies:
Federal Communications Commission
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. 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.
Notice to User: Changes or modifications not expressly approved by National Instruments could void
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: Interference to Home Electronic Entertainment Equipment Handbook. This booklet is available from the U.S. Government Printing Office, Washington, DC 20402.
the user’s authority to operate the equipment under the FCC Rules.
Canadian Department of Communications
This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada.
About This Manual
Organization of This Manual........................................................................................ix
Conventions Used in This Manual................................................................................x
National Instruments Documentation...........................................................................xii
Related Documentation.......................................... .................................. .....................xiii
Customer Communication............................................................................................xiii
Chapter 1 Introduction
About the PC-DIO-24/PnP ...........................................................................................1-1
What You Need to Get Started .....................................................................................1-2
Software Programming Choices...................................................................................1-2
National Instruments Application Software................................................... 1-2
NI-DAQ Driver Software...............................................................................1-3
Register-Level Programming ....................................................... ..................1-4
Optional Equipment...................................................................... ................................1-5
Custom Cables................................................................................................1-5
Unpacking.....................................................................................................................1-7

Contents

Chapter 2 Installation and Configuration
Installation ....................................................................................................................2-1
Hardware Configuration ...............................................................................................2-2
Plug and Play..................................................................................................2-2
Base I/O Address and Interrupt Selection........................................2-3
Chapter 3 Signal Connections
I/O Connector ............................................................................ .................................. .3-1
Signal Descriptions.......................................................................................................3-3
Port C Pin Assignments ...................................................................3-3
Digital I/O Signal Connections.....................................................................................3-4
Power Connections .......................................................................................................3-7
©
National Instruments Corporation v PC-DIO-24/PnP User Manual
Contents
Digital I/O Power-up State Selection...........................................................................3-7
High DIO Power-up State.............................................................................. 3-7
Low DIO Power-up State...............................................................................3-9
Timing Specifications...................................................................................................3-10
Mode 1 Input Timing.....................................................................................3-12
Mode 1 Output Timing .................................................................................. 3-13
Mode 2 Bidirectional Timing.........................................................................3-14
Chapter 4 Theory of Operation
Functional Overview....................................................................................................4-1
Bus Transceivers............................................................................................ 4-2
Bus Interface ..................................................................................................4-2
Interrupt Control Circuitry.............................................................................4-2
82C55A Programmable Peripheral Interface................................................. 4-2
Digital I/O Connector..................................................................................... 4-3
Appendix A Specifications
Appendix B OKI 82C55A Data Sheet
Appendix C Register-Level Programming
Introduction ..................................................................................................................C-1
Register Map ...................................................................... .................................. ........ C-3
Register Description for the 82C55A............................................................. C-3
Register Description for the Interrupt Control Registers............................... C-5
Interrupt Control Register 1 (PnP Board Only)............................... C-6
Interrupt Control Register 2 (PnP Board Only)............................... C-7
Programming Considerations for the 82C55A............................................................. C-8
Modes of Operation for the 82C55A .............................................................C-8
Mode 0.............................................................................................C-8
Mode 1.............................................................................................C-8
Mode 2.............................................................................................C-9
Single Bit Set/Reset Feature............................................................C-9
Mode 0—Basic I/O........................................................................................C-9
Mode 0 Programming Example.......................................................C-10
PC-DIO-24/PnP User Manual vi
©
National Instruments Corporation
Mode 1—Strobed Input..................................................................................C-11
Mode 1 Input Programming Example..............................................C-13
Mode 1—Strobed Output...............................................................................C-14
Mode 1 Output Programming Example...........................................C-16
Mode 2—Bidirectional Bus............................................................................C-17
Mode 2 Programming Example.......................................................C-19
Interrupt Programming Examples for the 82C55A........................................C-20
Interrupt Handling.......................................... .................................. .............................C-22
Appendix D Register-Level Programming
Differences between the PC-DIO-24PnP and the PC-DIO-24 .....................................D-1
Configuration................................................................................................................D-2
Base I/O Address Settings..............................................................................D-3
Interrupt Selection......................................... .................................. ...............D-5
Interrupt Enable Settings..................................................................D-6
Interrupt Level Settings....................................................................D-6
Installation .......................................... ................................. .................................. .......D-7
Appendix E Customer Communication
Contents
Glossary
Index

Figures

Figure 1-1. The Relationship between the Programming Environment,
NI-DAQ, and Your Hardware ...............................................................1-4
Figure 2-1. Jumper W1 Location..............................................................................2-1
Figure 3-1. Digital I/O Connector Pin Assignments................................................3-2
Figure 3-2. Digital I/O Connections.........................................................................3-6
Figure 3-3. DIO Channel Configured for High DIO Power-up State
with External Load.................................................................................3-8
Figure 3-4. DIO Channel Configured for Low DIO Power-up State
with External Load.................................................................................3-9
Figure 3-5. Mode 1 Timing Specification for Input Transfers.................................3-12
Figure 3-6. Mode 1 Timing Specification for Output Transfers ..............................3-13
©
National Instruments Corporation vii PC-DIO-24/PnP User Manual
Contents

Tables

Figure 3-7. Mode 2 Timing Specification for Bidirectional Transfers.................... 3-14
Figure 4-1. PC-DIO-24/PnP Block Diagram........................................................... 4-1
Figure C-1. Control Word Formats for the 82C55A ................................................ C-4
Figure C-2. Port C Pin Assignments, Mode 1 Input................................................. C-13
Figure C-3. Port C Pin Assignments, Mode 1 Output ..............................................C-16
Figure C-4. Port A Configured as a Bidirectional Data Bus in Mode 2................... C-17
Figure C-5. Port C Pin Assignments, Mode 2 ..........................................................C-19
Figure D-1. PC-DIO-24 Parts Locator Diagram....................................................... D-3
Figure D-2. Example Base I/O Address Switch Settings..........................................D-4
Figure D-3. Interrupt Enable Jumper Settings ................... .................................. .. ...D-6
Figure D-4. Interrupt Jumper Setting for IRQ5 (Factory Setting)............................ D-6
Table 3-1. Signal Descriptions................................................................................ 3-3
Table 3-2. Port C Signal Assignments.................................................................... 3-4
Table 3-3. Timing Signal Descriptions................................................................... 3-10
Table C-1. PC-DIO-24/PnP Address Map .............................................................. C-3
Table C-2. Port C Set/Reset Control Words............................................................C-5
Table C-3. Mode 0 I/O Configurations ...................................................................C-9
Table D-1. Comparison of Characteristics.............................................................. D-1
Table D-2. PC-DIO-24 Factory-Set Jumper and Switch Settings...........................D-2
Table D-3. Example Switch Settings with Corresponding Base I/O Address
and I/O Address Space ..........................................................................D-5
PC-DIO-24/PnP User Manual viii
©
National Instruments Corporation
This manual describes the mechanical and electrical aspects of the PC-DIO-24/PnP and contains information concerning its operation and programming.
The PC-DIO-24/PnP is a member of the National Instruments family of I/O channel expansion boards for ISA computers. These boards are designed for high-performance, low-cost data acquisition and control for applications in laboratory testing, production testing, and industrial process monitoring and control.
This manual applies to the PC-DIO-24PnP and to the PC-DIO-24, a non-Plug and Play device. The boards are identical except for the differences listed in Appendix D,
Board
.

Organization of This Manual

About
This
Manual
Using Your PC-DIO-24 (Non-PnP)
PC-DIO-24/PnP User Manual
The
Chapter 1, you need to get started, describes software programming choices, optional equipment, and custom cables, and explains how to unpack the PC-DIO-24/PnP.
Chapter 2, and configure the PC-DIO-24/PnP.
Chapter 3, signal connection instructions for the PC-DIO-24/PnP I/O connector.
Chapter 4, the PC-DIO-24/PnP board and explains the operation of each functional unit making up the PC-DIO-24/PnP.
Appendix A, PC-DIO-24/PnP board.
Appendix B, data sheet for the OKI Semiconductor 82C55A CMOS PPI.
©
National Instruments Corporation ix PC-DIO-24/PnP User Manual
Introduction
Installation and Configuration
Signal Connections
Theory of Operation,
Specifications
OKI 82C55A Data Sheet
is organized as follows:
, describes the PC-DIO-24/PnP, lists what
, describes how to install
, includes timing specifications and
contains a functional overview of
, lists the specifications for the
, contains the manufacturer
About This Manual
Appendix C, address and function of each of the PC-DIO-24/PnP control and status registers.
Appendix D, the differences between the PC-DIO-24 and PC-DIO-24PnP boards, the PC-DIO-24 board configuration, and the PC-DIO-24 installation into your computer.
Appendix E, 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
the page where you can find each one.
Register-Level Programming
Using Your PC-DIO-24 (Non-PnP) Board
Customer Communication
contains an alphabetical list and description of terms
alphabetically lists the topics in this manual, including

Conventions Used in This Manual

The following conventions are used in this manual: This icon to the left of bold italicized text denotes a note, which alerts
you to important information.
, describes in detail the
, describes
, contains forms you can
!
82C55A 82C55A refers to the OKI Semiconductor 82C55A CMOS PPI. <> Angle brackets containing numbers separated by an ellipsis represent
bold Bold text denotes the names of menus, menu items, parameters, dialog
bold italic Bold italic text denotes a note, caution, or warning.
italic
PC-DIO-24/PnP User Manual x
This icon to the left of bold italicized text denotes a caution, which advises you of precautions to take to avoid injury, data loss, or a system crash.
a range of values associated with a bit or signal name (for example, PB<7..0>).
boxes, dialog box buttons or options, icons, windows, Wi ndows 95 tabs, or LEDs.
Italic text denotes emphasis, a cross reference, or an introduction to a key concept.
©
National Instruments Corporation
About This Manual
monospace Text in this font denotes text or characters that you should enter literally
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, operations, variables, filenames and extensions, and for statements and comments taken from programs.
NI-DAQ NI-DAQ refers to the NI-DAQ software for PC compatibles unless
otherwise noted.
PC PC refers to the IBM PC/XT, the IBM PC AT, and compatible ISA bus
computers unless otherwise noted.
PC-DIO-24/PnP PC-DIO-24/PnP refers to both the Plug and Play and non-Plug and Play
compatible versions of the board. PC-DIO-24PnP PC-DIO-24PnP refers to the Plug and Play version of the board. PC-DIO-24 PC-DIO-24 refers to the non-Plug and Play version of the board. PnP PnP (Plug and Play) refers to a device that is fully compatible with the
industry standard Plug and Play ISA Specification. non-PnP Non-PnP refers to a device that requires you to configure the device
base address and interrupt level with switches and jumpers. You must
perform this configuration before installing the product in the
computer. PPI PPI (programmable peripheral interface) is the DIO chip on the
PC-DIO-24/PnP board. SCXI SCXI 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.
©
National Instruments Corporation xi PC-DIO-24/PnP User Manual
About This Manual

National Instruments Documentation

PC-DIO-24/PnP User Manual
The set for your data acquisition (DAQ) system. You could have any of several types of manuals, depending on the hardware an d software in your system. Use the different types of manuals you have as follows:
Getting Started with SCXI
• 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 hin ts.
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 and LabWindows/CVI manual sets and the NI-DAQ documentation. After you set up your hardware system, use either the application software documentation 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.
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 Manual
• information on the chassis and for installation instructions.
—Read this manual for maintenance
is one piece of the documentation
—If you are using SCXI, this is the first
PC-DIO-24/PnP User Manual xii
©
National Instruments Corporation

Related Documentation

The following documents contain information that you may find helpful as you read this manual:
Your computer technical reference manual
Plug and Play ISA Specification

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 E,
Customer Communication
About This Manual
, at the end of this manual.
©
National Instruments Corporation xiii PC-DIO-24/PnP User Manual
Chapter
Introduction
This chapter describes the PC-DIO-24/PnP, lists what you need to get started, describes software programming choices, optional equipment, and custom cables, and explains how to unpack the PC-DIO-24/PnP.
About the PC-DIO-24/PnP
Thank you for purchasing the National Instruments PC-DIO-24/PnP. The PC-DIO-24/PnP is a low cost, 24-bit, parallel digital I/O interface for ISA computers. An OKI 82C55A programmable peripheral interface (PPI) chip controls the 24 bits of digital I/O. The 82C55A chip is very flexible and powerful when interfacing with peripheral equipment, can operate in either a unidirectional or bidirectional bus mode, and can generate interrupt requests to the host compu ter. You can program the 82C55A chip for numerous 8-bit, 16-bit, or 24-bit digital I/O applications. All digital I/O communication is through a standard 50-pin male connector. The pin assignments for this connector are compatible with standard 24-channel digital I/O applications.
PnP
refers to the Plug and Play technology used in this board. See the definition in the version of the PC-DIO-24/PnP, see Appendix D,
PC-DIO-24 (Non-PnP) Board
version and the non-PnP version.
Glossary
1
for an explanation. If you have the non-PnP
Using Your
, for the differences between the PnP
You can use the PC-DIO-24/PnP in a wide range of digital I/O applications. With the PC-DIO-24/PnP, you can use your PC as a digital I/O system controller for laboratory testing, production testing, and industrial process monitoring and control.
Detailed specifications of the PC-DIO-24/PnP are in Appendix A,
Specifications.
©
National Instruments Corporation 1-1 PC-DIO-24/PnP User Manual
Chapter 1 Introduction

What You Need to Get Started

To set up and use your PC-DIO-24/PnP, you will need the following:
PC-DIO-24PnP or PC-DIO-24 board
PC-DIO-24/PnP User Manual
❑ ❑ One of the following software packages and documentation:
BridgeVIEW ComponentWorks LabVIEW for Windows LabWindows/CVI Measure NI-DAQ for PC compatibles VirtualBench
Your computer

Software Programming Choices

You have several options to choose from when programming your National Instruments DAQ and SCXI hardware. You can use National Instruments application software, NI-DAQ, or register-level programming.

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 ComponentWork s, you can use all of the configuration tools, resource management utilities, and interactive control utilities included with NI-DAQ.
LabVIEW features interactive graphics and 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 NI-DAQ software.
PC-DIO-24/PnP User Manual 1-2
©
National Instruments Corporation
LabWindows/CVI features interactive graphics and 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 so ftware.
VirtualBench features virtual instruments that combine DAQ products, software, and your computer to create a stand-alone instrument with the added benefit of the processing, display, and storage capabilities of your computer. VirtualBench instruments load and save waveform data to disk in the same forms that can be used in popular spreadsheet programs and word processors.
Using ComponentWorks, LabVIEW, LabWindows/CVI, or VirtualBench 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 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, digital I/O, counter/timer operations, SCXI, RTSI, self-calibration, messaging, and acquiring data to extended memory.
Chapter 1 Introduction
NI-DAQ also internally addresses many of the complex issues between the computer and the plug-in device, 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. Figure 1-1 illustrates the relationship between NI-DAQ and your National Instruments application software.
©
National Instruments Corporation 1-3 PC-DIO-24/PnP User Manual
Chapter 1 Introduction
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,
LabVIEW,
LabWindows/CVI, or
VirtualBench
NI-DAQ
Driver Software
Personal
Computer or
Workstation
NI-DAQ, and Your Hardware
Even if you are an experienced register-level programmer, consider using National Instruments application software to program your National Instruments DAQ hardware. Using the National Instruments application software is easier than, and as flexible as, register-level programming, and can save weeks of development time.
PC-DIO-24/PnP User Manual 1-4
©
National Instruments Corporation

Optional Equipment

National Instruments offers a variety of products to use with your PC-DIO-24/PnP board, including cables, connector blocks, and other accessories, as follows:
Cables and cable assemblies, shielded and ribbon
Connector blocks, shielded and unshielded 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 specific information about these products, refer to your
National Instruments catalogue or call the office nearest you.
Note: The PC-DIO-24/PnP can drive the SSR-ODC-5 output module and all SSR
input modules available from National Ins truments, but c annot reli ably sink sufficient current to drive the SSR-OAC-5 and SSR-OAC-5A output modules.
Chapter 1 Introduction
To drive a SSR-OAC-5 or SSR-OAC-5A, you can either use a non-inverting digital buffer chip between the PC-DIO-24/PnP and the SSR backplane, or use another National Instruments board with higher drive current.

Custom Cables

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, however, the following guidelines may be useful.
The PC-DIO-24/PnP I/O connector is a 50-pin male ribbon-cable header. The manufacturer part numbers used by National Instruments for this header are as follows:
Electronic Products Division/3M (part number 2550-5002)
T&B/Ansley Corporation (part number 609-5007)
©
National Instruments Corporation 1-5 PC-DIO-24/PnP User Manual
Chapter 1 Introduction
The mating connector for the PC-DIO-24/PnP is a 50-position, polarized, ribbon socket connector with strain relief. National Instruments uses a polarized (keyed) connector to prevent inadvertent upside-down connection to the PC-DIO-24/PnP. Recommended manufacturer part numbers for this mating connector are as follows:
Electronic Products Division/3M (part number 3425-7650)
T&B/Ansley Corporation (part number 622-5041) The standard ribbon cables (50-conductor, 28 AWG, stranded) that can
be used with these connectors are as follows:
Electronic Products Division/3M (part number 3365/50)
T&B/Ansley Corporation (part number 171-50) Recommended manufacturer part numbers for the 50-pin edge
connector for connecting to a module rack with an edge connector are as follows:
Electronic Products Division/3M (part number 3415-0001)
T&B Ansley Corporation (part number 622-5015) A polarizing key can be plugged into these edge connectors to prevent
inadvertent upside-down connection to the I/O module rack. The location of this key varies from rack to rack. Consult the specification for the rack you intend to use for the location of any polarizing key. The recommended manufacturer part numbers for this polarizing key are as follows:
Electronic Products Division/3M (part number 3439-2)
T&B Ansley Corporation (part number 622-0005)
PC-DIO-24/PnP User Manual 1-6
©
National Instruments Corporation

Unpacking

Chapter 1 Introduction
Your PC-DIO-24/PnP 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 PC 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.
install a damaged board into your computer.
Never
touch exposed connector pins.
Do not
©
National Instruments Corporation 1-7 PC-DIO-24/PnP User Manual
Installation and
Chapter
Configuration
This chapter describes how to install and configure the PC-DIO-24/PnP.

Installation

Note:
Install your driver software before installing your hardware. Refer to your NI-DAQ release notes for software installation instructions.
2
W1
Figure 2-1.
Note:
©
National Instruments Corporation 2-1 PC-DIO-24/PnP User Manual
The PC-DIO-24/PnP uses 100 kΩ resistors for polarity selection at power-up. You can use jumper W1 to select whether data signals are pulled up to Vcc (+5 VDC), factory default, or pulled down to GND. Figure 2-1 shows jumper W1. For more information, see the
State Selection
You can install the PC-DIO-24/PnP in any unused 8- or 16-bit expansion slot in your computer. The following are general installation instructions, but consult your computer user manual or technical reference manual for specific instructions and warnings.
section in Chapter 3,
Jumper W1 Location
Digital I/O Power-up
Signal Connections
.
Chapter 2 Installation and Configuration
1. Turn off and unplug your computer.
2. Remove the I/O channel top cover or access port.
3. Remove the expansion slot cover on the computer back panel.
4. Insert the PC-DIO-24/PnP into any 8- or 16-bit slot. It may be a tight fit, but
5. Screw the PC-DIO-24/PnP mounting bracket to the computer back panel rail.
6. Visually verify the installation.
7. Replace the computer cover.
8. Plug in and turn on your computer.
The PC-DIO-24/PnP board is now installed.

Hardware Configuration

Plug and Play

The PC-DIO-24PnP is fully compatible with the industry-standard Intel/Microsoft Plug and Play Specification. A Plug and Play system arbitrates and assigns resources through software, freein g you from manually setting switches and jumpers. These resources include the PC-DIO-24PnP base I/O address and interrupt channel.
do not
force the board into place.
The Configuration Manager receives all of the resource requests at startup, compares the available resources to those requested, and assigns the available resources as efficiently as possible to the Plug and Play boards. Application software can query the Configuration Manager to determine the resources assigned to each board without your involvement. The Plug and Play software is installed as a device driver or as an integral component of the computer BIOS.
PC-DIO-24/PnP User Manual 2-2
©
National Instruments Corporation
Chapter 2 Installation and Configuration
Base I/O Address and Interrupt Selection
To change base I/O address or interrupt selection, refer to th e NI-DAQ Configuration Utility Help file. You can configure the PC-DIO-24PnP to use base addresses in the range of 100 to 3E0 hex. Each board occupies 32 bytes of address space and must be located on a 32-byte boundary. Therefore, valid addresses include 100, 120, 140…, 3 E0 hex.
The PC-DIO-24PnP can use interrupt channel 3, 4, 5, 7, or 9.
Note: To configure the non-Plug and Play PC-DIO-24 board, refer to
Appendix D,
Using Your PC-DIO-24 (Non-PnP) Board
.
©
National Instruments Corporation 2-3 PC-DIO-24/PnP User Manual
Chapter
Signal Connections
This chapter includes timing specifications and signal connection instructions for the PC-DIO-24/PnP I/O connector.
Caution:
!

I/O Connector

Connections that exceed any of the maximum ratings of input or output signals on the PC-DIO-24/PnP can damage the board and the PC. National Instruments is connections. Maximum ratings for each signal are given in this chapter under the discussion of that signal.
Figure 3-1 shows the pin assignments for the PC-DIO-24/PnP digital I/O connector.
liable for any damages resulting from any such signal
NOT
3
©
National Instruments Corporation 3-1 PC-DIO-24/PnP User Manual
Chapter 3 Signal Connections
PC7 PC6
PC5 PC4 PC3
PC2 PC1 PC0
PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0
+5 V
12 34 56 78
910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
GND GND GND GND GND GND GND GND
GND GND
GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND

Figure 3-1. Digital I/O Connector Pin Assignments

PC-DIO-24/PnP User Manual 3-2
©
National Instruments Corporation

Signal Descriptions

Table 3-1 describes the PC-DIO-24/PnP signals.
Chapter 3 Signal Connections
Table 3-1.
Signal
Pin
1, 3, 5, 7, 9, 11, 13, 15
17, 19, 21, 23, 25, 27, 29, 31
33, 35, 37, 39, 41, 43, 45, 47
49 +5 V +5 Volts—This pin is fused for up
All even-numbered pins
The absolute maximum voltage input rating is –0.5 to +5.5 V with respect to GND.
Name
PC<7..0> Port C—Bidirectional data lines for
PB<7..0> Port B—Bidirectional data lines for
PA<7..0> Port A—Bidirectional data lines for
GND Ground—These signals are
Signal Descriptions
Description
port C. PC7 is the MSB, PC0 the LSB.
port B. PB7 is the MSB, PB0 the LSB.
port B. PA7 is the MSB, PA0 the LSB.
to 1 A at +4.65 to 5.25 V.
connected to the computer ground reference.

Port C Pin Assignments

The signals assigned to port C depend on the mode in which the 82C55A is programmed. In mode 0, port C is treated as one 8-bit I/O port. If port A or B is in mode 1 or 2, then some or all of the port C lines are used for status and handshaking signals. Any unused lines are available for general-purpose input and output. Table 3-2 summarizes the signal assignments of port C for each programmable mode. Ports A and B can be in different modes; the table does not show every possible combination. See Appendix C, register-level programming information.
©
National Instruments Corporation 3-3 PC-DIO-24/PnP User Manual
Register-Level Programming
, for
Chapter 3 Signal Connections
Caution: During programming, note that each time you configure any port, output
!
ports A and C are reset to 0, and output port B is undefined.
Table 3-2.
Port C Signal Assignments
Group A Group B
Programming
Mode
PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
Mode 0 I/O I/O I/O I/O I/O I/O I/O I/O Mode 1 Input I/O I/O IBF
STBA* INTRASTBB* IBFB
A
B
Mode 1 Output OBFA* ACKA* I/O I/O INTRAACKB* OBFB* INTR Mode 2 OBFA* ACKA* IBFASTBA* INTRAI/O I/O I/O
* Indicates that the signal is active low.

Digital I/O Signal Connections

The following specifications and ratings apply to the digital I/O lines. The maximum input logic high and output logic high voltages assume a Vcc supply voltage of 5.0 V.
The absolute maximum voltage rating is –0.5 to +5.5 V with respect to GND.
INTR
B
B
Digital input specifications (referenced to GND):
Input logic high voltage 2.2 V min 5.3 V max Input logic low voltage –0.3 V min 0.8 V max Input high current
(Vin = 5 V, W1 set to pullup) 11.0 µA max Input high current
(Vin = 5 V, W1 set to pulldown) 65 µA max Input logic low current
(Vin = 0 V, W1 set to pullup) –65 µA max Input logic low current
(Vin = 0 V, W1 set to pulldown) –11 µA max
PC-DIO-24/PnP User Manual 3-4
©
National Instruments Corporation
Chapter 3 Signal Connections
Digital output specifications (referenced to GND):
Output logic high voltage 3.7 V min 5.0 V max (I
= –2.5 mA)
ol
Output logic high voltage 2.7 V min 5.0 V max (I
= –4 mA)
oh
Output logic low voltage 0 V min 0.4 V (I
= 2.5 mA)
ol
Output logic low voltage 0 V min 0.5 V (I
= 4 mA)
ol
Figure 3-2 depicts signal connections for thre e typical digital I/O applications.
©
National Instruments Corporation 3-5 PC-DIO-24/PnP User Manual
Chapter 3 Signal Connections
+5 V
LED
+5 V
TTL Signal
Switch
I/O Connector
41 43 45 47
67 69 71
73
+5 V
Jumper Selectable (W1)
100 k100 k 100 k 100 k
PPI
Port A
PA<3..0>
100 k 100 k 100 k 100 k
PPI
Port B
PB<7..4>
50, 100
GND
PC-DIO-24/PnP

Figure 3-2. Digital I/O Connections

In Figure 3-2, port A is configured for digital output, and port B is configured for digital input. Digital input applications include receiv ing TTL signals and sensing external device states such as the state of the switch in Figure 3-2. Digital output applications include sending TTL signals and driving external devices such as the LED shown in this figure.
PC-DIO-24/PnP User Manual 3-6
©
National Instruments Corporation

Power Connections

Pin 49 of the I/O connector is connected to the +5 V supply from the PC power supply. This pin is referenced to GND and can be u sed to power external digital circuitry. This +5 V supply has a 1 A self-resetting protection fuse in series. Simply remove the circuit causing the heavy current load and the fuse will reset itself.
Power rating 1 A at +4.65 to 5.25 V
Caution: Under no circumstances should this +5 V power pin be connected directly
!
to ground or to any other voltage source on the PC-DIO-24/PnP or any other device. Doing so may damage the PC-DIO-24/PnP and the PC. National Instruments is connection.
liable for damage resulting from such a
NOT

Digital I/O Power-up State Selection

You can power up the PC-DIO-24/PnP digital I/O lines in a user-defined state. The PC-DIO-24/PnP facilitates user-configurable pull-up or pull-down. Each DIO channel is connected to a 100 k resistor and can be pulled high or low using jumper W1. You can use W1 to pull all 24 DIO lines high or low. However, you may want to pull individual lines in different directions. To do this properly, you must understand the nature of the drive current on those lines and adhere to TTL logic levels.
Chapter 3 Signal Connections

High DIO Power-up State

If you select the pulled-high mode, each DIO line will be pulled to Vcc (approximately +5 VDC) with a 100 k resistor. If you want to pull a specific line low, connect between that line and ground a pull-down resistor (R the largest possible resistor ensures that you do not use more current than necessary to perform the pull-down task, and that the DIO can still drive the line. The DIO lines provide a maximum of 2.5 mA at 3.7 V in the high state.
Also, make sure the resistor value is not so large that leakage current from the DIO line along with the current from the 100 k pull-up resistor drives the voltage at the resistor above a TTL low level of
0.4 VDC.
©
National Instruments Corporation 3-7 PC-DIO-24/PnP User Manual
) whose value will give you a maximum of 0.4 VDC. Using
L
Loading...
+ 77 hidden pages