Intel PCI-7200, cPCI-7200 User Manual

327.99 Kb
Loading...

NuDAQ® / NuIPC® PCI-7200 / cPCI-7200

12MB/S High Speed Digital Input/ Output Card

User’s Guide

Recycled Paper

©Copyright 1999~2000 ADLINK Technology Inc.

All Rights Reserved.

Manual Rev. 2.20: October 14, 2000

The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.

In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.

This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.

Trademarks

NuDAQ, NuIPC, DAQBench are registered trademarks of ADLINK Technology Inc.

Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.

Getting service from ADLINK

Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it.

 

ADLINK Technology Inc.

 

Web Site

http://www.adlink.com.tw

 

 

 

http://www.adlinktechnology.com

 

Sales & Service

service@adlink.com.tw

 

 

 

NuDAQ

nudaq@ adlink.com.tw

Technical

NuDAM

nudam@ adlink.com.tw

NuIPC

nuipc@ adlink.com.tw

Support

NuPRO

nupro@ adlink.com.tw

 

 

Software

sw@ adlink.com.tw

TEL

+886-2-82265877

FAX

+886-2-82265717

Address

9F, No. 166, Jian Yi Road, Chungho City, Taipei, 235 Taiwan, R.O.C.

Please inform or FAX us of your detailed information for a prompt, satisfactory and constant service.

Detailed Company Information

Company/Organization

 

 

 

 

 

 

 

Contact Person

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E-mail Address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Country

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TEL

 

 

 

 

FAX

 

 

 

 

 

 

 

 

 

 

Web Site

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Questions

 

 

 

Product Model

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Environment to Use

¨ OS

 

 

 

 

 

 

¨ Computer Brand

 

 

 

 

 

¨ M/B:

¨ CPU:

 

¨ Chipset:

¨ BIOS:

 

¨ Video Card:

 

 

 

 

¨ Network Interface Card:

 

¨ Other:

 

 

 

 

 

 

 

 

 

 

 

Challenge Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Suggestions for ADLINK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table of Contents

Chapter 1 Introduction.............................................................

1

1.1

Applications....................................................................

1

1.2

Features..........................................................................

2

1.3

Specifications .................................................................

2

1.4

Software Supporting.......................................................

4

 

1.4.1

Programming Library..................................................................

4

 

1.4.2

PCIS-LVIEW: LabVIEW ® Driver.................................................

5

 

1.4.3

PCIS-VEE: HP-VEE Driver..........................................................

5

 

1.4.4

DAQBenchTM: ActiveX Controls ...............................................

5

 

1.4.5

DASYLabTM PRO...........................................................................

5

 

1.4.6

PCIS-DDE: DDE Server and InTouchTM .................................

5

 

1.4.7

PCIS-ISG: ISaGRAFT M driver .....................................................

6

 

1.4.8

PCIS-ICL: InControlT M Driver.....................................................

6

 

1.4.9

PCIS-OPC: OPC Server...............................................................

6

Chapter 2 Installation...............................................................

7

2.1

What You Have ...............................................................

7

2.2

Unpacking.......................................................................

8

2.3

Device Installation for Windows Systems.......................

8

2.4

cPCI/PCI-7200’s Layout...................................................

9

2.5

Hardware Installation Outline .......................................

11

2.6

Connector Pin Assignments.........................................

12

 

2.6.1

PCI-7200 Pin Assignments......................................................

12

 

2.6.2

cPCI-7200 Pin Assignments....................................................

14

2.7

8254 for Timer Pacer Generation ..................................

15

Chapter 3 Registers Format .................................................

16

3.1

I/O Registers Format.....................................................

16

3.2

Digital Input Register (BASE + 10) ................................

17

3.3

Digital Output Register (BASE + 14) .............................

17

3.4

DIO Status & Control Register (BASE + 18) ..................

17

3.5

Interrupt Status & Control Register (BASE + 1C)..........

19

3.6

8254 Timer Registers (BASE + 0) ..................................

22

Chapter 4 Operation Theorem .............................................

23

4.1

Direct Program Control.................................................

23

4.2

Timer Pacer Mode.........................................................

24

4.3

External Clock Mode .....................................................

25

4.4

Handshaking.................................................................

25

4.5

Timing Characteristic....................................................

27

Table of Contents i

Chapter 5 C/C++ Libraries ....................................................

30

5.1

Libraries Installation.....................................................

30

5.2

Programming Guide......................................................

31

5.2.1

Naming Convention ...................................................................

