National Instruments 653, 6534, 6533 User Manual

Page 1
DAQ

NI 653X User Manual for Traditional NI-DAQ

High-Speed Digital I/O Devices for PCI, PXI, CompactPCI, AT, EISA, and PCMCIA Bus Systems
NI 653X User Manual
February 2005 371464D-01
Page 2

Support

ni.com

National Instruments Corporate Headquarters

11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100

Worldwide Offices

Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 7838, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 51190000, Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400, Lebanon 961 0 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793, Netherlands 31 0 348 433 466, New Zealand 0800 553 322, Norway 47 0 66 90 76 60, Poland 48 22 3390150, Portugal 351 210 311 210, Russia 7 095 783 68 51, Singapore 1800 226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 02 2377 2222, Thailand 662 992 7519, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter the info code feedback.
© 1997–2005 National Instruments Corporation. All rights reserved.
Page 3

Important Information

Warranty

The NI AT-DIO-32HS, NI DAQCard-6533 for PCMCIA, NI PCI-6534, NI PCI-DIO-32HS, NI PXI-6533, and NI PXI-6534 devices 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 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 document 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.
E
XCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WAR RANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE . CUSTOMERS RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF
N
ATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE PO SSIBILITY THEREOF. This limitation of the liability of National 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.

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

National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on ni.com/legal for more information about National Instruments trademarks.
Other product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency, partnership, or joint-venture relationship with National Instruments.

Patents

For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your CD, or ni.com/patents.

WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS

