Page 3 - All Rights Reserved.; Trademarks
©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 ...
Page 5 - Getting service from ADLINK; ADLINK Technology Inc.
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 [email protected] ...
Page 7 - Table of Contents; DAQBench
Table of Contents • i Table of Contents Chapter 1 Introduction............................................................. 1 1.1 Applications.................................................................... 1 1.2 Features.......................................................................... ...
Page 10 - How to Use This Guide
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 outpu t. Therefore, the “PCI-7200” represents both PCI-7200 and cPCI-7200 if not specified. The m...
Page 11 - Introduction
Introduction • 1 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 in...
Page 14 - Software Supporting; ISaGRAF; PCIS-DASK: Include device drivers and DLL for; Linux
4 • Introduction 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...
Page 15 - Driver; drivers are free shipped with the board. You can install and use; ActiveX Control components; is designed under; PRO
Introduction • 5 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 d...
Page 16 - driver
6 • Introduction 1.4.7 PCIS-ISG: ISaGRAF TM 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....
Page 17 - Installation
Installation • 7 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 configura...
Page 18 - DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED.; You are now ready to install your PCI-7200.; Device Installation for Windows Systems; Software Installation
8 • Installation 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 -stati...
Page 21 - Hardware Installation Outline; Hardware configuration
Installation • 11 2.5 Hardware Installation Outline Hardware configuration The PCI cards (or CompactPCI cards) are equipped with plug and play PCI controller, it can request base addresses and interrupt according to PCI standard. The system BIOS will install the system resource based on the PCI card...
Page 22 - Connector Pin Assignments; Figure 2.2 CN1 Pin Assignments
12 • Installation 2.6 Connector Pin Assignments 2.6.1 PCI -7200 Pin Assignments The PCI-7200 comes equipped with one 37-p i n D-Sub connector (CN2) located on the rear mounting plate and one 40-pin female flat cable header connector (CN1). The CN2 is located on the rear mounting plate; the CN1 is on...
Page 23 - Figure 2.3 CN2 Pin Assignments
Installation • 13 1 2 3 4 5 6 10 11 12 13 14 15 7 8 9 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 29 35 36 37 34 DI 1 DI 2 DI 3 DI 4 DI 5 DI 6 DI 7 DI 8 DI10 DO10 DO11 DO12 DO13 DO14 DO15 DI 9 GND I_TRG DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DI 0 DI11 DI12 DI13 DI14 DI15 +5V I_ACK I_REQ Figu...
Page 25 - Timer 0; MHz Clock; if Timer 0 & Timer 2 are cascaded
Installation • 15 2.7 8254 for Timer Pacer Generation Timer 0 Timer 1 Timer 2 CLK0GATE0 OUT0 CLK1GATE1 CLK2GATE2 OUT1 OUT2 8254 Timer/Counter Digital Input Timer Pacer Digital Output Timer Pacer 4MHz Clock “H” “H” “H” Figure 2.4 8254 configuration The internal timer/counter 8254 on the PCI-7200 is c...
Page 26 - Registers Format
16 • Registers Format 3 Registers Format 3.1 I/O Registers Format The PCI-7200 occupies 8 consecutive 32-bit I/O addresses in the PC I/O address space and the cPCI-7200 occupies 9 consecutive 32-bit I/O addresses. Table 4.1 shows the I/O Map Address Read Write Base + 0 Counter 0 Counter 0 Base + 4 C...
Page 27 - 2 digital input channels can be read from this register
Registers Format • 17 3.2 Digital Input Register (BASE + 10) 32 digital input channels can be read from this register Address: BASE + 10 Attribute: READ Only Data Format: Byte 7 6 5 4 3 2 1 0 Base +10 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 Base +11 DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8 Base +12 DI23 DI22 D...
Page 31 - Timer 1 is cascaded with timer 2
Registers Format • 21 T1_T2: Timer 1 is cascaded with timer 2 1: Timer 1 and timer 2 are cascaded together, output of timer 2 connects to the clock input of timer 1. 0: Not cascaded, the 4 MHz clock is connected to the timer 1 clock input. u I_REQ Polarity Selection: When the input sampling is contr...
Page 33 - Operation Theorem; Direct Program Control
Operation Theorem • 23 4 Operation Theorem In PCI-7200, there are four data transfer modes can be used for digital I/O access and control, these modes are: 1. Direct Program Control : the digital inputs and outputs can be read/written and controlled by its corresponding I/O port address directly. 2....
Page 34 - Timer Pacer Mode; The operation s equences are:; Latch Digital Input
24 • Operation Theorem 4.2 Timer Pacer Mode The digital I/O access control is clocked by timer pacer, which is generated by an interval programm ing timer/counter chip 8254. There are three timers on the 8254. The timer 0 is used to generate timer pacer for digital input, and timer 1 is used for dig...
Page 35 - External Clock Mode
Operation Theorem • 25 4.3 External Clock Mode The digital input is clocke d by external strobe, which is from the Pin 19 (I_REQ) of CN2 (PCI-7200) or Pin 24 of CN1 (cPCI-7200). The operation sequence is very similar to Timer Pacer Trigger. The only difference is the clock source. 1. The external in...
Page 36 - DMA data mastering data transfer.
26 • Operation Theorem O_REQ & O_ACK for Digital Output 1. Digital Output Data is moved from PC memory to FIFO o f PCI-7200 by using DMA data mastering data transfer. 2. Move output data from FIFO to digital output circuit. 3. Output data is ready. 4. An O_REQ signal is generated and sent to out...
Page 37 - Timing Characteristic; PCI CLK Cycle; valid data; PCI CLK Cycle; cyc; valid data
Operation Theorem • 27 4.5 Timing Characteristic 1. I_REQ as input data strobe (Rising Edge Active) t h ≥ 60ns t I ≥ 60ns t CYC ≥ 5 PCI CLK Cycle t s ≥ 2ns t n ≥ 30ns 2. I_REQ as input data strobe (Falling Edge Active) t s valid data D10~DI31 t n valid data IN_R I_REQ t cyc t l t h t h ≥ 60ns t I ≥ ...
Page 38 - PCI CLK Cycle; O_REQ as output data strobe; PCI CLK Cycles T
28 • Operation Theorem 3. I_REQ & I_ACK Handshaking valid data D10~DI31 valid data t1 t2 t5 t4 t3 IN I_REQ IN I_ACK t 1 ≥ 0ns t 5 ≥ 60ns t 3 ≥ 2 PCI CLK Cycle t 2 ≥ 0ns t 4 ≥ 1 PCI CLK Cycle Note: I_REQ must be asserted until I_ACK asserts, I_ACK will be asserted until I_REQ de-asserts. 4. O_REQ...
Page 40 - Libraries Installation; Please refer to the “
30 • C/C++ Libraries 5 C/C++ Libraries This chapter describes the software library for operating this card. Only the functions in DOS library and Windows 95 D LL are described. Please refer to the PCIS-DASK function reference manual, which included in ADLINK CD, for the descriptions of the Windows 9...
Page 41 - Programming Guide
C/C++ Libraries • 31 5.2 Programming Guide 5.2.1 Naming Convention The functions of the NuDAQ PCI cards or NuIPC CompactPCI cards’ software driver are using full-names to represent the functions' real meaning. The naming convention rules are: In DOS Environment : _{hardware_model}_{action_name}. e.g...
Page 43 - The card number to be initialized, four cards can be; returns 4 -bit value from auxiliary digital input port.
C/C++ Libraries • 33 5.4 _7200_Switch_Card_No @ Description After initialized more than one PCI-7200 card, this function is used to select which card is used currently. @ Syntax Visual C++ (Windows 95) int W_7200_Switch_Card_No (U8 card_number) Visual Basic (Windows 95) W_7200_Switch_Card_No (ByVal ...
Page 45 - the auxiliary DO channel number, the value has to be set; returns all 32-bit value from digital port.
C/C++ Libraries • 35 5.8 _7200_AUX_DO_Channel @ Description Write data to auxiliary digital output channel (bit). There are 4 auxiliary digital output channels on the cPCI-7200. When performs this function, the digital output data is written to the corresponding channel. channel means each bit of di...
Page 46 - the DI channel number, the value has to be set within 0 and; value will be written to digital output port
36 • C/C++ Libraries 5.10 _7200_DI_Channel @ Description This function is used to read data from digital input channels (bit). There are 32 digital input channels on the PCI-7200. When performs this function, the digital input port is read and the value of th e corresponding channel is returned. * c...
Page 47 - the DO channel number, the value has to be set w ithin 0 and
C/C++ Libraries • 37 5.12 _7200_DO_Channel @ Description This function is used to write data to digital output channels (bit). There are 32 digital output channels on the PCI-7200. When performs this function, the digital output data is written to the corresponding channel. channel means each bit of...
Page 49 - Double Buffered Mode Principle
C/C++ Libraries • 39 5.14 _7200_Free_DMA_Mem @ Description Release the system DMA memory under Windows 95/98 environment. This function is only available in Windows 95/98 version. @ Syntax Visual C++ (Windows 95) int W_7200_Free_DMA_Mem (U32 handle) Visual Basic (Windows 95) W_7200_Free_DMA_Mem (ByV...
Page 50 - Double
40 • C/C++ Libraries the actual size of allocated memory for each half of circular buffer. @ Return Code ERR_NoError ERR_SmallerDMAMemAllocated 5.16 _7200_Free_DBDMA_Mem @ Description Release a system circular buffer DMA memory under Windows 95/98 environment. This function is only available in Wind...
Page 52 - count
42 • C/C++ Libraries @ Syntax Visual C++ (Windows 95) int W_7200_DI_DMA_Start (U8 mode, U32 count, U32 handle, Boolean wait_trg, U8 trg_pol, Boolean clear_fifo, Boolean disable_di) Visual Basic (Windows 95) W_7200_DI_DMA_Start (ByVal mode As Byte, ByVal count As Long, ByVal handle As Long, ByVal wai...
Page 56 - number of overrun counts.
46 • C/C++ Libraries 5.23 _7200_GetOverrunStatus @ Description When you use _7200_DI_DMA_Start to convert Digital I/O data with double buffer mode enabled, and if you do not use _7200_DblBufferTransfer to move converted data then the double buffer overrun will occur, using this function to check ove...
Page 59 - frequency divider of Counter #0. Valid value
C/C++ Libraries • 49 5.27 _7200_DI_Timer @ Description This function is used to set the internal timer pacer for digital input. There are two configurations for the internal timer pacer : 1. Non-cascaded (One COUNTER 0 only) Counter 0 CLK0GATE0 OUT0 8254 Timer/Counter 4MHz Input Digital Input Trigge...
Page 61 - frequency divi der of Counter #1
C/C++ Libraries • 51 @ Syntax Visual C++ (Windows 95) int W_7200_DO_Timer (U16 c1, U16 c2, Booelan mode) Visual Basic (Windows 95) W_7200_DO_Timer (ByVal c1 As Integer, ByVal c2 As Integer, ByVal mode As Byte) As Long C/C++ (DOS) int _7200_DO_Timer (U16 c1, U16 c2, Boolean mode) @ Argument c1 : freq...
Page 62 - Double Buffer Mode Principle
52 • Double Buffer Mode Principle 6 Double Buffer Mode Principle The data buffer for double-buffered DMA DI operation is a circular buffer logically. It logically divided into two equal halves. The double-buffered DI begins when device starts writing data into the first half of the circular buffer (...
Page 64 - Limitation
54 • Limitation 7 Limitation The 12 MB/sec data transfer rate can only be possibly achieved in a system in which the PCI-7200 card is the only device using the bus, but the speed can not be guaranteed due to the limited FIFO depth. PCI-7200 supports three input clock modes, internal clock, external ...
Page 65 - Product Warranty/Service
Product Warranty/Service • 55 Product Warranty/Service Seller warrants that equipment furnished will be free form defects in material and workmanship for a period of one year from the confi rmed date of purchase of the original buyer and that upon written notice of any such defect, Seller will, at i...