31

5.2.2

Data Types...................................................................................

31

5.3

_7200_Initial..................................................................

32

5.4

_7200_Switch_Card_No ................................................

33

5.5

_7200_AUX_DI ..............................................................

33

5.6

_7200_AUX_DI_Channel ...............................................

34

5.7

_7200_AUX_DO.............................................................

34

5.8

_7200_AUX_DO_Channel..............................................

35

5.9

_7200_DI .......................................................................

35

5.10

_7200_DI_Channel ........................................................

36

5.11

_7200_DO .....................................................................

36

5.12

_7200_DO_Channel ......................................................

37

5.13

_7200_Alloc_DMA_Mem ...............................................

38

5.14

_7200_Free_DMA_Mem.................................................

39

5.15

_7200_Alloc_DBDMA_Mem...........................................

39

5.16

_7200_Free_DBDMA_Mem............................................

40

5.17

_7200_DI_DMA_Start ....................................................

40

5.18

_7200_DI_DMA_Status..................................................

43

5.19

_7200_DI_DMA_Stop ....................................................

44

5.20

_7200_DblBufferMode...................................................

44

5.21

_7200_CheckHalfReady ................................................

45

5.22

_7200_DblBufferTransfer..............................................

45

5.23

_7200_GetOverrunStatus..............................................

46

5.24

_7200_DO_DMA_Start...................................................

46

5.25

_7200_DO_DMA_Status................................................

47

5.26

_7200_DO_DMA_Stop ...................................................

48

5.27

_7200_DI_Timer ............................................................

49

5.28

_7200_DO_Timer...........................................................

50

Chapter 6 Double Buffer Mode Principle ..........................

52

Chapter 7 Limitation...............................................................

54

Product Warranty/Service......................................................

55

ii Table of Contents

How to Use This Guide

This manual is designed to help you use the PCI-7200 and cPCI-7200. The functionality of PCI-7200 and cPCI-7200 are the same except that cPCI-7200 has 4 auxiliary digital input and output. Therefore, the “PCI-7200” represents both PCI-7200 and cPCI-7200 if not specified.

The manual describes how to modify various settings on the PCI-7200 card to meet your requirements. It is divided into seven chapters:

uChapter 1, "Introduction," gives an overview of the product features, applications, and specifications.

uChapter 2, "Installation," describes how to install the PCI-7200. The layout of PCI-7200 is shown, and the installation procedures, pin assignment of connectors, and timer pacer generation are specified.

uChapter 3, "Register Structure & Format," describes the low-level register structure and format of the PCI-7200.

uChapter 4, "Operation Theorem," describes how the PCI-7200 works.

uChapter 5, "C/C++ & DLL Library," describes the high level C and DLL library functions. It will help you to programming in DOS, Win 3.11, and Win-95 environments.

uChapter 6, "Double Buffer Mode Principle," describes the data buffer for double-buffered DMA DI operation.

uChapter 7, "Limitation," describes three limitations on using PCI-7200.

1

Introduction

The PCI-7200/cPCI-7200 is PCI/CompactPCI form factor high-speed digital I/O card, it consists of 32 digital input channels, and 32 digital output channels. High performance designs and the state-of-the-art technology make this card suitable for high-speed digital input and output applications.

The PCI-7200 performs high-speed data transfers using bus -mastering DMA via 32-bit PCI bus architecture. The maximum data transfer rates can be up to 12MB per second. It is very suitable for interfacing high-speed peripherals and your computer system.

Several different digital I/O operation modes are supported:

1.Direct Program Control: the digital inputs and outputs can be accessed and controlled by its corresponding I/O ports directly.

2.Timer Pacer Mode: the digital input and output operations are handled by internal timer pacer clock and transferred by bus mastering DMA.

3.External Clock Mode: the digital input operations are handled by external input strobe signal (I_REQ) and transferred by bus mastering DMA.

4.Handshaking: through REQ signal and ACK signal, the digital I/O data can have simple handshaking data transfer.

1.1 Applications

uInterface to high-speed peripherals

uHigh-speed data transfers from other computers

uDigital I/O control

uInterface to external high-speed A/D and D/A converter

uDigital pattern generator

uWaveform and pulse generation

uBCD interface driver

Introduction 1

1.2 Features

The PCI-7200 high-speed DIO Card provides the following advanced features:

u32 TTL digital input channels

u32 TTL digital output channels

uTransfer up to 12M Bytes per second

uHigh output driving and low input loading