(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY, COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE AND HARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES, TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES, OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS. BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.
Page 4

Compliance

Compliance with FCC/Canada Radio Frequency Interference Regulations
Determining FCC Class
The Federal Communications Commission (FCC) has rules to protect wireless communications from interference. The FCC places digital electronics into two classes. These classes are known as Class A (for use in industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products.
Depending on where it is operated, this Class A product could be subject to restrictions in the FCC rules. (In Canada, the Department of Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.) Digital electronics emit weak signals during normal operation that can affect radio, television, or other wireless products.
All Class A products display a simple warning statement of one paragraph in length regarding interference and undesired operation. The FCC rules have restrictions regarding the locations where FCC Class A products can be operated.
Consult the FCC Web site at
FCC/DOC Warnings
This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual and the CE marking Declaration of Conformity*, 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).
Changes or modifications not expressly approved by NI could void the user’s authority to operate the equipment under the FCC Rules.
Class A
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 is required to correct the interference at their own expense.
www.fcc.gov for more information.
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.
Compliance with EU Directives
Users in the European Union (EU) should refer to the Declaration of Conformity (DoC) for information* pertaining to the CE marking. Refer to the Declaration of Conformity (DoC) for this product for any additional regulatory compliance information. To obtain the DoC for this product, visit and click the appropriate link in the Certification column.
* The CE marking Declaration of Conformity contains important supplementary information and instructions for the user or
installer.
ni.com/certification, search by model number or product line,
Page 5

Conventions

The following conventions appear in this manual:
<> Angle brackets that contain numbers separated by an ellipsis represent a
range of values associated with a bit or signal name—for example, DIO<3..0>.
» The » symbol leads you through nested menu items and dialog box options
to a final action. The sequence File»Page Setup»Options directs you to pull down the File menu, select the Page Setup item, and select Options from the last dialog box.
The symbol indicates that the following text applies only to a specific
product, a specific operating system, or a specific software version.
This icon denotes a tip, which alerts you to advisory information.
This icon denotes a note, which alerts you to important information.
This icon denotes a caution, which advises you of precautions to take to avoid injury, data loss, or a system crash. When this symbol is marked on a product, refer to the for information about precautions to take.
bold Bold text denotes items that you must select or click in the software, such
as menu items and dialog box options. Bold text also denotes parameter names.
italic Italic text denotes variables, emphasis, a cross reference, or an introduction
to a key concept. This font also denotes text that is a placeholder for a word or value that you must supply.
monospace Text in this font denotes text or characters that you should enter from the
keyboard. This font is also used for the proper names of functions, variables, and filenames and extensions.
NI 6533 NI 6533 refers to the NI AT-DIO-32HS, NI DAQCard-6533 for PCMCIA,
NI PCI-DIO-32HS, and NI PXI-6533 devices, unless otherwise noted.
NI 6534 NI 6534 refers to the NI PCI-6534 and NI PXI-6534 devices, unless
otherwise noted.
NI 653X NI 653X refers to the NI AT-DIO-32HS, NI DAQCard-6533 for PCMCIA,
NI PCI-6534, NI PCI-DIO-32HS, NI PXI-6533, and NI PXI-6534 devices, unless otherwise noted.
Page 6

Contents

Chapter 1 Getting Started with Your NI 653X
NI 653X Overview ........................................................................................................1-1
Control Lines...................................................................................................1-2
What You Need to Get Started ......................................................................................1-2
Choosing Your Programming Software ........................................................................1-3
National Instruments Application Software ....................................................1-3
NI-DAQ Driver Software ................................................................................1-4
Installing Your Software................................................................................................1-6
Unpacking Your NI 653X ..............................................................................................1-6
Installing Your NI 653X ................................................................................................1-7
Installing the NI PCI-DIO-32HS, NI PCI-6534, or NI PCI-7030/6533..........1-7
Installing the NI PXI-6533, NI PXI-6534, or NI PXI-7030/6533...................1-7
Installing the NI AT-DIO-32HS......................................................................1-8
Installing the NI DAQCard-6533 for PCMCIA ..............................................1-9
Configuring the NI 653X ...............................................................................................1-9
In Windows .....................................................................................................1-9
In Mac OS........................................................................................................1-10
Safety Information .........................................................................................................1-10
Chapter 2 Using Your NI 653X
Choosing the Correct Mode for Your Application ........................................................2-1
Controlling and Monitoring Static Digital Lines—Unstrobed I/O ................................2-2
Configuring Digital Lines................................................................................2-2
Standard Output ................................................................................2-2
Open-Collector Output......................................................................2-2
Using Control Lines as Extra Unstrobed Data Lines ......................................2-3
Connecting Signals..........................................................................................2-4
Creating a Program..........................................................................................2-4
Programming the Control/Timing Lines as Extra Unstrobed
Data Lines ......................................................................................2-5
Generating and Receiving Digital Patterns and Waveforms—Pattern I/O....................2-6
Deciding the Width of Data to Transfer ..........................................................2-6
Deciding Transfer Direction............................................................................2-7
Choosing an Internal or External REQ Source................................................2-7
Reversing the REQ Polarity ............................................................................2-7
Specifying the Transfer Rate ...........................................................................2-8
© National Instruments Corporation vii NI 653X User Manual
Page 7
Contents
Starting and Stopping Data Transfer—Triggering.......................................... 2-8
Start and Stop Trigger....................................................................... 2-9
Choosing Continuous or Finite Data Transfer ................................................ 2-11
Finite Transfers................................................................................. 2-11
Continuous Input .............................................................................. 2-11
Continuous Output............................................................................ 2-11
Choosing DMA or Interrupt Transfers ............................................. 2-12
Monitoring Data Transfer ............................................................................... 2-12
Connecting Signals ......................................................................................... 2-13
Creating a Program ......................................................................................... 2-14
Transferring Data Between Two Devices—Handshaking I/O ...................................... 2-17
Choosing the Width of Data to Transfer ......................................................... 2-17
Deciding Data Transfer Direction................................................................... 2-17
Deciding Which Handshaking Protocol to Use .............................................. 2-17
Using the Burst Protocol ................................................................................. 2-18
Deciding the PCLK Signal Direction ............................................... 2-18
Selecting ACK/REQ Signal Polarity .............................................................. 2-19
Choosing Whether to Use a Programmable Delay ......................................... 2-19
Choosing Continuous or Finite Data Transfer ................................................ 2-20
Finite Transfers................................................................................. 2-20
Continuous Input .............................................................................. 2-20
Continuous Output............................................................................ 2-20
Choosing DMA or Interrupt Transfers ............................................. 2-21
Connecting Signals ......................................................................................... 2-21
Choosing the Startup Sequence....................................................................... 2-22
Using an Initialization Order ............................................................ 2-22
Controlling Line Polarities ............................................................... 2-23
Creating a Program ......................................................................................... 2-23
Monitoring Line State—Change Detection................................................................... 2-28
Deciding the Width of Data to Acquire .......................................................... 2-28
Deciding Which Lines You Want to Monitor................................................. 2-29
Deciding How to Start and Stop Data Transfer—Triggering ......................... 2-30
Start and Stop Trigger....................................................................... 2-31
Choosing Continuous or Finite Data Transfer ................................................ 2-32
Finite Transfers................................................................................. 2-32
Continuous Input .............................................................................. 2-32
Choosing DMA or Interrupt Transfers ............................................. 2-33
Connecting Signals ......................................................................................... 2-33
Creating a Program ......................................................................................... 2-33
NI 653X User Manual viii ni.com
Page 8
Chapter 3 Timing Diagrams
Pattern I/O Timing Diagrams ........................................................................................3-1
Internal REQ Signal Source ............................................................................3-1
External REQ Signal Source ...........................................................................3-2
Handshaking I/O Timing Diagrams ...............................................................................3-4
Comparing the Different Handshaking Protocols ...........................................3-4
Using the Burst Protocol .................................................................................3-5
Using Asynchronous Protocols .......................................................................3-11
Using the 8255-Emulation Protocol ................................................................3-11
Using the Level-ACK Protocol .......................................................................3-17
Using Protocols Based on Signal Edges..........................................................3-22
Using the Trailing-Edge Protocol....................................................................3-22
Appendix A Specifications
Appendix B Using PXI with CompactPCI
Contents
Appendix C Connecting Signals with Accessories
Appendix D Hardware Considerations
Appendix E Optimizing Your Transfer Rates
Appendix F Technical Support and Professional Services
Glossary
Index
© National Instruments Corporation ix NI 653X User Manual
Page 9
Getting Started with Your NI 653X
The NI 653X User Manual describes installing, configuring, setting up, and programming applications for the NI 653X family of digital I/O (DIO) devices. The NI 653X family includes the NI AT-DIO-32HS, NI DAQCard-6533 for PCMCIA, NI PCI-6534, NI PCI-DIO-32HS, NI PXI-6533, NI PXI-6534, and NI PCI/PXI-7030/6533.

NI 653X Overview

With NI 653X devices, you can use your computer or chassis as a digital I/O tester, logic analyzer, or system controller for laboratory testing, production testing, and industrial process monitoring and control.
Each NI 653X provides 32 digital data lines that are individually configurable as input or output, grouped into four 8-bit ports. Each line can sink or source 24 mA of current.
1
The NI 6534 contains onboard memory, enabling you to transfer data to/from this memory at a guaranteed rate. This memory removes the dependency on the host computer bus for applications that require guaranteed transfer rates.
The NI PCI/PXI-7030/6533 is an RT Series device that contains a processor board (NI 7030), an NI 6533 daughter board, and an independent processor that runs LabVIEW Real-Time applications. The NI 6533 daughter board contains all the features and functions of the NI PCI/PXI-6533 described in this manual. For more information about your NI PCI/PXI-7030/6533, refer to the RT Series DAQ Device User Manual.
The NI 6534 uses the Real-Time System Integration (RTSI) bus to easily synchronize several measurement devices to a common trigger or timing event. The RTSI bus allows synchronization of the measurements. The RTSI bus consists of the RTSI bus interface and a ribbon cable to route timing and trigger signals between as many as five DAQ devices in the
© National Instruments Corporation 1-1 NI 653X User Manual
Page 10
Chapter 1 Getting Started with Your NI 653X
computer. If you are using the NI PXI-6534 or NI PXI-6533 in a PXI
chassis, RTSI lines, known as the PXI trigger bus, are part of the backplane.
In addition, a phase-locked loop (PLL) circuit accomplishes the
synchronization of multiple NI PXI-6534 devices or other PXI devices
which support PLL synchronization by allowing these devices to all lock to
the same reference clock present on the PXI backplane. Refer to the
Phase-Locked Loop Circuit (NI PXI-6534 Only) section of Appendix D,
Hardware Considerations, for more information.
Detailed NI 653X specifications are in Appendix A, Specifications.

Control Lines

In addition to controlling and monitoring relay-type applications, the
NI 653X also provides two timing/handshaking controllers, named
Group 1 and Group 2, for high-speed data transfer. Refer to the Using
Control Lines as Extra Unstrobed Data Lines section of Chapter 2, Getting
Started with Your NI 653X, for more information about the capabilities of
these control lines.

What You Need to Get Started

To begin using your NI 653X, you need the following items:
One or more of the following devices:
NI AT-DIO-32HS
NI DAQCard-6533 for PCMCIA
–NIPCI-6534
NI PCI-DIO-32HS
–NIPXI-6533
–NIPXI-6534
NI PCI/PXI-7030/6533 (RT Series DAQ device)
NI 653X User Manual
NI-DAQ (for PC compatibles or Mac OS)
Software environments supported by NI-DAQ (optional):
LabVIEW (for Windows or Mac OS)
LabVIEW Real-Time Module (LabVIEW RT)
LabWindows
NI 653X User Manual 1-2 ni.com
/CVI™ (for Windows or Mac OS)
Page 11
Chapter 1 Getting Started with Your NI 653X
Measurement Studio (for Windows only)
Other supported compilers
The appropriate signal connector
The appropriate shielded or ribbon cable. Refer to Appendix C,
Connecting Signals with Accessories, for specific information about
cables that are compatible with your device.
Your computer or PXI/CompactPCI chassis and controller

Choosing Your Programming Software

When programming NI measurement hardware, you can use either NI application software or another application development environment (ADE).

National Instruments Application Software

LabVIEW and LabVIEW RT feature interactive graphics, a state-of-the-art user interface, and a powerful graphical programming language. The LabVIEW Data Acquisition VI Library, a series of virtual instruments (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 application programming interface (API).
As with LabVIEW, you develop your LabVIEW RT applications with graphical programming, then download the program to run on an independent hardware target with a real-time operating system. LabVIEW RT allows you to use the NI 6533 digital DAQ devices in two configurations: the NI PCI/PXI-7030/6533, and the NI PXI-6533 in a PXI system being controlled in real time by LabVIEW RT.
LabWindows/CVI is a complete ANSI C ADE that features an interactive user interface, code generation tools, and the LabWindows/CVI Data Acquisition and Easy I/O libraries.
Measurement Studio, which includes tools for Visual C++ and tools for Visual Basic, is a development suite that allows you to design test and measurement applications. For Visual Basic developers, Measurement Studio features a set of ActiveX controls for using National Instruments DAQ hardware. These ActiveX controls provide a high-level programming interface for building VIs. For Visual C++ developers, Measurement Studio
© National Instruments Corporation 1-3 NI 653X User Manual
Page 12
Chapter 1 Getting Started with Your NI 653X
offers a set of Visual C++ classes and tools to integrate those classes into
Visual C++ applications. The ActiveX controls and classes are available
with Measurement Studio and the NI-DAQ software.
Using LabVIEW, LabWindows/CVI, or Measurement Studio greatly
reduces the development time for your data acquisition and control
application.

NI-DAQ Driver Software

The NI-DAQ driver software shipped with your NI 653X has an extensive
library of functions that you can call from your ADE. These functions
allow you to use all the features of the NI 653X.
NI-DAQ carries out many of the complex interactions, such as
programming interrupts, between the computer and the DAQ hardware.
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 LabVIEW, LabWindows/CVI,
Measurement Studio, or another ADE, your application uses the NI-DAQ
driver software, as illustrated in Figure 1-1.
NI 653X User Manual 1-4 ni.com
Page 13
Chapter 1 Getting Started with Your NI 653X
LabVIEW, LabVIEW RT,
LabWindows/CVI,
or Measurement Studio
NI-DAQ
Driver Software
DAQ Hardware
Conventional
Programming Environment
Personal
Computer or
Workstation
Figure 1-1. The Relationship Between the Programming Environment,
NI-DAQ, and Your Hardware
To download a free copy of the most recent version of NI-DAQ, click Drivers and Updates at
ni.com/downloads. Use the following table to
find which NI-DAQ versions are compatible with your device.
Table 1-1. NI 653X Devices and NI-DAQ Support
NI-DAQ Version
Device Supported
Windows Mac
NI PCI-DIO-32HS Version 5.0 or later Version 6.1.0 or later
NI AT-DIO-32HS Version 5.0 or later N/A
NI PXI-6533 Version 5.1 or later Version 6.1.3 or later
NI DAQCard-6533 for PCMCIA Version 5.1 or later Version 6.1.0 or later
NI PXI-6534 Version 6.9 or later N/A
© National Instruments Corporation 1-5 NI 653X User Manual
Page 14
Chapter 1 Getting Started with Your NI 653X
Table 1-1. NI 653X Devices and NI-DAQ Support (Continued)
NI-DAQ Version
Device Supported
NI PCI-6534 Version 6.9 or later N/A
NI PCI or PXI-7030/6533 Version 6.5.2 or later N/A
Windows Mac

Installing Your Software

Install application development software, such as LabVIEW or
LabWindows/CVI, according to instructions on the CD and the release
notes. If NI-DAQ was not installed with your ADE, then install NI-DAQ
according to the instructions on the CD and the DAQ Quick Start Guide
included with your device.
Note It is important to install NI-DAQ before installing your device(s) to ensure the
device(s) are properly detected.

Unpacking Your NI 653X

Your NI 653X is shipped in an antistatic package to prevent electrostatic
damage to the device. To avoid such damage in handling the device, take
the following precautions:
Ground yourself using a grounding strap or by holding a grounded object.
Touch the antistatic package to a metal part of your computer chassis before removing the device from the package.
Caution Never touch the exposed pins of connectors to prevent electrostatic discharge
from damaging the device.
Remove the device from the package and inspect the device for loose components or any sign of damage. Notify NI if the device appears damaged in any way. Do not install a damaged device into your computer.
Store your NI 653X in the antistatic envelope when not in use.
NI 653X User Manual 1-6 ni.com
Page 15
Chapter 1 Getting Started with Your NI 653X

Installing Your NI 653X

The following are general installation instructions. Consult your computer or chassis user manual or technical reference manual for specific instructions and warnings about installing new devices.
Note It is important to install NI-DAQ before installing your device(s) to ensure the
device(s) are properly detected.

Installing the NI PCI-DIO-32HS, NI PCI-6534, or NI PCI-7030/6533

You can install an NI PCI-DIO-32HS, NI PCI-6534, or NI PCI-7030/6533 in any available PCI expansion slot in your computer.
1. Power off and unplug your computer.
2. Remove the cover.
3. Remove the expansion slot cover on the back panel of the computer.
4. Touch a metal part of your computer chassis to discharge any static electricity that might be on your clothes or body.
5. Insert the NI 653X into a PCI system slot. It may be a tight fit, but do not force the device into place.
6. Screw the mounting bracket of the NI 653X to the back panel rail of the computer.
7. Visually verify the installation. Make sure the device is not touching other boards or components and is inserted fully in the slot.
8. Replace the cover of your computer.
9. Plug in and power on your computer.
You are now ready to configure your NI 653X.

Installing the NI PXI-6533, NI PXI-6534, or NI PXI-7030/6533

You can install an NI PXI-653X or NI PXI-7030/6533 any available 5 V peripheral slot in your PXI or CompactPCI chassis.
Note Your PXI device has connections to several reserved lines on the CompactPCI J2
connector. Before installing a PXI device in a CompactPCI system that uses J2 connector lines for purposes other than PXI, refer to Appendix C, Connecting Signals with
Accessories.
© National Instruments Corporation 1-7 NI 653X User Manual
Page 16
Chapter 1 Getting Started with Your NI 653X
1. Power off and unplug your PXI or CompactPCI chassis.
2. Choose an unused PXI or CompactPCI 5 V peripheral slot.
Tip For maximum performance of your CompactPCI system, install the NI PXI-653X in
a slot that supports bus arbitration or bus-master cards. The NI PXI-653X contains onboard bus-master direct memory access (DMA) logic that can operate only in such a slot. If you install the device in a slot that does not support bus masters, you must disable the NI PXI-653X onboard DMA controller using your software. PXI-compliant chassis have bus arbitration for all slots.
3. Remove the filler panel for the peripheral slot you have chosen.
4. Touch a metal part on your chassis to discharge any static electricity that might be on your clothes or body.
5. Insert the NI PXI-653X into a 5 V slot. Use the injector/ejector handle to fully inject the device into place.
6. Screw the front panel of the NI PXI-653X to the front panel mounting rails of the PXI or CompactPCI chassis.
7. Visually verify the installation. Make sure the device is not touching other boards or components and is fully in the slot.
8. Plug in and power on the PXI or CompactPCI chassis.
You are now ready to configure your NI 653X.

Installing the NI AT-DIO-32HS

You can install an NI AT-DIO-32HS in any available AT (16-bit ISA) or EISA expansion slot in your computer.
1. Power off and unplug your computer.
2. Remove the cover.
3. Remove the expansion slot cover on the back panel of the computer.
4. Touch a metal part of your computer chassis to discharge any static electricity that might be on your clothes or body.
5. Insert the NI AT-DIO-32HS into an AT (16-bit ISA) or EISA slot. It can be a tight fit, but do not force the device into place.
6. Screw the mounting bracket of the NI AT-DIO-32HS to the back panel rail of the computer.
7. Visually verify the installation. Make sure the device is not touching other boards or components and is fully inserted in the slot.
NI 653X User Manual 1-8 ni.com
Page 17
8. Replace the cover of the computer.
9. Plug in and power on your computer.
You are now ready to configure your NI 653X.

Installing the NI DAQCard-6533 for PCMCIA

You can install your NI DAQCard-6533 for PCMCIA in any available CardBus-compatible Type II PCMCIA slot. Consult the computer manufacturer for information about slot compatibility.
1. Power off your computer. If your computer and operating system support hot insertion, you may insert or remove the NI DAQCard-6533 at any time, whether the computer is powered on or off.
2. Remove the PCMCIA slot cover on your computer, if any.
You are now ready to configure your NI 653X.

Configuring the NI 653X

Your NI 653X is automatically configured in Measurement & Automation Explorer (MAX), which is installed with NI-DAQ in Windows, or in the NI-DAQ Configuration Utility, which is installed with NI-DAQ in the Mac OS. All settings are initially configured to default settings.
Chapter 1 Getting Started with Your NI 653X

In Windows

If you would like to change or view default settings, complete the following steps, also available in the DAQ Quick Start Guide:
1. Launch MAX.
2. Open Devices and Interfaces.
3. Right-click the device you want to configure and choose Properties.
4. Click the Test Resources button to test hardware resources.
To create a virtual channel or to learn about other capabilities of MAX, read the help files available in MAX by selecting Help»Help Topics.
© National Instruments Corporation 1-9 NI 653X User Manual
Page 18
Chapter 1 Getting Started with Your NI 653X

In Mac OS

To view and test current resource allocation, complete the following steps:
1. Open the NI-DAQ Configuration Utility.
2. Select the device you want to configure.
3. Click the Configure button.
4. Click the Test Resources button to test hardware resources.
Caution Do not configure the NI 653X resources in conflict with non-NI devices. For
example, do not configure two devices to have the same base address.
Note The NI PCI/PXI-7030/6533 configuration is similar to NI PCI/PXI-653X
configuration with a few exceptions. Refer to your RT Series DAQ Device User Manual for specific configuration details.
Note If you are using the NI AT-DIO-32HS in a non-Plug and Play system, the device
automatically configures to a switchless DAQ device so that it can work in the system.
Now that you have completed configuring your device, you can begin setting up the device for use.

Safety Information

The following section contains important safety information that you must follow when installing and using the product.
Do not operate the product in a manner not specified in this document. Misuse of the product can result in a hazard. You can compromise the safety protection built into the product if the product is damaged in any way. If the product is damaged, return it to National Instruments for repair.
Do not substitute parts or modify the product except as described in this document. Use the product only with the chassis, modules, accessories, and cables specified in the installation instructions. You must have all covers and filler panels installed during operation of the product.
Do not operate the product in an explosive atmosphere or where there may be flammable gases or fumes. If you must operate the product in such an environment, it must be in a suitably rated enclosure.
NI 653X User Manual 1-10 ni.com
Page 19
Chapter 1 Getting Started with Your NI 653X
If you need to clean the product, use a soft, nonmetallic brush. Make sure that the product is completely dry and free from contaminants before returning it to service.
Operate the product only at or below Pollution Degree 2. Pollution is foreign matter in a solid, liquid, or gaseous state that can reduce dielectric strength or surface resistivity. The following is a description of pollution degrees:
Pollution Degree 1 means no pollution or only dry, nonconductive pollution occurs. The pollution has no influence.
Pollution Degree 2 means that only nonconductive pollution occurs in most cases. Occasionally, however, a temporary conductivity caused by condensation must be expected.
Pollution Degree 3 means that conductive pollution occurs, or dry, nonconductive pollution occurs that becomes conductive due to condensation.
You must insulate signal connections for the maximum voltage for which the product is rated. Do not exceed the maximum ratings for the product. Do not install wiring while the product is live with electrical signals. Do not remove or add connector blocks when power is connected to the system. Avoid contact between your body and the connector block signal when hot swapping modules. Remove power from signal lines before connecting them to or disconnecting them from the product.
Operate the product at or below the installation category hardware label. Measurement circuits are subjected to working voltages
1
marked on the
2
and transient stresses (overvoltage) from the circuit to which they are connected during measurement or test. Installation categories establish standard impulse withstand voltage levels that commonly occur in electrical distribution systems. The following is a description of installation categories:
Installation Category I is for measurements performed on circuits not directly connected to the electrical distribution system referred to as MAINS
3
voltage. This category is for measurements of voltages from
specially protected secondary circuits. Such voltage measurements
1
Installation categories, also referred to as measurement categories, are defined in electrical safety standard IEC 61010-1.
2
Working voltage is the highest rms value of an AC or DC voltage that can occur across any particular insulation.
3
MAINS is defined as a hazardous live electrical supply system that powers equipment. Suitably rated measuring circuits may be connected to the MAINS for measuring purposes.
© National Instruments Corporation 1-11 NI 653X User Manual
Page 20
Chapter 1 Getting Started with Your NI 653X
include signal levels, special equipment, limited-energy parts of equipment, circuits powered by regulated low-voltage sources, and electronics.
Installation Category II is for measurements performed on circuits directly connected to the electrical distribution system. This category refers to local-level electrical distribution, such as that provided by a standard wall outlet (for example, 115 V for U.S. or 230 V for Europe). Examples of Installation Category II are measurements performed on household appliances, portable tools, and similar product.
Installation Category III is for measurements performed in the building installation at the distribution level. This category refers to measurements on hard-wired equipment such as equipment in fixed installations, distribution boards, and circuit breakers. Other examples are wiring, including cables, bus-bars, junction boxes, switches, socket-outlets in the fixed installation, and stationary motors with permanent connections to fixed installations.
Installation Category IV is for measurements performed at the primary electrical supply installation (<1,000V). Examples include electricity meters and measurements on primary overcurrent protection devices and on ripple control units.
NI 653X User Manual 1-12 ni.com
Page 21
Using Your NI 653X
To begin using your NI 653X, navigate this chapter in the following order:
1. Use the table below to choose the correct mode of operation.
2. Follow the instructions for the application you want to perform.
3. Refer to pinout diagrams in Appendix C, Connecting Signals with
Accessories, when you are ready to connect your devices and/or
accessories.
Tip Refer to the glossary for definitions of DIO terms used throughout this chapter.

Choosing the Correct Mode for Your Application

Use the following table to find the correct mode for your application:
Application Requirements Suggested Mode
2
I need to perform basic digital I/O that does not need hardware timing or handshaking between the NI 653X and the peripheral device.
I want to individually configure the direction of each bit instead of in groups of eight.
I want to connect two or more output drivers/pins to the same line. Unstrobed output with
I want to start and/or stop acquiring data upon a trigger and/or to transfer data at timed intervals.
I need to communicate with an external device using an exchange of signals to request and acknowledge each data transfer.
I want the NI 653X to capture input data only when certain lines change states.
I want to monitor activity on input lines without continuously polling or transferring unnecessary data during periods of inactivity.
© National Instruments Corporation 2-1 NI 653X User Manual
Unstrobed I/O
Unstrobed I/O
open collector driver
Pattern I/O
Handshaking I/O— Select appropriate protocol
Change Detection
Change Detection
Page 22
Chapter 2 Using Your NI 653X
Controlling and Monitoring Static Digital Lines—Unstrobed I/O
This section explains how to control and monitor static digital lines through software-timed reads and writes to and from the digital lines of your NI 653X.

Configuring Digital Lines

For unstrobed I/O, the direction of each of the 32 data lines is individually configurable. You can configure each data line as one of the following:
Input
Standard output
Open-collector output
Standard Output
A standard driver drives its output pin to approximately 0 V for logic low, or +5 V for logic high. Using a standard output driver has the following advantages:
It does not require pull-up resistors.
It is independent of the state of the DPULL line, which selects whether the 653X pulls the data lines high or low when undriven.
It has high current drive for both its logic high and logic low states.
It can drive high-speed transitions in both the high-to-low and low-to-high directions.
Open-Collector Output
An open-collector output driver drives its output pin to 0 V for logic low. For logic high, the output driver assumes a high-impedance state and does not drive a voltage. To pull the pin to +5 V for logic high, a pull-up resistor is required.
To provide a pull-up resistor, you can do one of the following things:
Connect the DPULL pin on the I/O connector to the +5 V pin. This provides 100 k pull-up resistors on all data lines. For more information about CPULL and DPULL, refer to the Power-On State section of Appendix D, Hardware Considerations.
Add a resistor to your circuit at the DUT.
NI 653X User Manual 2-2 ni.com
Page 23
Using the open-collector driver has the following advantages:
It connects two or more open-collector outputs together without damaging the drivers.
It connects open collector outputs to open-collector drivers, to GND signals, or to switches connecting to GND signals, without damaging the drivers.
It uses open collector outputs bidirectionally; if you connect open-collector outputs together, you can read back the value of a pin to determine if any connected outputs are logic low.

Using Control Lines as Extra Unstrobed Data Lines

The NI 653X has two timing controllers (Group 1 and Group 2) for high-speed data transfer. Each group contains four control lines which can time the input/output of data with hardware precision. You can use Groups 1 and 2 to perform the following actions:
Generate or receive digital patterns and waveforms at regular intervals or timed by an external TTL signal
Transfer data between two devices using one of six configurable handshaking protocols
Acquire digital data every time the state of a data line changes
Chapter 2 Using Your NI 653X
Note If you configure either group to perform handshaking I/O or pattern I/O, the
associated timing control lines for that group are not available for unstrobed I/O.
If you are not using Group 1 and/or Group 2 as timing controllers to perform pattern I/O or handshaking I/O, you can use their control lines as extra data lines. These lines constitute Port 4. The direction and output driver type of these lines are not configurable—four lines are used as input only and four are used as standard output only. Even though there are eight actual lines, the port width for Port 4 is 4 bits. In software, these lines are collectively referred to as Port 4. When writing to Port 4, the output lines are affected; and when reading from Port 4, the input lines are read. Table 2-1 displays how Port 4 lines are organized.
© National Instruments Corporation 2-3 NI 653X User Manual
Page 24
Chapter 2 Using Your NI 653X

Connecting Signals

Table 2-1. Port 4 Lines
Direction Line I/O Pins
Input 0 STOPTRIG 1
1 STOPTRIG 2
2 REQ 1
3 REQ 2
Output (standard) 0 PCLK 1
1 PCLK 2
2 ACK 1
3 ACK 2
Connect digital input signals to the I/O connector using the pinout diagrams, Figure C-1, NI 653X I/O Connector 68-Pin Assignments, and Figure C-2, 68-to-50-Pin Adapter Pin Assignments.

Creating a Program

Using the following flowcharts as a guide, create a program to perform unstrobed I/O. Figure 2-1 displays a flowchart for C programming using NI-DAQ, and Figure 2-2 shows a LabVIEW programming flowchart.
The boxes represent function names for the appropriate software, and the diamonds represent decision points.
NI 653X User Manual 2-4 ni.com
Page 25
Chapter 2 Using Your NI 653X
DIG_Prt_Config
Read?
DIG_Out_prtDIG_In_prt
Done?
No
Only One
Line?
NoYe s
No
Ye s
DIG_Line_Config
Read?
DIG_Out_LineDIG_In_Line
Done?
Figure 2-1. Programming Unstrobed I/O in NI-DAQ
Ye s N o
Single Line?
NoYe s
No
Read from
Digital Line VI
Write to
Digital Line VI
Read from
Digital Port VI
Write to
Digital Port VI
Figure 2-2. Programming Unstrobed I/O in LabVIEW/LabVIEW RT
Programming the Control/Timing Lines as Extra Unstrobed Data Lines
To use the control/timing lines as extra unstrobed data lines:
NI-DAQ C Interface—If both sets of control/timing lines are available, call
DIG_In_Prt or DIG_Out_Prt and set Port Number to 4. If both
sets of control/timing lines are not available, use
DIG_Out_Line to individually read or write to the appropriate
control/timing lines.
© National Instruments Corporation 2-5 NI 653X User Manual
DIG_In_Line and
Page 26
Chapter 2 Using Your NI 653X
LabVIEW—Use the Easy Digital I/O VI from the following list that is appropriate for your task:
Read from Digital Line VI to read from a single line
Write to Digital Line VI to write to a single line
Read from Digital Port VI to read from a digital port
Write to Digital Port VI to write to a digital port
Set digital channel to
If one control/timing line is used or reserved, and you wish to use some or all of the remaining lines for I/O, use the Advanced Digital I/O VIs DIO Port Read VI or DIO Port Write VI. Set the bits in the line mask parameter to the lines to use for I/O.
4 and port width to 4.
Generating and Receiving Digital Patterns and Waveforms—Pattern I/O
Using pattern I/O, you can acquire or generate patterns on every rising or falling edge of a clock signal. The clock signal can be generated internally by an onboard 32-bit counter set to a user-specified frequency, or the clock signal can be received from the REQ pin in the I/O connector.
Note Feed external clocking signals into the PCLK pin for burst-mode handshaking and
into the REQ pin when performing pattern I/O.

Deciding the Width of Data to Transfer

You can choose between a width of 8, 16, or 32 bits. Use the following table to find the valid combinations of ports and timing controllers based on the width of data you want to transfer.
Table 2-2. Port and Timing Controller Combinations
Transfer
Width
8 bits Port 0 (DIOA<0..7>) Group 1
NI 653X User Manual 2-6 ni.com
Possible Port
Combinations
Port 2 (DIOC<0..7>) Group 2
Timing Controllers
That Can Be Used
Page 27
Chapter 2 Using Your NI 653X
Table 2-2. Port and Timing Controller Combinations (Continued)
Transfer
Width
16 bits Port 0, Port 1 Group 1
Port 2, Port 3 Group 2
32 bits Port 0, Port 1, Port 2, Port 3 Group 1
Possible Port
Combinations

Deciding Transfer Direction

You can choose to send data from your NI 653X to the peripheral device (output) or from the peripheral device to your NI 653X (input).

Choosing an Internal or External REQ Source

In pattern I/O, the NI 653X acquires/generates data on every falling or rising edge (programmable) of the REQ signal. The REQ signal can be generated internally or based on the clock of a peripheral device. An example of using external REQ is sharing a sample clock of an analog input device so you can synchronize the analog and digital operations.

Reversing the REQ Polarity

By default, data from an external REQ source is transferred on the rising edge of the signal and on the falling edge of the internal REQ source. You can reverse the REQ polarity by using the following functions:
NI-DAQ C interface—Specify the REQ polarity in before calling
LabVIEW—Specify the REQ polarity with the request polarity parameter in the Digital Mode Config VI, which is called by DIO Config VI.
DIG_Block_PG_Config.
Timing Controllers
That Can Be Used
DIG_Group_Mode
Note For more information on LabVIEW VIs and NI-DAQ functions, consult the
LabVIEW Help and the NI-DAQ Function Reference Help.
Refer to Table C-1, NI 653X I/O Connector 68-Pin Assignments, for an overview of all control/timing trigger lines.
© National Instruments Corporation 2-7 NI 653X User Manual
Page 28
Chapter 2 Using Your NI 653X

Specifying the Transfer Rate

If you are internally generating the REQ signal, you must specify the data transfer rate. The transfer rate is specified in software by using two parameters, the timebase frequency and timebase divisor:
transfer rate (Hz)
where
timebase frequency = 20 MHz, 10 MHz, 1 MHz, 100 kHz, 10 kHz, 1 kHz, or 100 Hz, and
timebase divisor = an integer between 1 and 65,355.
For example, if you specify a timebase of 100 kHz and a timebase divisor of 25, the resulting acquisition/generation rate would be 4 kHz because 100 kHz/25 = 4 kHz.
Note If you are using a version of NI-DAQ prior to version 6.8, the minimum value for
timebase divisor is 2.
Note In LabVIEW, you can specify the transfer rate directly using Digital Clock
Config VI (called by DIO Start VI). The software chooses the closest transfer rate by selecting the frequency and divisor. To see the actual transfer rate, create an indicator at the actual clock frequency output of Digital Clock Config VI.
timebase frequency
----------------------------------------------=
timebase divisor
Starting and Stopping Data Transfer—Triggering
By default, data transfer starts upon a software command (the Digital Buffer Control VI called by the DIO Start VI in LabVIEW and the
DIG_Block_In and DIG_Block_Out functions in NI-DAQ C interface).
However, you can use a hardware trigger to start, stop, or start and stop data transfer. Trigger signals should be connected as inputs to the ACK1 and/or ACK2 lines while in pattern I/O mode.
Note The NI 653X supports triggering only in pattern I/0 mode. In handshaking mode,
you cannot use triggering because the handshaking lines are used to start and stop the data transfer.
Start Trigger
A start trigger is a trigger that initiates a pattern I/O upon receipt of a hardware trigger on the ACK (STARTTRIG) pin.
NI 653X User Manual 2-8 ni.com
Page 29
Chapter 2 Using Your NI 653X
ACK (STARTTRIG)
REQ
Posttrigger Data
Figure 2-3. Starting Data Transfer Using a Trigger
Stop Trigger
When you use a stop trigger, data transfer starts upon a software command. Then, once a hardware trigger is received on the STOPTRIG pin, a predetermined amount of pretrigger and posttrigger data is saved in the buffer. Once this data is in the buffer, transfer stops. If the stop trigger arrives before all the pretrigger data is acquired, NI-DAQ returns an error.
STOPTRIG
REQ
Pretrigger Data
Figure 2-4. Stopping Data Transfer Using a Trigger
Posttrigger Data
Start and Stop Trigger
When you use a start and stop trigger, data transfer starts upon receiving a trigger on the start trigger line (ACK/STARTTRIG pin) and ends upon receiving a trigger on the stop trigger line (STOPTRIG pin), and a predetermined amount of pretrigger and posttrigger data is saved in the buffer. If the device receives a stop trigger before a start trigger, the stop trigger is ignored. If the stop trigger arrives before all the pretrigger data is acquired, NI-DAQ returns an error.
© National Instruments Corporation 2-9 NI 653X User Manual
Page 30
Chapter 2 Using Your NI 653X
ACK (STARTTRIG)
STOPTRIG
REQ
Pretrigger Data Posttrigger Data
Figure 2-5. Using a Start and Stop Trigger
Pattern-Matching Trigger (Input Only)
Instead of using an external signal on the start/stop trigger pins on the I/O connector, you may start or stop (not both) an operation once a user-specified digital pattern is matched or not matched.
Specify four parameters to set up a pattern-matching trigger:
Whether it is a start or stop trigger
The data pattern to be detected/matched
The mask, which selects the bits of interest for pattern comparison (0 for bits not of interest)
The polarity (whether to trigger on data that matches or mismatches the specified pattern)
For example, if you want to start acquisition when the two least significant bits of your data are 1 and 0, you would specify your trigger parameters to match those in Figure 2-6.
Pattern to Detect
Mask
Polarity
Figure 2-6. Pattern-Matching Trigger Example
To prevent a transient data value during line switching from falsely causing a match,
Tip
XXXXXX1 0
00000011
Postive: Search for Match
set a valid pattern for at least 60 ns to guarantee detection. In addition, keep glitches to less than 20 ns to guarantee rejection.
NI 653X User Manual 2-10 ni.com
Page 31

Choosing Continuous or Finite Data Transfer

You can transfer data continuously into or from computer memory or specify the number of points you want to transfer.
Finite Transfers
For finite transfers, the NI 653X transfers the specified amount of data to/from computer memory and stops the operation.
Continuous Input
For continuous input, the NI 653X transfers input data to the computer memory buffer continuously. As the device fills the buffer, call the
DIG_DB_Transfer function or the DIO Read VI to retrieve the data. If at
any time the device runs out of space in the buffer, it stops the operation and NI-DAQ returns an error.
You can allow the device to continue acquiring when it runs out of buffer space and overwrite data you have not yet read. You can specify this through the the data overwrite/regen. parameter in the Digital Buffer Control VI, which is called by the DIO Start VI.
oldDataStop parameter in the DIG_DB_Config function and
Chapter 2 Using Your NI 653X
Continuous Output
Similarly, with continuous output, the NI 653X continuously reads data from computer memory. As the device retrieves data from the buffer, call the The device stops and returns an error if it runs out of data to generate, but you can allow it to regenerate data that has already been generated. As in continuous input, you configure the device to allow regeneration with the
oldDataStop parameter in the DIG_DB_Config function and the data
overwrite/regen. parameter in the Digital Buffer Control VI, which is
called by the DIO Start VI.
© National Instruments Corporation 2-11 NI 653X User Manual
DIG_DB_Transfer function or the DIO Write VI to write the data.
Page 32
Chapter 2 Using Your NI 653X
NI 6534
With the NI 6534, if you want to repeatedly generate the same block of data, you can load a buffer of data into onboard memory and continuously loop through this data block. With this option, data is only transferred from computer memory to the device onboard memory once, and the device continuously generates the same block of data from its onboard memory. This allows the device to output data at higher rates because it is not limited by the PCI bus bandwidth. To enable onboard memory looping:
NI-DAQ C interface—In
ND_PATTERN_GENERATION_LOOP_ENABLE to ND_ON.
Set_DAQ_Device_Info, set
LabVIEW—Use the DIO Parameter VI to set the Pattern Generation Loop attribute to ON.
You have the following restrictions when looping from the onboard memory of the NI 6534:
For 8-bit data, the buffer size must be a multiple of 4.
For 16-bit data, the buffer size must be an even number.
There are no restrictions for 32-bit data. For 8- or 16-bit data, you may need to add dummy data to the buffer to make it the correct size.
Choosing DMA or Interrupt Transfers
When using DMA (default), the NI 6534 transfers data in 32-byte blocks, and the NI 6533 transfers data in 4-byte blocks. Therefore, at any time during a continuous operation, there may be up to 31 bytes (or 3 bytes for the NI 6533) of data in an internal FIFO. You can use interrupt-driven transfers if you need to retrieve data immediately as it is acquired. Interrupt-driven transfers are slower and take more processing time from the computer than DMA-driven transfers.

Monitoring Data Transfer

To monitor your data transfer once data transfer starts:
NI-DAQ C interface—Call transfer. For continuous transfers, use obtain the cumulative transfer count ( return the number of buffer iterations completed). The following table lists the attribute types and values returned for
Get_DAQ_Device_Info:
NI 653X User Manual 2-12 ni.com
DIG_Block_Check to monitor finite data
Get_DAQ_Device_Info to
DIG_Block_Check does not
Page 33
Chapter 2 Using Your NI 653X
Trans fer
Direction
Attribute Value Returned
Input ND_READ_MARK_H_SNAPSHOT_GR1 Most significant 32 bits of transfer count
ND_READ_MARK_H_SNAPSHOT_GR2
ND_READ_MARK_L_SNAPSHOT_GR1 Least significant 32 bits of transfer count
ND_READ_MARK_L_SNAPSHOT_GR2
Output ND_WRITE_MARK_H_SNAPSHOT_GR1 Most significant 32 bits of transfer count
ND_WRITE_MARK_H_SNAPSHOT_GR2
ND_WRITE_MARK_L_SNAPSHOT_GR1 Least significant 32 bits of transfer count
ND_WRITE_MARK_L_SNAPSHOT_GR2
Note You should always read the least significant bits of the transfer count before reading
the most significant bits. The 32 most significant bits of the transfer count is cached in software when you read the least significant bits.
LabVIEW—Use the Digital Buffer Write VI or the Digital Buffer Read VI, which are called by the DIO Read VI, the DIO Write VI, and the DIO Wait VI.

Connecting Signals

Connect digital input signals to the I/O connector using the pinout diagrams, Figure C-1, NI 653X I/O Connector 68-Pin Assignments, or Figure C-2, 68-to-50-Pin Adapter Pin Assignments.
If you are using an external source for your REQ signal, connect it to the appropriate REQ pin of the I/O connector.
If you are using external start and/or stop triggers, connect to the appropriate pins—start trigger (ACK/STARTTRIG) and/or stop trigger (STOPTRIG).
© National Instruments Corporation 2-13 NI 653X User Manual
Page 34
Chapter 2 Using Your NI 653X

Creating a Program

DIG_Grp_Config
Using the following flowcharts as a guide, create a program to perform pattern I/O. Figures 2-7 and 2-8 display flowcharts for C programming using NI-DAQ, while Figure 2-9 shows a LabVIEW programming flowchart.
The boxes represent function names for the appropriate software, and the diamonds represent decision points.
DIG_Block_Clear
Ye s
DIG_Block_PG_Config
Trigger?
Ye s
DIG_Trigger_Config
No
Read?
Acquisition Complete?
DIG_Block_Check
DIG_Block_In
Ye s
No
DIG_Block_Out
No
Figure 2-7. Programming Pattern I/O (Single Buffer) in NI-DAQ C API
NI 653X User Manual 2-14 ni.com
Page 35
Chapter 2 Using Your NI 653X
Ye s
Read?
No
DIG_Grp_Config
DIG_Block_PG_Config
DIG_Block_In
No
Is the
DIG_DB_HalfReady
next half buffer
ready?
DIG_Block_Out
Ye s
DIG_DB_Transfer
No
Acquisition Complete?
Trigger?
No
DIG_DB_Config
Ye s
Ye s
DIG_Block_Clear
DIG_Trigger_Config
Figure 2-8. Programming Pattern I/O (Continuous) in NI-DAQ C API
© National Instruments Corporation 2-15 NI 653X User Manual
Page 36
Chapter 2 Using Your NI 653X
DIO Config VI
Write?
Ye s
DIO Write VI
No
Digital Trigger Config VI
Digital Trigger Config VI
Trigger?
Ye s
DIO Start VI
No
DIO Clear VI
No
Ye s
Trigger?
Ye s
Done?
DIO Read/Write VI
No
Figure 2-9. Programming Pattern I/O in NI-DAQ LabVIEW/LabVIEW RT API
Notes
If you are using an external clock for finite pattern input, the NI 653X requires an extra clock edge to move data from the DIO ASIC and into the computer memory after the final data sample is acquired.
If you are performing a finite pattern output operation, you can call DIO Wait VI instead of the DIO Write VI after the DIO Start VI. For more information about these VIs, refer to the LabVIEW Help.
NI PCI/PXI-6534
For output buffered transfers the NI 6534 by default preloads the onboard memory with data before starting the output operation. Preloading eliminates or reduces the impact of the PCI bus bandwidth limitations and increases the overall transfer rate. The preloading process causes a small delay between the start command in software and the actual start of data transfer. If this is a concern, you can disable the preloading by calling the following function/VI before the software start command:
NI-DAQ C interface—In the set the
ND_FIFO_TRANSFER_COUNT to ND_NONE.
Set_DAQ_Device_Info function,
LabVIEW—Use the DIO Parameter VI to set the Scarabs Preload Enable attribute to None.
NI 653X User Manual 2-16 ni.com
Page 37
Note Because output data is preloaded to the NI 6534 buffer, you cannot use DAQEvents
(called Progress events in the CWDO object of Measurement Studio) to monitor the progress of pattern generation. A DAQEvent is fired when data is preloaded into the NI 6534 onboard memory from the PC memory, so the event indicates a data transfer from the PC memory, not the progress of pattern generation from the NI 6534 to an external device.
Transferring Data Between Two Devices—Handshaking I/O
If you want to communicate with an external device using an exchange of signals to request and acknowledge each data transfer, use the handshaking I/O mode.

Choosing the Width of Data to Transfer

You can choose between a width of 8, 16, or 32 bits. Use the following table to find the valid combinations of ports and timing controllers you can use based on the width of data you want to transfer.
Table 2-3. Port and Timing Controller Combinations
Chapter 2 Using Your NI 653X
Transfer
Width
8 bits Port 0 (DIOA<0..7>) Group 1
Port 2 (DIOC<0..7>) Group 2
16 bits Port 0, Port 1 Group 1
Port 2, Port 3 Group 2
32 bits Port 0, Port 1, Port 2, Port 3 Group 1
Possible Port
Combinations
Timing Controllers
That Can Be Used

Deciding Data Transfer Direction

You can choose to send data from the NI 653X to the peripheral device (output) or from the peripheral device to the NI 653X (input).

Deciding Which Handshaking Protocol to Use

The NI 653X supports several different handshaking protocols to communicate with your peripheral device. The protocol you select determines the timing of the ACK and REQ signals.
© National Instruments Corporation 2-17 NI 653X User Manual
Page 38
Chapter 2 Using Your NI 653X
From the perspective of the NI 653X, the peripheral device requests the transfer of data by signaling on the REQ line. The NI 653X acknowledges it is ready to transfer data by signaling on the ACK line.
Use Table 3-1, Handshaking Protocol Characteristics, to select a handshaking protocol for your application. To select a protocol compatible with your peripheral device, compare the handshaking sequence and state machine diagrams for each protocol in the later sections of Chapter 3,
Timing Diagrams.

Using the Burst Protocol

The burst protocol differs from all the other handshaking protocols in that it is the only synchronous (clocked) protocol. In addition to ACK and REQ, the NI 653X and peripheral device share a clock signal over the PCLK line. Refer to Chapter 3, Timing Diagrams, for more information about the burst protocol.
If you want to acquire or generate patterns of every edge of a clock signal, refer to the Generating and Receiving Digital Patterns and
Waveforms—Pattern I/O section.
Note Feed external clocking signals into the PCLK pin for burst-mode handshaking and
into the REQ pin when performing pattern I/O.
Deciding the PCLK Signal Direction
The NI 653X can receive an external PCLK signal to control data transfers or generate a PCLK signal using an internal 32-bit counter to output to the peripheral device. By default, the NI 653X generates the PCLK signal for input operations and receives an external PCLK signal for output operations.
To set the direction of the PCLK signal:
NI-DAQ C interface—Set the in
Set_DAQ_Device_Info.
LabVIEW—Set the Clock Reverse Mode attribute to ON using the DIO Parameter VI.
Note For more information on LabVIEW VIs and NI-DAQ functions, consult the
LabVIEW Help and the NI-DAQ Function Reference Help.
ND_CLOCK_REVERSE_MODE to ND_ON
NI 653X User Manual 2-18 ni.com
Page 39

Selecting ACK/REQ Signal Polarity

For all handshaking protocols except 8255 emulation, you can set the polarity of the ACK and REQ signals to active high or active low through software. By default, these signals are active high in NI-DAQ functions and active low in LabVIEW VIs. Refer to Table C-1, NI 653X I/O Connector
68-Pin Assignments, for an overview of all control/timing trigger lines.

Choosing Whether to Use a Programmable Delay

For all the protocols, you can set a programmable delay. A programmable delay is useful when the handshaking signals of the NI 653X occur faster than the peripheral device can handle.
For all protocols except burst, the delay increases the time before the NI 653X can respond to the REQ signal. For the burst protocol, the programmable delay selects the frequency of the clock signal when you use an internally generated clock source. You can change the PCLK frequency by modifying the ACK Modify Amount parameter of the Digital Mode Config VI or the ACK Delay Time attribute of the in NI-DAQ C interface. Use the following table to find the resulting period in nanoseconds. The PCLK frequency is then selected by NI-DAQ based on this choice.
Chapter 2 Using Your NI 653X
DIG_Grp_Mode function
PCLK Period in ns PCLK Frequency in MHz
50 20
100 10
200 5
300 3.33
400 2.5
500 2
600 1.66
700 1.43
The state machine diagrams in Chapter 3, Timing Diagrams, show more precisely where this delay occurs in the handshaking sequence.
© National Instruments Corporation 2-19 NI 653X User Manual
Page 40
Chapter 2 Using Your NI 653X

Choosing Continuous or Finite Data Transfer

You can transfer data indefinitely to/from computer memory or finitely by specifying the number of points you want to transfer.
Finite Transfers
For finite transfers, the NI 653X transfers the specified amount of data to/from a computer memory buffer and stops the operation.
Continuous Input
For continuous input, the NI 653X transfers input data to the computer memory buffer continuously. As the device fills the buffer, call the
DIG_DB_Transfer function or the DIO Read VI to retrieve the data.
If at any time the device runs out of space in the buffer, it pauses the handshaking operation until your program clears more buffer space.
You can allow the device to continue acquiring data when it runs out of buffer space and overwrite data you have not yet read. You can specify this through the the data overwrite/regen. parameter in the Digital Buffer Control VI called by the DIO Start VI.
oldDataStop parameter in the DIG_DB_Config function and
Continuous Output
Similarly, with continuous output, the NI 653X continuously reads data from computer memory. As the device retrieves data from the buffer, call the
DIG_DB_Transfer function or the DIO Write VI to write new data to
the buffer. The device pauses the handshaking operation if it runs out of data to generate. The data transfer resumes once more data is available.
You have the option to allow it to regenerate data that has already been output. As in continuous input, you specify the device to allow regeneration though the the data overwrite/regen. parameter in the Digital Buffer Control VI, called by the DIO Start VI.
NI 6534
With the NI 6534, if you want to repeatedly generate the same block of data, you can load a buffer of data into onboard memory and continuously loop through this data block. With this option, data is only transferred from computer memory to the NI 6534 onboard memory once, and the device generates the same block of data continuously from its onboard memory,
NI 653X User Manual 2-20 ni.com
oldDataStop parameter in the DIG_DB_Config function and
Page 41
Chapter 2 Using Your NI 653X
allowing the device to generate data at higher rates because it is not limited by the PCI bus bandwidth. To enable onboard memory looping:
NI-DAQ C interface—In
ND_PATTERN_GENERATION_LOOP_ENABLE to ND_ON in the Set_DAQ_Device_Info function.
LabVIEW—Use the DIO Parameter VI to set the Pattern Generation
Loop Enable attribute to ON.
You have the following restrictions when looping from the onboard memory of the NI 6534:
For 8-bit data, the buffer size must be a multiple of 4.
For 16-bit data, the buffer size must be an even number.
There are no restrictions for 32-bit data. For 8- or 16-bit data, you may need to add dummy data to the buffer to make it the correct size.
Set_DAQ_Device_Info, set
Choosing DMA or Interrupt Transfers
When using DMA (default), the NI 6534 transfers data in 32-byte blocks, and the NI 6533 transfers data in 4-byte blocks. Therefore, at any time during a continuous operation, there may be up to 31 bytes (or 3 bytes for the NI 6533) of data in an internal FIFO. You can use interrupt-driven transfers if you need to retrieve data as soon as it is acquired. Interrupt-driven transfers are slower and take more processing time from the computer than DMA-driven transfers.

Connecting Signals

1. Connect the digital input signals to the I/O connector using the pinout diagrams, Figure C-1, NI 653X I/O Connector 68-Pin Assignments, and Figure C-2, 68-to-50-Pin Adapter Pin Assignments.
2. Connect the ACK pin of the NI 653X to the NI 653X-ready line of the peripheral device.
3. Connect the REQ pin of the NI 653X to the peripheral-ready line of the peripheral device.
© National Instruments Corporation 2-21 NI 653X User Manual
Page 42
Chapter 2 Using Your NI 653X
653X Device
If you are using the burst protocol, make the connection to the appropriate PCLK pin on the NI 653X.

Choosing the Startup Sequence

To avoid invalid or missing data when the ACK and REQ lines change polarity to either active high or active low, start a transfer using one of the following methods:
Control the configuration and use an initialization order.
Select compatible line polarities and default line levels.
Using an Initialization Order
This startup sequence ensures the NI 653X is configured and is driving a valid ACK value before you enable the transfer on the peripheral device. Similarly, you can make sure the peripheral device is configured and is driving a valid REQ value before you enable the transfer on the NI 653X.
1. Configure the NI 653X for a mode compatible with your peripheral device.
2. Configure and reset the peripheral device, if appropriate.
3. Enable the input device (NI 653X or peripheral device) and begin a transfer.
4. Enable the output device (NI 653X or peripheral device) and begin a transfer.
ACK
REQ
I/O
Figure 2-10. Connecting Signals
Confirm
Ready
I/O
Your Peripheral Device
To control this initialization order, you must enable and disable the peripheral device and control the order in which the NI 653X and the peripheral device are enabled. You can use the extra input and output lines for this purpose.
NI 653X User Manual 2-22 ni.com
Page 43
Chapter 2 Using Your NI 653X
Controlling the startup sequence does not apply to buffered (block) operations. In a buffered operation, the NI-DAQ C interface configures and enables the NI 653X at the same time, when you start the actual data transfer. For buffered operations, control the line polarities as a start-up method.
Controlling Line Polarities
If you cannot control the initialization order of the NI 653X and peripheral device, you can ensure an optimum startup if you select the polarities of the ACK and REQ lines so that the power-up, undriven states of the control lines are the inactive states.
By default, the power-up, undriven control-line state of the REQ and ACK lines is low. If you want to change state to high, use one of the three following methods:
Use the CPULL bias-selection line and connect the CPULL pin on the I/O connector to the +5 V pin. This provides 2.2 k pull-up resistors on all control lines.
Choose a mode with active-high REQ and ACK signals.
Use your own pull-up resistors.
For information about using the CPULL line to control the pull-up and pull-down resistors, refer to the Power-On State section of Appendix D,
Hardware Considerations.

Creating a Program

Using the following flowcharts as a guide, create a program to perform handshaking I/O. Figures 2-11 and 2-12 display flowcharts for C programming using NI-DAQ, and Figures 2-13 and 2-14 show LabVIEW programming flowcharts.
The boxes represent function names for the appropriate software, and the diamonds represent decision points.
© National Instruments Corporation 2-23 NI 653X User Manual
Page 44
Chapter 2 Using Your NI 653X
DIG_Grp_Config
DIG_Grp_Mode
Continuous?
No
Read?
No
Ye s
Ye s
Ye s
Read?
DIG_DB_Config
DIG_Block_In
DIG_Block_Out
DIG_Block_In
No
DIG_Block_Out
DIG_Block_Check
DIG_DB_HalfReady
No
Acquisition Complete?
Ye s
No
Is the
next half buffer
ready?
Ye s
DIG_DB_Transfer
No
Acquisition Complete?
Ye s
DIG_Block_Clear
Figure 2-11. Programming Buffered Handshaking I/O in NI-DAQ C API
NI 653X User Manual 2-24 ni.com
Page 45
DIG_Grp_Config
DIG_Grp_Mode
Chapter 2 Using Your NI 653X
Input?
Ye s
DIG_Grp_Status
Ready?
Ye s
DIG_In_Grp
DIG_In_Grp
Done?
Ye s
DIO_Grp_Config
No
No
No
DIG_Out_Grp
DIG_Grp_Status
DIO_Grp_Config
*Clear Configuration
Ready?
Ye s
Done?
Ye s
No
No
*
Figure 2-12. Programming Unbuffered Handshaking I/O in NI-DAQ C API
© National Instruments Corporation 2-25 NI 653X User Manual
Page 46
Chapter 2 Using Your NI 653X
Buffered
Operation?
No
Digital Group
Config VI
Digital Single
Read VI
Digital Group
Config VI
Resets lines to
default states.
Ye s
DIO Parameter VI
DIO Config VI
Burst
Mode?
Ye s
Reverse
PCLK
Direction?
Ye s
No
No
DIO Start VI
Finite
Buffer?
Ye s
DIO Read VI
Reverse
PCLK
Direction?
No
DIO Clear VI
No
Ye s
Ye s
DIO Parameter VI
DIO Read VI
Done?
No
Figure 2-13. Programming Handshaking Input in NI-DAQ LabVIEW/LabVIEW RT API
NI 653X User Manual 2-26 ni.com
Page 47
Chapter 2 Using Your NI 653X
Buffered
Operation?
No
Digital Group
Config VI
Digital Single
Write VI
Digital Group
Config VI
Resets the lines
to default states.
Ye s
DIO Parameter VI
DIO Config VI
DIO Write VI
Burst
Mode?
Ye s
Reverse
PCLK
Direction?
Ye s
No
No
DIO Start VI
Finite
Buffer?
Ye s
DIO Wait VI
Reverse
PCLK
Direction?
No
No
Ye s
Ye s
DIO Parameter VI
DIO Write VI
Done?
No
DIO Clear VI
Figure 2-14. Programming Handshaking Output in NI-DAQ LabVIEW/LabVIEW RT API
NI 6534
By default, for output buffered transfers the NI 6534 preloads the onboard memory with data before starting the output operation. Preloading the memory eliminates or reduces the impact of the PCI bus bandwidth limitations and increases the overall transfer rate.
© National Instruments Corporation 2-27 NI 653X User Manual
Page 48
Chapter 2 Using Your NI 653X
The preloading process causes a small delay between the start command in software and the actual start of data transfer. If this delay is a concern, you may disable the preloading by calling the following function/VI before the software start command:
NI-DAQ C interface—In the the ND_FIFO_Transfer_COUNT to ND_NONE.
LabVIEW—In the DIO Parameter VI, set the Scarabs Preload Enable attribute to None.
Note Because output data is preloaded to the NI 6534 buffer, you cannot use DAQ events
(called progress events in the CWDO object of Measurement Studio) to monitor the progress of a handshaking output operation. A DAQEvent is fired when data is preloaded into the NI 6534 onboard memory from the PC memory, so the event indicates a data transfer from the PC memory, not the progress of data output from the NI 6534 to an external device.
Set_DAQ_Device_Info function, set
Monitoring Line State—Change Detection
You can configure your NI 653X to acquire data whenever the state of one or more data lines change. Once the NI 653X detects a change in one of the selected lines, it captures data within 50–150 ns and outputs a pulse on the REQ pin. This mode increases CPU and bus efficiency because you can monitor activity on input lines without continuously polling or transferring unnecessary data during periods of inactivity.
Tip When you use the NI 653X alone, it detects whether a change occurred, but when you
use the NI 653X and an NI 660X counter/timer device (using a RTSI line), the relative time between changes can be acquired by the NI 660X.

Deciding the Width of Data to Acquire

You can choose between a width of 8, 16, or 32 bits. Use the following table to find the valid combinations of ports and timing controllers you can use based on the width of data you want to acquire.
Table 2-4. Port and Timing Controller Combinations
Transfer
Width
8 bits Port 0 (DIOA<0..7>) Group 1
NI 653X User Manual 2-28 ni.com
Possible Port
Combinations
Port 2 (DIOC<0..7>) Group 2
Timing Controllers
That Can Be Used
Page 49
Chapter 2 Using Your NI 653X
Table 2-4. Port and Timing Controller Combinations (Continued)
Transfer
Width
Possible Port
Combinations
16 bits Port 0, Port 1 Group 1
Port 2, Port 3 Group 2
32 bits Port 0, Port 1, Port 2, Port 3 Group 1

Deciding Which Lines You Want to Monitor

You need to specify which of the lines in your acquisition you want to monitor for changes.
Specify which bits are significant to you by using a software line mask in the
DIG_Trigger_Config function in NI-DAQ C interface, and the
Digital Trigger Config VI for LabVIEW. In the following example, the user specifies the mask to detect changes on the two least-significant bits of a port. Pattern 1 does not have changes in the two bits of interest, and data is not latched. For pattern 2, however, a change is detected on one of the two bits of interest, and the value of the entire port is acquired.
Mask 00000011
Timing Controllers
That Can Be Used
Initial Input Pattern 00000010
Input Pattern 1 01000010
Input Pattern 2 00000011
Figure 2-15. Change Detection Example Settings
© National Instruments Corporation 2-29 NI 653X User Manual
No change on specified bits. Data is not latched.
Change detected, latch entire port.
Page 50
Chapter 2 Using Your NI 653X
Deciding How to Start and Stop Data Transfer—Triggering
By default, data transfer starts upon a software command (the Digital Buffer Control VI called by the DIO Start VI in LabVIEW and the
DIG_Block_In and DIG_Block_Out functions in NI-DAQ C interface).
However, you can use a hardware trigger to start, stop, or start and stop data transfer.
The three types of trigger signals available are the start trigger, the stop trigger, or the start and stop trigger.
Start Trigger
A start trigger is a trigger that initiates a pattern I/O upon receipt of a hardware trigger on the ACK (STARTTRIG) pin.
ACK (STARTTRIG)
REQ
Posttrigger Data
Figure 2-16. Starting Data Transfer Using a Trigger
Stop Trigger
When using a stop trigger, transfer starts upon a software command. Once a hardware trigger is received on the STOPTRIG pin, a predetermined amount of pretrigger and posttrigger data is saved in the buffer. Once this data is in the buffer, transfer stops. If the stop trigger arrives before all the pretrigger data is acquired, an error is returned in software.
STOPTRIG
REQ
Pretrigger Data
Figure 2-17. Stopping Data Transfer Using a Trigger
NI 653X User Manual 2-30 ni.com
Posttrigger Data
Page 51
Chapter 2 Using Your NI 653X
Start and Stop Trigger
When using a start and stop trigger, transfer starts upon receiving a trigger on the start trigger line (ACK/STARTTRIG pin) and ends upon receiving a trigger on the stop trigger line (STOPTRIG pin). A predetermined amount of pretrigger and posttrigger data is saved in the buffer. If a stop trigger is received before a start trigger, it is ignored. If the stop trigger arrives before all the pretrigger data is acquired, NI-DAQ returns an error.
ACK (STARTTRIG)
STOPTRIG
REQ
Pretrigger Data Posttrigger Data
Figure 2-18. Using a Start and Stop Trigger
Pattern-Matching Trigger
Instead of using an external signal on the start/stop trigger pins on the I/O connector, you may start or stop (not both) an operation once a user-specified digital pattern is matched.
Specify four parameters to set a pattern-matching trigger:
Whether it is a start or stop trigger
The data pattern to be detected/matched
The mask, which selects the bits of interest for pattern detection
Note The mask for the pattern-matching trigger is the same as the one used for change
detection. In other words, input lines significant for the pattern-matching trigger are also significant for change detection.
Polarity (whether to detect data that matches or mismatches the specified pattern)
The NI 653X immediately detects any occurrence of a specific pattern as the data arrives. When a match occurs, the NI 653X starts acquiring data. For example, if you want to start an acquisition when the two least significant bits of your data are 1 and 0, you would specify your trigger parameters to match those in Figure 2-19.
© National Instruments Corporation 2-31 NI 653X User Manual
Page 52
Chapter 2 Using Your NI 653X
Value to Detect
Pattern
Mask
Polarity
Figure 2-19. Pattern-Detection Trigger Example
Tip
To prevent a transient data value during line switching from falsely causing a match,
XXXXXX1 0
00000010
00000011
set a valid pattern for at least 60 ns to guarantee detection. In addition, keep glitches to less than 20 ns to guarantee rejection.

Choosing Continuous or Finite Data Transfer

You can continuously acquire data into or transfer data from computer memory or specify the number of points you want to transfer.
Finite Transfers
For finite transfers, the NI 653X acquires the specified amount of data to a computer memory buffer and stops the operation.
Postive: Search for Match
Continuous Input
For continuous input, the NI 653X continuously transfers input data to the computer memory buffer. As the device fills the buffer, call the
DIG_DB_Transfer function or the DIO Read VI to retrieve the data. If at
any time the device runs out of space in the buffer, it stops the operation and NI-DAQ returns an error.
You can allow the device to continue when it runs out of buffer space and overwrite data you have not yet read. You can specify this though the
oldDataStop parameter in the DIG_DB_Config function and the data
overwrite/regen. parameter in the Digital Buffer Control VI, called by the
DIO Start VI.
NI 653X User Manual 2-32 ni.com
Page 53

Connecting Signals

Creating a Program

Chapter 2 Using Your NI 653X
Choosing DMA or Interrupt Transfers
When using DMA (default), the NI 6534 transfers data in 32-byte blocks, and the NI 6533 transfers data in 4 byte blocks. Therefore, at any time during a continuous operation, there may be up to 31 bytes (or 3 bytes for the NI 6533) of data in an internal FIFO. You can use interrupt-driven transfers if you need to retrieve data immediately as it is acquired. Interrupt-driven transfers are slower and take more processing time from the computer than DMA-driven transfers.
Connect digital input signals to the I/O connector using the pinout diagrams, Figure C-1, NI 653X I/O Connector 68-Pin Assignments, or Figure C-2, 68-to-50-Pin Adapter Pin Assignments.
If you are using external start and/or stop triggers, connect to the appropriate pins—start trigger (ACK or STARTTRIG) and/or stop trigger (STOPTRIG).
Using the following flowcharts as a guide, create a program to perform change detection. Figure 2-20 and Figure 2-21 display flowcharts for C programming using NI-DAQ, and Figure 2-22 shows a LabVIEW programming flowchart.
The boxes represent function names for the appropriate software, and the diamonds represent decision points.
© National Instruments Corporation 2-33 NI 653X User Manual
Page 54
Chapter 2 Using Your NI 653X
DIG_Grp_Config
DIG_Block_In
DIG_Block_PG_Config
DIG_Trigger_Config DIG_DB_Config
Specify Data Mask Here
Figure 2-20. Programming Change Detection (Continuous) in NI-DAQ C API
DIG_Grp_Config
DIG_Block_PG_Config
DIG_DB_HalfReady
No
Is the
next half buffer
ready?
Ye s
DIG_DB_Transfer
No
Acquisition Complete?
Ye s
DIG_Block_Clear
DIG_Block_Clear
Ye s
DIG_Trigger_Config
DIG_Block_In DIG_Block_Check
Acquisition Complete?
No
Specify Data Mask Here
Figure 2-21. Programming Change Detection (Single Buffer) in NI-DAQ C API
NI 653X User Manual 2-34 ni.com
Page 55
DIO Config VI
Trigger Config VI
DIO Start VI
DIO Read VI
Chapter 2 Using Your NI 653X
Specify Data Mask Here
Done?
No
Ye s
DIO Clear VI
Figure 2-22. Programming Change Detection for NI-DAQ LabVIEW/LabVIEW RT API
© National Instruments Corporation 2-35 NI 653X User Manual
Page 56
Timing Diagrams
This chapter contains timing diagrams for the handshaking and pattern I/O modes. You can use these diagrams to learn details about what happens in hardware when you use these modes.
Note All timing diagrams are in nanoseconds.

Pattern I/O Timing Diagrams

Use pattern I/O to transfer data at a timed interval upon the rising or falling edge of the REQ signal. The REQ signal can be internally generated by the NI 653X or externally supplied through the I/O connector.
Note Your transfer rate is limited by the minimum available bus bandwidth in your
computer system, unless you are using the NI PCI/PXI-6534, which has onboard memory. Otherwise, you are limited by the number of other devices using the bus and your application software, both of which can lower your transfer rate. For more information about transfer rates, refer to Appendix E, Optimizing Your Transfer Rates.
3

Internal REQ Signal Source

The NI 653X can internally generate a signal (REQ) with which to strobe data. To program the frequency of this signal, specify the timebase and interval as shown in the Specifying the Transfer Rate section of Chapter 2,
Using Your NI 653X. The device captures data on the rising (active low) or
falling edge (active high) of this signal. You can select the polarity of the REQ signal through software, as described in the Reversing the REQ
Polarity section of Chapter 2, Using Your NI 653X.
When generating an internal REQ signal, the asserted time of the resulting clock is one period of the timebase used to generate the REQ signal. The exception is if you use a 20 MHz timebase (50 ns) and select an interval of 1. The REQ pulse is then asserted for 20–30 ns.
Note If you are using a version of NI-DAQ earlier than version 6.8, the minimum value
for the interval parameter is 2.
© National Instruments Corporation 3-1 NI 653X User Manual
Page 57
Chapter 3 Timing Diagrams
Programmable:
= Interval x Timebase Period
t
c
dtp will remove bar
REQ if Active Low REQ if Active High
Data Valid
(Output Mode)
Data Valid
(Input Mode)
t
c
Programmable:
= One Timebase Period
t
w
t
su
30 ns
Min
30 ns
Max
t
h
0 ns
Min
t
w
t
p
Parameter Description
*
t
c
*
t
w
t
p
t
su
t
h
* The NI 6534 transfers data at 20 MHz when the cycle time (tc) for REQ pulse is 50 ns and width of the REQ pulse (tw) is 20–30 ns.
Cycle time
Width of pulse
Propagation time to valid output data
Setup time
Hold time
Figure 3-1. Internal Request Timing Diagram

External REQ Signal Source

Use an external request when you want to time data transfers using an external signal on the REQ pin of the I/O connector. You can select the polarity of the REQ signal. If you choose active high (default), the NI 653X latches the data on the I/O pins on the rising edge of the REQ signal. If you choose active low, the NI 653X latches the data on the I/O pins on the falling edge of the REQ signal. The low time and high time of the REQ signal must each be >20 ns. The minimum duration for a period of the REQ signal is 50 ns.
NI 653X User Manual 3-2 ni.com
Page 58
Chapter 3 Timing Diagrams
Note For data transfers that use a hardware start trigger, there is no mandatory setup (t
or hold time (t
) for the STARTTRIG (ACK) signal. It can be asserted at any point before,
h
during, or after the REQ edge. If STARTTRIG is asserted too close to the REQ edge, it may not be recognized until the next REQ edge. To avoid this uncertainty, you can observe an optional setup time of 15 ns; in other words, assert STARTTRIG at least 15 ns before the start of the REQ pulse.
The STARTTRIG signal is synchronized to the REQ edge using a flip-flop. Because of this synchronization flip-flop, there is a one REQ-pulse delay after STARTTRIG before the data capture begins. A two-cycle delay is possible if you do not observe the optional setup time mentioned in the preceding note.
t
c
50 ns Min
REQ
Data Valid
(Output Mode)
Data Valid
(Input Mode)
t
hw
20 ns Min
t
su
10 ns
Min
t
30 ns Max
t
h
20 ns
Min
p
t
w
20 ns Min
)
su
Parameter Description
t
c
t
hw
t
p
t
su
t
h
© National Instruments Corporation 3-3 NI 653X User Manual
Cycle time
Width of low pulse
Propagation time to valid output data
Setup time
Hold time
Figure 3-2. External Request Timing Diagram
Page 59
Chapter 3 Timing Diagrams

Handshaking I/O Timing Diagrams

This section compares handshaking I/O protocols and includes timing diagrams for each:
Handshaking sequence for input operation
State machine for input operation
Timing specification for input operation
Handshaking sequence for output operation
State machine for output operation
Timing specification for output operation

Comparing the Different Handshaking Protocols

For an overview of all handshaking protocols supported by your NI 653X, refer to Table 3-1.
Note Whether an ACK or a REQ signal occurs first in the handshaking sequence depends
on the protocol and the transfer direction.
Table 3-1. Handshaking Protocol Characteristics
Where the
REQ/ACK
Protocol
Asynchronous Protocols
8255 Emulation
Level ACK Programmable Leading Before ACK
Leading-Edge Programmable Leading Before ACK
Long Pulse Programmable Leading Pulse width and
Trailing-Edge Programmable Trailing Pulse width and
NI 653X User Manual 3-4 ni.com
Polarity
Active-low Trailing Between transfers Long Pulse
Which REQ Edge Requests Transfer
Programmable
Delay Is Located
and between transfers
and between transfers
between transfers
between transfers
Complementary
Protocol(s)
Level ACK
Leading Edge
Long Pulse, 8255 Emulation, and 8255
Trailing-Edge
Page 60
Chapter 3 Timing Diagrams
Table 3-1. Handshaking Protocol Characteristics (Continued)
Where the
REQ/ACK
Protocol
Synchronous Protocol
Burst Programmable Neither (level REQ) Clock speed Burst
* Asynchronous protocols can compensate automatically to cable length, yet for synchronous protocols, select an appropriate speed for your cable when configuring your device.
Select a delay of at least the following:
• 0 for a typical cable up to 1 m
• 1 (70 ns) for a typical cable up to 5 m
• 2 (140 ns) for a typical cable up to 15 m long
Polarity
Which REQ Edge
Requests Transfer
Programmable
Delay Is Located
Complementary
Protocol(s)
For the NI 653X to communicate with peripheral devices in handshaking mode, you must verify the following items:
You are using complementary protocols. For example, use 8255-emulation protocol with long-pulse protocol.
The ACK/REQ polarity are the same. For example, 8255 emulation is active low only, so the other device must use the long-pulse protocol and have active low ACK/REQ polarity.

Using the Burst Protocol

Burst protocol is a synchronous, or clocked, protocol. In addition to using the ACK and REQ signals like the other handshaking protocols, in burst protocol, the NI 653X and the peripheral device share a clock signal over the PCLK line.
The NI 653X asserts the ACK signal if it is ready to perform a transfer. If the peripheral device also asserts the REQ signal indicating it is ready, a transfer occurs on the rising edge of the PCLK signal. Refer to Figures 3-3 and 3-4 for examples of burst protocol transfers. Dashed lines indicate when data is transferred.
© National Instruments Corporation 3-5 NI 653X User Manual
Page 61
Chapter 3 Timing Diagrams
PCLK
ACK
REQ
Data In
Valid
PCLK
ACK
REQ
Data Out
Valid
D1
D2 D3 D4
D5
= Data Transfer Occurs
Figure 3-3. Burst Transfer Example (Input)
D1
D2
D3 D4 D5
= Data Transfer Occurs
Figure 3-4. Burst Transfer Example (Output)
Note
Data is transferred only when both the NI 653X and the peripheral device are ready (and thus ACK and REQ are asserted), so it is not reasonable to expect data to arrive at consistent intervals. If consistent intervals are an important criteria for your application, use pattern I/O.
NI 653X User Manual 3-6 ni.com
Page 62
Chapter 3 Timing Diagrams
The NI 653X can either drive an output clock signal onto the PCLK line or receive an input clock signal from the PCLK line. By default, the PCLK line is set for input during output transfers and for output during input transfers.
Tip If you are using long cables, slow the PCLK clock signal to compensate for the
decrease in data setup time.
t
pc
t
pw
PCLK
t
ah
t
rh
t
dih
ACK
REQ
Data In Valid
t
pa
t
rs
t
dis
Parameter Description Minimum Maximum
Input Parameters
t
rs
t
rh
t
dis
t
dih
Setup time from REQ valid to PCLK 12
Hold time from PCLK to REQ invalid 0
Setup time from input data valid to PCLK 4
Hold time from PCLK to input data invalid 6
Output Parameters
t
pc
t
pw
t
pa
t
ah
1
tpc = programmable delay from 100 to 700 ns, or 50 ns if programmable delay is 0. Timebase stability for the onboard
20 MHz clock source is 50 ppm.
All timing values are in nanoseconds.
PCLK cycle time 50 700
PCLK high pulse duration tpc/2 – 5 tpc/2 + 5
PCLK to ACK valid 18
Hold time from PCLK to ACK invalid 3
1
Figure 3-5. Burst Input Timing Diagram (Default)
© National Instruments Corporation 3-7 NI 653X User Manual
Page 63
Chapter 3 Timing Diagrams
PCLK
t
pc
t
pw
t
pl
t
ah
t
rh
t
doh
ACK
REQ
Data Out Valid
t
pa
t
rs
t
pdo
Parameter Description Minimum Maximum
Input Parameters
t
pc
t
pw
t
pl
t
rs
PCLK cycle time 50
PCLK high pulse duration 20
PCLK low pulse duration 20
Setup time from REQ valid to PCLK
1—
falling edge
t
rh
Hold time from PCLK to REQ invalid 0
Output Parameters
t
pa
t
ah
t
pdo
t
doh
PCLK to ACK valid 22
Hold time from PCLK to ACK invalid 3
PCLK to output data valid 28
Hold time from PCLK to output data
5—
invalid
All timing values are in nanoseconds.
Figure 3-6. Burst Output Timing Diagram (Default)
NI 653X User Manual 3-8 ni.com
Page 64
PCLK
Chapter 3 Timing Diagrams
t
pc
t
pw
t
pl
t
ah
t
rh
t
dih
ACK
REQ
Data In Valid
t
pa
t
rs
t
dis
Parameter Description Minimum Maximum
Input Parameters
t
pc
t
pw
t
pl
t
rs
PCLK cycle time
PCLK high pulse duration
PCLK low pulse duration
Setup time from REQ valid to PCLK falling
50
20
20
1—
edge
t
rh
t
dis
Hold time from PCLK to REQ invalid
Setup time from input data valid to PCLK
0—
0—
falling edge
t
dih
Hold time from PCLK to input data valid
0—
Output Parameters
t
pa
t
ah
All timing values are in nanoseconds.
PCLK to ACK valid
Hold time from PCLK to ACK invalid
—22
3—
Figure 3-7. Burst Input Timing Diagram (PCLK Reversed)
© National Instruments Corporation 3-9 NI 653X User Manual
Page 65
Chapter 3 Timing Diagrams
PCLK
t
pc
t
pw
t
ah
t
rh
t
doh
ACK
REQ
Data Out Valid
t
pa
t
rs
t
pdo
Parameter Description Minimum Maximum
Input Parameters
t
rs
t
rh
Setup time from REQ valid to PCLK 12
Hold time from PCLK to REQ invalid 0
Output Parameters
t
pc
t
pw
t
pa
t
ah
t
pdo
t
doh
PCLK cycle time 50 700
PCLK high pulse duration tpc/2 – 5 tpc/2 + 5
PCLK to ACK valid 18
Hold time from PCLK to ACK invalid 3
PCLK to output data valid 28
Hold time from PCLK to output data
4—
1
invalid
t
dis
t
dih
1
tpc = programmable delay from 100 to 700 ns, or 50 ns if programmable delay is 0. Timebase stability for the onboard
20 MHz clock source is 50 ppm.
All timing values are in nanoseconds.
Setup time from input data valid to PCLK 0
Hold time from PCLK to input data invalid 0
Figure 3-8. Burst Output Timing Diagram (PCLK Reversed)
NI 653X User Manual 3-10 ni.com
Page 66

Using Asynchronous Protocols

All handshaking protocols except burst are asychronous. The asynchronous protocols include 8255 emulation, level ACK, leading edge, trailing edge, and long pulse.
When using these protocols, you have the following options:
You can change the polarity of the ACK and REQ signals (except for 8255-emulation). The diagrams in this chapter show active high signals.
You can set a programmable delay, from 0 to 700 ns, programmable in increments of 100 ns. Use the programmable delay to insert wait states if you have a slow peripheral device. A delay increases the duration of each transfer. The location of the delay in the handshaking sequence differs from protocol to protocol. In addition, a delay increases the minimum spacing between consecutive transfers.
You can enable request-edge latching, where in input, the NI 653X latches data in from the I/O connector on the active REQ edge before reading the data. For output, after writing the data, the NI 653X latches data out of the I/O connector on the active REQ edge. The active edge of the REQ is determined (rising or falling) by the handshaking protocol and the REQ polarity.
Chapter 3 Timing Diagrams

Using the 8255-Emulation Protocol

Your NI 653X can perform handshaking I/O with devices that contain the 8255 chip, including the National Instruments NI PC-DIO-24/PnP, NI 650X family, and NI PC-DIO-96/PnP. Performing the 8255-emulation protocol with your NI 653X is similar to 8255 or 82C55 Programmable Peripheral Interface (PPI).
Note The NI 653X does not emulate the bidirectional protocol of an 8255 device.
The NI 653X can perform back-to-back transfers much faster than a true 8255-based device. If your peripheral device requires more time between transfers, configure the NI 653X to add a data-settling delay between transfers.
Note In the 8255-emulation protocol, ACK and REQ are active low, reflected in the
following timing diagrams. For all other handshaking I/O protocols, the polarities of ACK and REQ are programmable, but are shown as active high signals in the following diagrams.
© National Instruments Corporation 3-11 NI 653X User Manual
Page 67
Chapter 3 Timing Diagrams
NI 653X terminology differs from 8255 terminology.
Input—The REQ line carries the 8255 STB (Strobe) input signal, and the NI 653X ACK line carries the 8255 IBF (Input Buffer Full) output signal.
Output—The REQ line carries the 8255 ACK NI 653X ACK line carries the 8255 OBF
input signal, and the
(Output Buffer Full) output
signal.
1
ACK
REQ
2 4
3
5
ACK and REQ are shown as active low.
Steps 1-5 are repeated for each transfer.
Reference
Point Action Steps
1 The NI 653X asserts the ACK signal when ready to accept data.
2 The peripheral device can then strobe data into the NI 653X by asserting the REQ
line. This assertion can happen before or after ACK is asserted.
3 Asserting the REQ signal causes the ACK signal to deassert.
4 Deasserting the REQ signal causes the NI 653X to latch input data.
5 The NI 653X reasserts the ACK signal when it has space and is ready for another
input. A programmable delay can be inserted here.
Figure 3-9. 8255-Emulation Input Handshaking Sequence
NI 653X User Manual 3-12 ni.com
Page 68
When REQ is unasserted,
latch input data.
Wait
for
REQ
Clear
ACK
Programmable
Delay
Send
ACK
Chapter 3 Timing Diagrams
Wait
for
Space
When NI 6533 Device has space for data, input data.
When REQ
Asserted
Initial State:
ACK Set
Wait
For
REQ
Figure 3-10. 8255-Emulation Input State Machine
© National Instruments Corporation 3-13 NI 653X User Manual
Page 69
Chapter 3 Timing Diagrams
1
ACK
REQ
2
4
6
3
5
ACK and REQ are shown as active low.
Steps 1-6 are repeated for each transfer.
Reference
Point Action Steps
1 When the NI 653X has data to output, it asserts the ACK signal, then waits for
the peripheral device to assert REQ to indicate it is ready to accept data.
2
3
The peripheral device asserts a REQ signal to accept the data.
The peripheral device can receive the data on the falling or rising edge of the ACK signal or any time in between before the next rising edge on REQ.
4
5
The REQ signal edge in step 2 causes the ACK signal to return to deassert.
The rising REQ signal edge enables a new transfer to occur. The peripheral device should wait until it has received data before deasserting the REQ signal. The peripheral device can also wait for the ACK signal to deassert before deasserting the REQ line.
6
The NI 653X reasserts the ACK signal when it has data and is ready for another output. A programmable delay can be inserted here. Note: The DIO-32HS drops the ACK line to indicate that the NI 653X is ready to receive data regardless of whether or not “count” has been reached. The output device controls the timing of the transfer by dropping the REQ line when it is ready to transfer data. The timing is not controlled by the software.
Figure 3-11. 8255-Emulation Output Handshaking Sequence
NI 653X User Manual 3-14 ni.com
Page 70
Wait
For
REQ
When REQ
Unasserted
Clear ACK
Programmable
Delay
Then Send ACK
Chapter 3 Timing Diagrams
Initial State: ACK Cleared
Wait
For
Data
When 6533 Device has
data to output, output data.
Output Data,
When REQ
Asserted
Wait
For
REQ
Figure 3-12. 8255-Emulation Output State Machine
© National Instruments Corporation 3-15 NI 653X User Manual
Page 71
Chapter 3 Timing Diagrams
t
a*r
ACK
REQ
Data In Valid
Data Out Valid
t
doa*
t
r*a
t
r*r
t
aa*
t
rr*
t
dir
t
rdi
t
rdo
ACK and REQ are shown as active low
Parameter Description Minimum Maximum
Input Parameters
t
r*r
t
rr*
t
a*r
t
dir
t
rdi
REQ low duration 75
REQ high duration 75
ACK falling edge to REQ rising edge 0
Input data valid to REQ rising edge 0
REQ rising edge to input data invalid 10
Output Parameters
t
aa*
t
r*a
t
doa*
t
rdo
All timing values are in nanoseconds.
ACK high duration 100
REQ falling edge to ACK rising edge 150
Output data valid to ACK falling edge 25
REQ rising edge to output data invalid 100
Figure 3-13. 8255-Emulation Input/Output Timing Diagram
NI 653X User Manual 3-16 ni.com
Page 72

Using the Level-ACK Protocol

In level-ACK protocol, the NI 653X asserts the ACK signal when ready for a transfer and holds the ACK signal level until an active-going edge occurs on the REQ line. After the REQ edge occurs, the NI 653X deasserts the ACK signal until the device is ready for another transfer.
Chapter 3 Timing Diagrams
1
ACK
REQ
2
Initial State
3
4
ACK and REQ are shown as active high. Steps 1-4 are repeated for each transfer.
Reference
Point Action Steps
Initial State ACK is deasserted. The NI 653X waits for an active REQ to indicate that the
peripheral device is ready. The peripheral device may optionally drive the first data at this time. The transfer cannot begin until the peripheral asserts REQ; the peripheral may either pulse REQ or hold REQ high until the first ACK occurs. If the peripheral pulses REQ, make sure to start the transfer on the NI 653X before the pulse occurs to avoid missing the pulse.
1 The NI 653X waits until it has space for data, then it asserts ACK.
2 The peripheral device can then strobe data into the NI 653X by first deasserting
then asserting the REQ signal. The NI 653X waits for an active-going transition on the REQ line. ACK stays asserted, indicating the NI 653X is ready, until the active-going REQ occurs.
3 The active-going REQ signal edge deasserts the ACK signal and causes the
NI 653X to latch input data.
4 To slow down the data transfer, you can insert a programmable delay before the
ACK signal is asserted.
Figure 3-14. Level-ACK Input Handshaking Sequence
© National Instruments Corporation 3-17 NI 653X User Manual
Page 73
Chapter 3 Timing Diagrams
Initial State: ACK Cleared
When REQ
Wait
Asserted
For
REQ
Clear ACK
When REQ Unasserted
Programmable
Delay
Wait
For
REQ
Figure 3-15. Level-ACK Input State Machine
Wait
For
Space
When 6533 Device has space
for data, input data.*
Programmable
Delay
Send ACK
* With REQ-edge latching enabled, the data input
is from the last active-going REQ edge.
NI 653X User Manual 3-18 ni.com
Page 74
ACK
REQ
Chapter 3 Timing Diagrams
t
aa*
t
ra*
t
ar
t
r*r
t
rr*
Input Data Valid
(REQ-edge
Latching)
Input Data Valid
(REQ-edge
Latching Disabled)
t
dir(1)
t
dir(2)
t
rdi
t
adi
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t t
t
dir(1)
rr*
r*r
t
ar
REQ pulse width 75
REQ inactive duration 75
ACK to next REQ 0
Input data setup to REQ active
0—
(with REQ-edge latching)
t
rdi
Input data hold from REQ active
10
(with REQ-edge latching)
t
dir(2)
Input data setup to REQ
0—
(with REQ-edge latching disabled)
t
adi
Input data hold from ACK
0—
(with REQ-edge latching disabled)
Output Parameters
t
aa*
t
ra*
All timing values are in nanoseconds.
ACK pulse width 225
REQ to ACK inactive 100 200
Figure 3-16. Level-ACK Input Timing Diagram
With REQ-edge latching enabled (default), the REQ edge determines when data is
Note
latched. Input data valid has to be held before the active-going REQ edge a minimum of
t
ns. With REQ edge disabled, input data valid has to be held t
rdi
after the next
adi
active-going ACK signal edge is asserted.
© National Instruments Corporation 3-19 NI 653X User Manual
Page 75
Chapter 3 Timing Diagrams
Initial State
ACK
REQ
1
2
3
4
ACK and REQ are shown as active high.
Steps 1-4 are repeated for each transfer.
Reference
Point Action Steps
Initial State ACK is deasserted.
1 When the NI 653X has data to output, it drives the data onto the data lines, and
then asserts ACK. ACK stays asserted, indicating the NI 653X is ready, until the active-going REQ edge occurs.
2 The peripheral device responds with an active-going REQ signal edge. ACK
stays asserted, indicating the NI 653X is ready, until the active-going REQ occurs. Since the REQ is already asserted, the NI 653X waits until REQ deasserts and reasserts to deassert the ACK signal and request additional data.
3 The asserted REQ signal deasserts the ACK signal.
4 To slow down the data transfer, you can insert a programmable delay before the
ACK signal is asserted.
Figure 3-17. Level-ACK Output Handshaking Sequence
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Asserted
Clear ACK
When REQ
Unasserted
Programmable
Delay
Wait
For
REQ
Programmable
Send
ACK
* With REQ-edge latching enabled, the data output is
delayed until the next inactive-going REQ edge.
Figure 3-18. Level-ACK Output State Machine
NI 653X User Manual 3-20 ni.com
Wait
For
Data
When 6533 Device has data
to output, output data.*
Delay
Page 76
ACK
REQ
Chapter 3 Timing Diagrams
t
t
rdo
t
r*r
aa*
t
ar
t
rr*
t
rdo
Output Data Valid
(REQ-edge
Latching)
Output Data Valid
(REQ-edge
Latching Disabled)
t
ra*
t
doa
ACK and REQ are shown as active high.
t
r*do
Parameter Description Minimum Maximum
Input Parameters
t
rr*
t
r*r
t
ar
REQ pulse width 75
REQ inactive duration 75
ACK to next REQ 0
Output Parameters
t
t
t
aa*
ra*
r*do
ACK pulse width 225
REQ to ACK inactive 100 200
REQ inactive to new output data
050
(with REQ-edge latching)
t
rdo
REQ to new output data
0—
(with REQ-edge latching disabled)
t
doa
Output data valid to ACK
25
1
(with REQ-edge latching disabled)
1
t
(min.) = 25 + programmable delay
doa
Figure 3-19. Level-ACK Output Timing Diagram
Note
With REQ-edge latching disabled (default), output data valid holds t
REQ edge is asserted. With REQ-edge latching enabled, that data is held for at most t
ns after the
rdo
rdo
ns
after the REQ edge deasserts.
© National Instruments Corporation 3-21 NI 653X User Manual
Page 77
Chapter 3 Timing Diagrams

Using Protocols Based on Signal Edges

The NI 653X can communicate using pulses on the ACK and REQ lines. The three edge protocols are:
Trailing-edge protocol—The trailing edge of the ACK or REQ pulse indicates that the NI 653X or peripheral device is ready for a transfer.
Leading-edge protocol—The rising edge of the ACK or REQ pulse indicates that the NI 653X or peripheral device is ready for a transfer.
Long-pulse protocol—This protocol is a variant of the leading-edge protocol, with the additional option of using a data-settling delay. If your application requires a large minimum pulse width, use this protocol. In this case, the programmable delay is used to increase the ACK pulse width instead of delaying the ACK pulse.
You can also use long-pulse protocol to handshake with an actual 8255 or 82C55 PPI. You must set the ACK and REQ signals to active low and select a minimum pulse width of 500 ns for your 8255 or 82C55.

Using the Trailing-Edge Protocol

Data Valid
ACK
REQ
Initial State
1
Data Latched
2
ACK and REQ are shown as active high.
Steps 1–2 are repeated for each transfer.
3
Reference
Point Action Steps
Initial State ACK is deasserted. The NI 653X waits for the peripheral device to pulse REQ to
indicate it has data.
1 The NI 653X sends an ACK pulse of programmable width when ready to receive
data.
2 After receiving the trailing edge of the ACK pulse, the peripheral device can
strobe data into the NI 653X and pulse the REQ.
3 The NI 653X sends another ACK pulse when ready for another input.
Figure 3-20. Trailing-Edge Input Handshaking Sequence
NI 653X User Manual 3-22 ni.com
Page 78
Wait
For
REQ
When REQ Unasserted
When REQ
Asserted
Initial State: ACK Cleared
Programmable
Delay
Wait
For
REQ
Figure 3-21. Trailing-Edge Input State Machine
Chapter 3 Timing Diagrams
Wait
For
Space
Send
ACK
Programmable
Delay
Clear
ACK
* With REQ-edge latching enabled, the data input
is from the last inactive-going REQ edge.
When 6533 Device
has space for data,
input data.*
© National Instruments Corporation 3-23 NI 653X User Manual
Page 79
Chapter 3 Timing Diagrams
ACK
REQ
Input Data Valid
(REQ-edge
Latching)
Input Data Valid
(REQ-edge
Latching Disabled)
t
aa*
t
r*r
t
t
dir*
r*di
t
dir
t
a*r*
t
rr*
t
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t
rr*
t
r*r
t
dir*
REQ pulse width 75
REQ inactive duration 75
Input data setup to REQ inactive
0—
(with REQ-edge latching)
t
r*di
Input data hold from REQ inactive
10
(with REQ-edge latching)
t
dir
Input data setup to REQ
0—
(with REQ-edge latching disabled)
t
adi
Input data hold from ACK
0—
(with REQ-edge latching disabled)
Output Parameters
t
aa*
t
a*r*
1
t
(min.) = 225 + programmable delay
aa*
2
t
(max) = 275 + programmable delay
aa*
ACK pulse width 225
ACK inactive to next REQ inactive 0
1
275
adi
2
Figure 3-22. Trailing-Edge Input Timing Diagram
When REQ-edge latching is enabled (default), the REQ edge determines when data
Note
will be latched. Input data valid must be held t When REQ-edge latching is disabled, input data valid needs to be held t
after the trailing edge of REQ occurs.
r*di
after the
adi
active-going edge of the ACK signal occurs.
NI 653X User Manual 3-24 ni.com
Page 80
Initial State
Chapter 3 Timing Diagrams
ACK
REQ
1
2
ACK and REQ are shown as active high.
Steps 1-2 are repeated for each transfer.
Reference
Point Action Steps
Initial State ACK is deasserted.
1 The NI 653X sends an ACK pulse of programmable width. This pulse indicates
new, valid output data.
2 The peripheral device responds with a REQ pulse. The trailing edge of the REQ
pulse deasserts the ACK signal if it has not previously been deasserted and requests additional data.
Figure 3-23. Trailing-Edge Output Handshaking Sequence
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Unasserted
Programmable
Delay
Send ACK
Wait
For
Data
When NI 6533 has data
to output, generate data.*
Programmable
Delay
Clear
§
When REQ
Asserted
Wait
For
REQ
ACK
* With REQ-edge latching enabled, the data output is
delayed until the next inactive-going REQ edge.
§
The programmable delay determines which ACK is cleared, ACK does not need to be cleared before REQ can be acknowledged.
Figure 3-24. Trailing-Edge Output State Machine
© National Instruments Corporation 3-25 NI 653X User Manual
Page 81
Chapter 3 Timing Diagrams
ACK
REQ
Output Data Valid
(REQ-edge
Latching)
Output Data Valid
(REQ-edge
Latching Disabled)
t
doa
t
aa*
t
r*r
t
a*r*
t
rr*
t
r*do(1)
t
r*do(2)
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t
t
rr*
t
r*r
a*r*
REQ pulse width 75
REQ inactive duration 75
ACK inactive to next REQ inactive 0
Output Parameters
t
aa*
t
r*do(1)
ACK pulse width 225
REQ inactive to new output data
1
050
275
2
(with REQ-edge latching)
t
r*do(2)
REQ inactive to new output data
0—
(with REQ-edge latching disabled)
t
doa
Output data valid to ACK
25
(with REQ-edge latching disabled)
1
t
2
t
= 225 + programmable delay
aa*
(min)
(max) = 275 + programmable delay
aa*
Figure 3-25. Trailing-Edge Output Timing Diagram
When REQ-edge latching is disabled (default), output valid data is held t
Note
r*do(1)
ns after the trailing edge of REQ occurs. With REQ-edge latching enabled, output data will be at most t
NI 653X User Manual 3-26 ni.com
ns after the trailing edge of REQ occurs.
r*do(1)
Page 82
Using the Leading-Edge Protocol
Chapter 3 Timing Diagrams
ACK
REQ
1
Initial State
3
2
ACK and REQ are shown as active high. Steps 1-3 are repeated for each transfer.
4
Reference
Point Action Steps
Initial State ACK is deasserted. The NI 653X waits for an active REQ to indicate that the
peripheral device is ready. The peripheral device may optionally drive the first data at this time. The transfer cannot begin until the peripheral asserts REQ: the peripheral can either pulse REQ or hold REQ high until the first ACK occurs. If the peripheral pulses REQ, make sure to start the transfer on the NI 653X before the pulse occurs, to avoid missing the pulse.
1 The NI 653X sends an ACK pulse when it is ready to receive data. The ACK
pulse width is fixed, assuming the peripheral device has deasserted the REQ signal. Otherwise the ACK signal remains asserted until the REQ signal deasserts.
2 After receiving at least the leading edge of the ACK pulse, the peripheral device
can strobe data into the NI 653X by asserting REQ.
3 To slow down the data transfer, you can insert a programmable delay before the
ACK signal is asserted.
4 The NI 653X sends another ACK when it is ready for another input.
Figure 3-26. Leading-Edge Input Handshaking Sequence
© National Instruments Corporation 3-27 NI 653X User Manual
Page 83
Chapter 3 Timing Diagrams
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Asserted
When REQ Unasserted
Clear
ACK
Pulse
Programmable
Delay
Wait
For
REQ
Figure 3-27. Leading-Edge Input State Machine
Wait
For
Space
When 6533 Device has space
for data, input data.*
Programmable
Send
ACK
Pulse
* With REQ-edge latching enabled, the data input
Delay
is from the last active-going REQ edge.
NI 653X User Manual 3-28 ni.com
Page 84
ACK
REQ
t
r*a*
Chapter 3 Timing Diagrams
t
aa*
t
ar
t
r*r
t
rr*
Input Data Valid
(REQ-edge
Latching)
Input Data Valid
(REQ-edge
Latching Disabled)
t
dir(1)
t
dir(2)
t
rdi
t
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t t
t
dir(1)
rr*
r*r
t
ar
REQ pulse width 75
REQ inactive duration 75
ACK to next REQ 0
Input data setup to REQ active
0—
(with REQ-edge latching)
t
rdi
Input data hold from REQ active
10
(with REQ-edge latching)
t
dir(2)
Input data setup to REQ
0—
(with REQ-edge latching disabled)
t
adi
Input data hold from ACK
0—
(with REQ-edge latching disabled)
Output Parameters
t
aa*
t
r*a*
All timing values are in nanoseconds.
ACK pulse width 125
REQ inactive to ACK inactive 150
adi
Figure 3-28. Leading-Edge Input Timing Diagram
Note
With REQ-edge latching enabled (default), the REQ edge determines when data is
latched. Input data valid must be held before an active-going REQ edge for a minimum of
t
ns. With REQ edge disabled, it must be held t
rdi
after the next active-going ACK signal
adi
edge occurs.
© National Instruments Corporation 3-29 NI 653X User Manual
Page 85
Chapter 3 Timing Diagrams
Initial State
ACK
REQ
1
3
2
ACK and REQ are shown as active high. Steps 1-3 are repeated for each transfer.
Reference
Point Action Steps
Initial State ACK is deasserted.
1 The NI 653X sends the ACK pulse after driving output data to indicate that it has
new, valid output data. The ACK pulse width is fixed, assuming the peripheral device has deasserted the REQ signal. Otherwise, the ACK signal remains asserted until the peripheral device deasserts the REQ signal.
2
Once the data is latched, the peripheral device must respond with an active-going REQ signal edge to request additional data.
3
To slow down the data transfer, you can insert a programmable delay before the ACK signal is asserted.
Figure 3-29. Leading-Edge Output Handshaking Sequence
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Asserted
Clear
ACK
Pulse
When REQ Unasserted
Programmable
Delay
Wait
For
REQ
Programmable
Send
ACK
Pulse
* With REQ-edge latching enabled, the data output is
delayed until the next inactive-going REQ edge.
Delay
Wait
For
Data
When 653
data to output, output data.*
X
Device has
Figure 3-30. Leading-Edge Output State Machine
NI 653X User Manual 3-30 ni.com
Page 86
Chapter 3 Timing Diagrams
t
aa*
ACK
t
r*a*
REQ
Output Data Valid
(REQ-edge
Latching Disabled)
t
Output Data Valid
(REQ-edge
Latching)
doa
t
ar
t
r*r
t
rr*
t
rdo
t
r*do
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t
rr*
t
r*r
t
ar
REQ pulse width 75
REQ inactive duration 75
ACK to next REQ 0
Output Parameters
t t t
aa*
r*a*
r*do
ACK pulse width 150
REQ inactive to ACK inactive 150
REQ inactive to new output data
050
(with REQ-edge latching)
t
rdo
REQ to new output data
0—
(with REQ-edge latching disabled)
t
doa
Output data valid to ACK
25
1
(with REQ-edge latching disabled)
1
(min.) = 25 + programmable delay
t
doa
Figure 3-31. Leading-Edge Output Timing Diagram
Note
With REQ-edge latching disabled (default), output data valid is held t
REQ edge occurs. With REQ-edge latching enabled, that data is held for at most t
ns after the
rdo
rdo
ns
after the REQ edge deasserts.
© National Instruments Corporation 3-31 NI 653X User Manual
Page 87
Chapter 3 Timing Diagrams
Using the Long-Pulse Protocol
1
ACK
REQ
Initial State
2
3
ACK and REQ are shown as active high. Steps 1-4 are repeated for each transfer.
4
Reference
Point Action Steps
Initial State ACK is deasserted. The NI 653X waits for an active REQ to indicate that the
peripheral device is ready. The peripheral device may optionally drive the first data at this time. The transfer cannot begin until the peripheral asserts REQ: the peripheral may either pulse REQ or hold REQ high until the first ACK occurs. If the peripheral pulses REQ, start the transfer on the NI 653X before the pulse occurs to avoid missing the pulse.
1 The NI 653X asserts an ACK signal when it is ready to receive data, assuming
the peripheral device has deasserted the REQ signal. Otherwise, the ACK signal remains asserted until the REQ signal deasserts.
2 To slow down the data transfer, you can insert a programmable delay before
deasserting the ACK signal. Unlike in the leading-edge protocol, the pulse width is programmable.
3 After receiving the leading edge of the ACK pulse, the peripheral device can
strobe data into the NI 653X by asserting REQ.
4 The same programmable delay that controls the minimum ACK pulse width
further slows down the transfer by delaying next occurrence of the next ACK pulse.
Figure 3-32. Long-Pulse Input Handshaking Sequence
NI 653X User Manual 3-32 ni.com
Page 88
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Asserted
Clear
ACK
Pulse
Programmable
Delay
Space
Send
ACK Pulse
Programmable
Delay
Chapter 3 Timing Diagrams
Wait
For
When 6533 Device has
space for data, input data.*
When REQ Unasserted
Wait
For
REQ
* With REQ-edge latching enabled, the data input
is from the last active-going REQ edge.
Figure 3-33. Long-Pulse Input State Machine
© National Instruments Corporation 3-33 NI 653X User Manual
Page 89
Chapter 3 Timing Diagrams
ACK
REQ
t
aa*
t
r*a*
t
ar
t
r*r
t
rr*
Input Data Valid
(REQ-edge
Latching)
Input Data Valid
(REQ-edge
Latching Disabled)
t
dir(1)
t
dir(2)
t
rdi
t
adi
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t
dir(1)
t
rr*
t
r*r
t
ar
REQ pulse width 75
REQ inactive duration 75
ACK to next REQ 0
Input data setup to REQ active
0—
(with REQ-edge latching)
t
rdi
Input data hold from REQ active
10
(with REQ-edge latching)
t
dir(2)
Input data setup to REQ
0—
(with REQ-edge latching disabled)
t
adi
Input data hold from ACK
0—
(with REQ-edge latching disabled)
Output Parameters
t
aa*
t
r*a*
1
t
(min.) = 125 + programmable delay
aa*
ACK pulse width 125
REQ inactive to ACK inactive 150
1
Figure 3-34. Long-Pulse Input Timing Diagram
Note
With REQ-edge latching enabled (default) REQ edge determines when data is latched. Input data valid must be held before active-going REQ edge a minimum of t With REQ edge disabled, it must be held t
after the next active-going ACK signal edge
adi
rdi
ns.
occurs.
NI 653X User Manual 3-34 ni.com
Page 90
Chapter 3 Timing Diagrams
Initial State
ACK
REQ
1
2
*
3
ACK and REQ are shown as active high. Steps 1-3 are repeated for each transfer.
= Programmable Pulse Width
*
Reference
Point Action Steps
Initial State ACK is deasserted.
1 The NI 653X sends an ACK pulse with programmable width to indicate that it
has data to generate, assuming the peripheral device has deasserted the REQ signal. Otherwise, the ACK signal remains asserted until the peripheral device deasserts the REQ signal.
2 The peripheral device can latch the data on the rising or falling edge of the ACK
pulse, or it can latch the data any time before asserting the REQ signal.
3 When the data is latched, the peripheral device must respond with an
active-going REQ signal edge.
Figure 3-35. Long-Pulse Output Handshaking Sequence
Initial State: ACK Cleared
When REQ
Wait
For
REQ
Asserted
Clear
ACK
Pulse
When REQ Unasserted
Programmable
Delay
Wait
For
REQ
Send
ACK Pulse
Programmable
* With REQ-edge latching enabled, the data output is
delayed until the next inactive-going REQ edge.
Wait
For
Data
When 6533 Device has
data to output, output data.*
Delay
Figure 3-36. Long-Pulse Output State Machine
© National Instruments Corporation 3-35 NI 653X User Manual
Page 91
Chapter 3 Timing Diagrams
t
aa*
ACK
t
ar
REQ
Output Data Valid
(REQ-edge
Latching Disabled)
Output Data Valid
(REQ-edge
Latching)
t
doa
t
r*r
t
rr*
t
rdo
t
r*do
ACK and REQ are shown as active high.
Parameter Description Minimum Maximum
Input Parameters
t
rr*
t
r*r
t
ar
REQ pulse width
REQ inactive duration
ACK to next REQ
75
75
0—
Output Parameters
1
125
050
t
t
aa*
r*do
ACK pulse width
REQ inactive to new output data (with REQ-edge latching)
t
rdo
REQ to new output data
0—
(with REQ-edge latching disabled)
t
doa
Output data valid to ACK
25
(with REQ-edge latching disabled)
1
t
(min.) = 125 + programmable delay
aa*
Figure 3-37. Long-Pulse Output Timing Diagram
Note
With REQ-edge latching disabled (default), output data valid is held t REQ edge with REQ-edge latching enabled that data is held for at most t
ns after the
rdo
ns after the
rdo
REQ edge deasserts.
NI 653X User Manual 3-36 ni.com
Page 92
Specifications
This appendix lists features and specifications for the NI 653X devices and the NI PCI/PXI-7030/6533. Specifications are typical at 25 °C unless otherwise noted.
Digital I/O
Number of channels ............................... 32 input/output;
Compatibility ......................................... TTL/CMOS (standard or
Hysteresis ............................................... 500 mV
Digital logic levels
Input low voltage 0V 0.8 V
A
4 dedicated output and control; 4 dedicated input and status
open collector)
Level Min Max
Input high voltage 2V 5V
Input low current for data lines
(V
= 0.4 V)
in
DPULL high
DPULL low
Input high current for data lines
(V
= 2.4 V)
in
DPULL high DPULL low
Input low current for control lines
(V
= 0.4 V)
in
CPULL high CPULL low
© National Instruments Corporation A-1 NI 653X User Manual
— —
— —
— —
–70 µA –10 µA
10 µA 40 µA
–2.5 mA –200 µA
Page 93
Appendix A Specifications
Level (Continued) Min Max
Input high current for control lines
(V
= 2.4 V)
in
CPULL high CPULL low
— —
200 µA
1.4 mA
Input low current for CPULL/DPULL
(V
= 0.4 V) 4 µA
in
Input high current for CPULL/DPULL
(V
= 2.4 V) 140 µA
in
Output low voltage (IOL = 24 mA) 0.4 V
Output high voltage* (IOH = 24 mA) 2.4 V
* When configured as standard outputs. Drivers configured as open-collector outputs are in the high-impedance state when logically high.
Absolute max input voltage range ..........–0.3 to 5 V
Power-on state for outputs ......................High-impedance, pulled up or
down (selectable)
Pull-up/down resistors
CPULL (for control lines) ...............2.2 k
DPULL (for data lines)....................100 k
Data transfers
(all devices except DAQCard)................Interrupt, DMA
Memory
NI AT-DIO-32HS...................................16 S
NI DAQCard-6533 for PCMCIA ...........16 S
NI PCI/PXI-6534 ....................................64 MB, two 32 MB modules
on each NI 6534
NI PCI/PXI-7030/6533...........................16 S
NI PCI-DIO-32HS..................................16 S
NI PXI-6533 ...........................................16 S
NI 653X User Manual A-2 ni.com
Page 94
Pattern I/O
Appendix A Specifications
Direction................................................. Input or output
Change Detection
Triggers
Maximum sample rate (internally timed, for small transfers
Minimum sample rate
(internal clock rate) ................................ 1 S/10 minutes
Change-detection resolution ..................150 ns
1
)..................... 20 MHz
Start and Stop Triggers
Compatibility ......................................... TTL/CMOS
Trigger types ..........................................Rising or falling edge,
or digital pattern
Pulse width for edge triggers (min)........ 10 ns
Pattern trigger detection
capabilities ............................................. Detect pattern match or mismatch
on user-selected data lines
Pattern trigger resolution........................ 60 ns or one REQ period,
depending on pattern I/O mode
RTSI Triggers (PCI, PXI, AT)
Trigger lines ........................................... 7
Bus Interfaces
NI PCI-DIO-32HS/PXI-6533/ PCI-6534/PXI-6534/
AT-DIO-32HS type................................ AT slave with dual DMA
NI DAQCard-6533 for PCMCIA type... PCMCIA slave
1
Small transfer size is the size of the FIFO.
© National Instruments Corporation A-3 NI 653X User Manual
Page 95
Appendix A Specifications
Power Requirement
+5 VDC (±5%) (with light output load)
NI PCI-DIO-32HS, NI PXI-6533 ...........1.3 A
NI PCI-6534 and NI PXI-6534...............2.0 A
NI DAQCard-6533 for PCMCIA ...........500 mA
Power Available at I/O Connector
NI PCI-DIO-32HS, NI PXI-6533, NI AT-DIO-32HS,
NI PCI-6534, and NI PXI-6534..............+4.65 to +5.25 VDC at 1 A
NI DAQCard-6533 for PCMCIA ...........+4.65 to +5.25 VDC at 250 mA
Physical
Dimensions, not including connectors
NI DAQCard-6533 for PCMCIA ....8.6 by 5.3 cm
NI AT-DIO-32HS/PCI-653X...........17.5 by 10.7 cm
NI PXI-653X....................................16.3 by 9.9 cm
(3.4 by 2.1 in.)
(6.9 by 4.2 in.)
(6.4 by 3.9 in.)
I/O connector
NI PCI-DIO-32HS, NI PXI-6533, NI AT-DIO-32HS,
NI PCI-6534, and NI PXI-6534.......68-pin male SCSI-II type
NI DAQCard-6533 for PCMCIA ....68-pin female PCMCIA
connector
Environment
Operating temperature ............................0 to 55 °C
Storage temperature ................................–20 to 70 °C
Relative humidity ...................................5 to 90% noncondensing
NI 653X User Manual A-4 ni.com
Page 96
Appendix A Specifications
Functional shock ....................................MIL-T-28800 E Class 3
(per Section 4.5.5.4.1) Half-sine shock pulse, 11 ms duration, 30 g peak, 30 shocks per face
Operational random vibration
(PXI only) .............................................. 5 to 500 Hz, 0.31 g
, 3 axes
rms
Nonoperational random vibration
(PXI only) .............................................. 5 to 500 Hz, 2.5 g
Note Random vibration profiles were developed in accordance with MIL-T-28800E and
, 3 axes
rms
MIL-STD-810E Method 514. Test levels exceed those recommended in MIL-STD-810E for Category 1 (Basic Transportation, Figures 514.4-1 through 514.4-3).
© National Instruments Corporation A-5 NI 653X User Manual
Page 97
Using PXI with CompactPCI
You can use your NI PXI-653X as a plug-in device in a standard CompactPCI chassis, but then you cannot access PXI-specific functions, such as RTSI bus features detailed in the PXI Specification, rev. 1.0.
The CompactPCI specification permits vendors to develop sub-buses that coexist with the basic PCI interface on the CompactPCI bus. Compatible operation is not guaranteed between CompactPCI devices with different sub-buses nor between CompactPCI devices with sub-buses and PXI. The standard implementation for CompactPCI does not include these sub-buses. Your NI PXI-653X works in any standard CompactPCI chassis adhering to the PICMG CompactPCI 2.0 R2.1 document.
PXI-specific features are implemented on the J2 connector of the CompactPCI bus. The following table lists the J2 pins used by your NI PXI-653X. Your PXI device is compatible with any CompactPCI chassis with a sub-bus that does not drive these lines. Even if the sub-bus is capable of driving these lines, the PXI device is still compatible as long as those pins on the sub-bus are disabled by default and not ever enabled.
B

Table B-1. J2 Pins Used by Your NI PXI-653X

PXI-653X Signal PXI Pin Name PXI J2 Pin Number
RTSI Trigger (0..6) PXI Trigger (0..6) B16, A16, A17, A18,
B18, C18, E18
Reserved PXI Star D17
RTS I Clock PXI Trigger (7) E16
Reserved LBR (7, 8, 10, 11, 12) A3, C3, E3, A2, B2
© National Instruments Corporation B-1 NI 653X User Manual
Page 98
Connecting Signals with Accessories
This appendix describes how to connect signals to your NI 653X. Use the first part of the appendix to acquaint yourself with the device control signals. Then go to appropriate pinout diagrams (68- or 50-pin), which display the layout of pin locations.
Control Signals
Use the four control signals to regulate/control the timing of your data transfer when using the handshaking and pattern I/O modes. The direction and function of each signal varies, depending on the mode of operation, as shown in Table C-1.

Table C-1. Control Signals for Handshaking I/O and Pattern I/O

Handshaking I/O Pattern I/O
C
Signal Name
REQ<1..2> Input Request—Indicates
ACK<1..2> or STARTTRIG<1..2>
STOPTRIG<1..2> N/A N/A Input Stop trigger
PCLK<1..2> Input or
© National Instruments Corporation C-1 NI 653X User Manual
Direction Function Direction Function
that the peripheral
device is ready
Output Acknowledge—
Indicates the
NI 653X is ready
Peripheral clock N/A N/A
Output
Input or
Output
Input Start trigger
Request—
Clocks the data transfer
Page 99
Appendix C Connecting Signals with Accessories
Making 68-Pin Signal Connections
Caution Do not make connections that exceed any of the maximum input or output ratings
on the NI 653X, listed in Appendix A, Specifications. This includes connecting any power signals to ground and vice versa. Doing so may damage your device and your computer. NI is not liable for any damages resulting from these types of signal connections.
DIOD7
GND
DIOD4
DIOD3
GND
DIOD0
DIOC7
GND
DIOC4
DIOC3
GND
DIOC0
DIOB7
DIOB6
GND
RGND
GND
DIOB1
DIOB0
DIOA7
GND
DIOA4
DIOA3
GND
DIOA0
REQ2*
ACK2 (STARTTRIG2)*
STOPTRIG2
PCLK2
PCLK1
STOPTRIG1
ACK1 (STARTTRIG1)*
REQ1*
+5 V
68
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
GND
67
DIOD6
66
DIOD5
65
GND
64
DIOD2
63
DIOD1
62
GND
61
DIOC6
60
DIOC5
59
GND
58
DIOC2
57
DIOC1
56
RGND
55
GND
DIOB5
54
DIOB4
53
DIOB3
52
DIOB2
51
GND
50
GND
49
DIOA6
48
DIOA5
47
GND
46
DIOA2
45
DIOA1
44
RGND
43
9
GND
42
8
GND
41
7
CPULL
40
6
GND
39
5
DPULL
38
4
GND
37
3
GND
36
2
RGND
35
1

Figure C-1. NI 653X I/O Connector 68-Pin Assignments

NI 653X User Manual C-2 ni.com
Page 100
Appendix C Connecting Signals with Accessories
Note In Figure C-1, the * indicates that you can reverse the pin assignments of the ACK1
(STARTTIG1) and REQ1 pins, or the ACK2 (STARTTIG2) and REQ2 pins. To do this, set the
ACK-REQ Exchange attribute to ON in the DIO Parameter VI in LabVIEW or in
set_DAQ_Device_Info in NI-DAQ. This allows you to perform handshaking I/O
between two NI 653X devices using an SH-68-68-D1 cable.
Use Table C-2 to find the accessories designed for connecting signals to your NI 653X.

Table C-2. 68-Pin Accessories

Device Shielded Cable Ribbon Cable Cable Adapter
PCI/PXI/AT/ Compact PCI
NI DAQCard-6533 for PCMCIA
SHC68-68-D1—female 68-pin SCXI connectors on both ends of the cable
PSHR68-68-D1 and PSHR68-68M
Signal Descriptions
Use Table C-3 to find the function for each signal, which is based on the mode and protocol you are using. All the signals on the NI 653X are referenced to the GND lines.
N/A N/A
PR68-68F N/A
© National Instruments Corporation C-3 NI 653X User Manual
Loading...