u32-bit PCI bus, Plug and Play

uOn-board internal timer pacer clock

uInternal timer controls input sampling rate

uInternal timer controls digital output rate

uACK and REQ for handshaking

uOn-board 32-byte FIFO for both digital input and output

uExtra 8 Kbytes digital input FIFO for cPCI-7200

u4 auxiliary digital input and output channels (cPCI-7200 only)

uDiode terminators for 32 input channels and control signals (cPCI-7200 only)

uMultiple interrupt sources are selectable by software

1.3 Specifications

uDigital I/O (DIO)

Number of DI Channels: 32 TTL compatible

Number of DO Channels: 32 TTL compatible

Data Transfer Mode

Program I/O

Internal timer pacer transfer

External I_REG strobe input

Handshake data transfer

Maximum Transfer Speed:

3 MHz (12MHz) by external clock, handshake or external strobe

2 MHz (8MHz) by internal timer pacer transfer

FIFO: 8 words (32-bit) (for PCI-7200)

2K + 8 words (32-bit) (for cPCI-7200)

2 Introduction

Input Voltage:

Low: Min. 0V; Max. 0.8V

High: Min. +2.0V

Input Load:

Low: +0.5V @ -0.6mA max.

High: +2.7V @+20μA max.

Output Voltage:

Low: Min. 0V; Max. 0.5V

High: Min. +2.7V

Driving Capacity:

Low: Max. +0.5V at 24mA (Sink)

High: Min. 2.4V at -3.0mA (Source)

uProgrammable Counter

Device: 82C54-10, with a 4MHz time base

Timer 0: DI clock source

Timer 1: DO clock source

Timer2: Base clock of Timer #0 and Timer #1

Pacer Output: 0.00046 Hz ~ 2MHz

uGeneral Specifications

Operating Temperature: 0°C ~ 60°C

Storage Temperature: -20°C ~ 80°C

Humidity: 5 ~ 95%, non-condensing

Connector:

PCI-7200: one 37-pin D-type and one 40-pin ribbon connector cPCI-7200: one 100-pin SCSI-type connector

Dimension:

PCI-7200: Compact size, only 148mm (L) X 102mm(H) cPCI-7200: Standard 3U CompactPCI form factor

Power Consumption:

PCI-7200: +5 V @ 720 mA typical cPCI-7200: +5 V @ 820 mA typical

Introduction 3

1.4 Software Supporting

ADLink provides versatile software drivers and packages for users’ different approach to built-up a system. We not only provide programming library such as DLL for many Windows systems, but also provide drivers for many software

package such as LabVIEW®, HP VEETM, DASYLabTM, InTouchTM, InControlTM, ISaGRAFTM, and so on.

All the software options are included in the ADLink CD. The non-free software drivers are protected with serial licensed code. Without the software serial number, you can still install them and run the demo version for two hours for demonstration purpose. Please contact with your dealer to purchase the formal license serial code.

1.4.1 Programming Library

For customers who are writing their own programs, we provide function libraries for many different operating systems, including:

uDOS Library: Borland C/C++ and Microsoft C++, the functions descriptions are included in this user’s guide.

uWindows 95 DLL: For VB, VC++, Delphi, BC5, the functions descriptions are included in this user’s guide.

uPCIS-DASK: Include device drivers and DLL for Windows 98, Windows NT and Windows 2000. DLL is binary compatible across Windows 98, Windows NT and Windows 2000. That means all applications developed

with PCIS-DASK are compatible across Windows 98, Windows NT and Windows 2000. The developing environment can be VB, VC++, Delphi, BC5, or any Windows programming language that allows calls to a DLL. The user’s guide and function reference manual of PCIS-DASK are in the CD. Please refer the PDF manual files under the following directory: \\Manual_PDF\Software\PCIS-DASK

uPCIS-DASK/X: Include device drivers and shared library for Linux. The developing environment can be Gnu C/C++ or any programming language that allows linking to a shared library. The user's guide and function reference manual of PCIS-DASK/X are in the CD. (\Manual_PDF\Software\PCIS-DASK-X.)

The above software drivers are shipped with the board. Please refer to the “Software Installation Guide” to install these drivers.

4 Introduction

1.4.2 PCIS-LVIEW: LabVIEW® Driver

PCIS-LVIEW contains the VIs, which are used to interface with NI’s LabVIEW® software package. The PCIS-LVIEW supports Windows 95/98/NT/2000. The

LabVIEW® drivers are free shipped with the board. You can install and use them without license. For detail information about PCIS-LVIEW, please refer to the user’s guide in the CD.

(\\Manual_PDF\Software\PCIS-LVIEW)

1.4.3 PCIS-VEE: HP-VEE Driver

The PCIS-VEE includes the user objects, which are used to interface with HP VEE software package. PCIS-VEE supports Windows 95/98/NT. The HP-VEE drivers are free shipped with the board. You can install and use them without license. For detail information about PCIS-VEE, please refer to the user’s guide in the CD.

(\\Manual_PDF\Software\PCIS-VEE)

1.4.4 DAQBenchTM: ActiveX Controls

We suggest the customers who are familiar with ActiveX controls and VB/VC++ programming use the DAQBenchTM ActiveX Control components library for developing applications. The DAQBenchTM is designed under Windows NT/98. For more detailed information about DAQBench, please refer to the user’s guide in the CD.

(\\Manual_PDF\Software\DAQBench\DAQBench Manual.PDF)

1.4.5 DASYLabTM PRO

DASYLab is an easy-to-use software package, which provides easy-setup instrument functions such as FFT analysis. Please contact us to get DASYLab PRO, which include DASYLab and ADLink hardware drivers.

1.4.6 PCIS-DDE: DDE Server and InTouchTM

DDE stands for Dynamic Data Exchange specifications. The PCIS-DDE includes the PCI cards’ DDE server. The PCIS-DDE server is included in the ADLINK CD. It needs license. The DDE server can be used conjunction with any DDE client under Windows NT.

Introduction 5

1.4.7 PCIS-ISG: ISaGRAFTM driver

The ISaGRAF WorkBench is an IEC1131-3 SoftPLC control program development environment. The PCIS-ISG includes ADLink products’ target drivers for ISaGRAF under Windows NT environment. The PCIS-ISG is included in the ADLINK CD. It needs license.

1.4.8 PCIS-ICL: InControlTM Driver

PCIS-ICL is the InControl driver which support the Windows NT. The PCIS-ICL is included in the ADLINK CD. It needs license.

1.4.9 PCIS-OPC: OPC Server

PCIS-OPC is an OPC Server, which can link with the OPC clients. There are many software packages on the market can provide the OPC clients now. The PCIS-OPC supports the Windows NT. It needs license.

6 Introduction

2

Installation

This chapter describes how to install the PCI-7200. At first, the content of the package and the unpacking information that you should be careful are described. Because the PCI-7200 is a plug and play device, there is no more jumper or DIP switch setting for configuration. The Interrupt number and I/O port address are assigned by the system BIOS during system boot up.

2.1 What You Have

In addition to this User's Manual, the package includes the following items:

uPCI-7200 Digital I/O & Counter Card

uInclude ACL-10437: 40-pin to 37-pin D-Sub cable

or

ucPCI-7200 Digital I/O & Counter Module for 3U CompactPCI

uInclude 100-pin SCSI connector assembly

uADLINK CD

uSoftware Installation Guide

If any of these items is missing or damaged, contact the dealer from whom you purchased the product. Save the shipping materials and carton in case you want to ship or store the product in the future.

Installation 7

2.2 Unpacking

Your PCI-7200 card contains sensitive electronic components that can be easily damaged by static electricity.

The card should be done on a grounded anti-static mat. The operator should be wearing an anti-static wristband, grounded at the same point as the anti-static mat.

Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Be sure there are no shipping and handling damages on the module before processing.

After opening the card module carton, extract the sys tem module and place it only on a grounded anti-static surface component side up.

Again inspect the module for damage. Press down on all the socketed IC's to make sure that they are properly seated. Do this only with the module place on a firm flat surface.

Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED.

You are now ready to install your PCI-7200.

2.3 Device Installation for Windows Systems

Once Windows 95/98/2000 has started, the Plug and Play function of Windows system will find the new NuDAQ/NuIPC cards. If this is the first time to install NuDAQ/NuIPC cards in your Windows system , you will be informed to input the device information source. Please refer to the “Software Installation Guide” for the steps of installing the device.

8 Installation

2.4 cPCI/PCI-7200’s Layout

CN1

 

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

 

 

 

 

 

 

ALTERA

 

PCI -Bus Controller

 

 

 

CN2

PCI-7200 Rev A1

Figure 2.1(a) PCI-7200 Layout Diagram

Installation 9

Figure 2.1(b) cPCI-7200 Layout Diagram

10 Installation

+ 45 hidden pages