Home
PCI-9113 - ADLINK Technology
Contents
1. ADData As Integer As Integer Argument cardNo The card number of initialized PCI 9113 card ADData A D converted value The resolution of AD data is 12 bit The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB C C Software Library e 43 of A D converted data Please refer to section 5 1 5 for the relationship between the voltage and the digital value Return Code ERR_NoError 6 2 5 9113_AD_Read_Data_Repeat Description This function is used to read the A D conversion data from the data register n times continuously Syntax C C DOS U16 _9113_AD_Read_Data_Repeat U16 cardNo 116 far ADData U16 n C C Windows 95 U16 W_9113 AD Read Data Repeat U16 cardNo 116 ADData U16 n Visual Basic Windows 95 W_9113_AD_ Read Data_Repeat ByVal cardNo As Integer ADData As Integer ByVal n As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADData A D converted value The resolution of A D data is 12 bit The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB of A D converted data Please refer to section 5 1 5 for the relationship between the voltage and the value n The number of times to read the A D conversion data Return Code ERR_NoError 44 e C C Software Library 6 2 6 9113 AD Read Data MUX Description This function is used to read data from A D Data
2. 2 1369 3 3138 18 1373 3 2943 3 1373 3 2943 19 1382 3 2583 4 1363 3 3431 28 1377 3 2747 5 6 7 8 1362 3 3488 21 1382 3 2583 1358 3 3675 22 1378 3 2698 1332 3 4945 23 1376 3 2796 1341 3 4505 24 1386 3 2388 9 1344 3 4359 25 1399 3 2112 10 1344 3 4359 26 1385 3 2357 11 1351 3 48017 27 1389 3 2161 12 1345 3 4318 28 1382 3 2583 13 1352 3 3968 29 1385 3 2357 14 1353 3 3919 30 1382 3 2583 15 1362 3 3488 31 1385 3 2357 A D with FIFO Half Full Interrupt test window 8 2 EEPROM This file is used to enable or disable the interrupt of PCI 9113 board This software is a text driven program Because the default interrupt on PCI 9113 board is on users who don t want to use interrupt function can use this utility to turn off the interrupt of their PCI 9113 board 8 2 1 Running I_eeprom exe After finishing the DOS installation you can execute the utility by typing as follows C gt cd ADLINK DOS 9113 UTIL C gt I_eeprom At first this program prompts you to input the card type 9113 After specifying the card type this program shows the instructions to guide you to enable or disable the interrupt of your PCI 9113 84 e Software Utility board Software Utility e 85 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 confirmed date of purchase of the original buyer and that upon w
3. If the auto_scan is set as enable the selection sequence of A D channel is 0 1 2 3 ad_ch_no 0 1 2 3 ad_ch_no If the auto_scan is set as disable only the data input from ad_ch_no is converted ad_gain A D analog input range the possible values are AD_B 10 V AD B 1V AD B 01 V AD_B 0 01_V AD_B 5 V AD B 05 V AD_B_ 0 05 V AD_B 0 005 V AD_U_10_V AD_U_1_V AD U 01 V ADUO 01 V blockNo The number of blocks for performing A D conversion one block of A D conversion is 512 words ad_buffer The start address of the memory buffer to store the AD data The buffer size must large than the number of AD conversion The unsigned integer data format in ad_buffer is as follows Every 32 bit unsigned integer data bit 0 11 A D converted data bit 16 17 20 converted channel no Please refer to section 5 1 5 for the relationship between the voltage and the value C C Software Library e 69 c1 the frequency devider of Timer 1 c2 the frequency devider of Timer 2 Return Code ERR_InvalidADChannel ERR_AD InvalidGain ERR_InvalidTimerValue ERR_NoError 6 2 34 _9113_AD_INT_Status Description This function is used to check the status of interrupt operation The _9113_AD_INT_Start is executed on background therefore you can issue this function to check the status of interrupt operation Syntax C C DOS U16 _9113_AD_INT_Status U16 cardNo U16 status U16 count C C W
4. 40 e C C Software Library 6 2 After you complete the installation of PCI 9113 Software PCI 9113 s DLL 9113 DLL is copied to Windows System directory default is CAWINDOWSISYSTEM and the driver files W95_9113 VXD and PCIW95 VXD are also copied to the appropriate directory C C Programming Library We defined some data types in acl_pci h These data types are used by PCI 9113 library We suggest you to use these data types in your application programs The following table shows the data type names and their range 6 2 1 Data Types 32 bit single precision floating point 0 to 4294967295 32 bit single precision floating point 3 402823E 38 to 3 402823E 38 F64 64 bit double precision floating point 1 797683134862315E 308 to 1 Ee Boolean logic value TRUE FALSE FALSE The functions of PCI 9113 s software drivers use full names to represent the functions real meaning The naming convention rules are In DOS Environment _ hardware_model action_name e g _9113 Initial In order to recognize the difference between DOS library and Windows 95 library A capital W is put on the head of each C C Software Library e 41 function name of the Windows 95 DLL driver e g W_9113 Initial There are 36 functions provided by PCI 9113 software drivers The detail descriptions of each function are specified in the following sections 6 2 2 _9113 Initial Description This function is used to initi
5. 6 2 36 2112 AD FEHE NIT Region 71 62 37 29113 ADANTES OD coniata 73 Calibration Utilities noo 75 7 1 What do you need uusuuunnnnnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 75 7 2 VR Assignment iii 76 73 A D Adjustment iii 76 7 3 1 Uni polarinput usalo ea 76 7 3 2 Bipolar input ii 76 iv e Contents 74 Software A D Offset Calibration KEN KREE KK 77 Software Utility id 79 BARE PRAIA EE OA A NA EE 79 8 1 1 Running 9ll3util exe iii 79 8 1 2 System Confteurateon 80 8 1 3 CAUDAL cian 81 8 1 4 Functional Testing ii 83 82 P EEPROM ee ds 84 8 2 1 Running I eeprom exe ii 84 Product Warranty Service 87 Contents e v How to Use This Manual This manual is designed to help you to use the PCI 9113 The manual describes the versatile functions and the operation theorem of the PCI 9113 card It is divided into six chapters Chapter 1 Introduction gives an overview of the product features applications and specifications Chapter 2 Installation describes how to install the PCI 9113 The layout of PCI 9113 is shown jumper setting for analog input channel configuration Chapter 3 Signal Connection describes the connectors pin assignment and how to connect the outside signal and devices with the PCI 9113 Chapter 4 Registers Structure amp Format describes the details of register format a
6. and Channel Number Register The A D Data and Channel Number Register is a 32 bit register Please refer to section 4 10 for the description of A D Data and Channel Number Register Syntax C C DOS U16 9113 AD Read Data_MUX U16 cardNo U32 far ADData C C Windows 95 U16 W_9113 AD Read Data_MUX U16 cardNo U32 ADData Visual Basic Windows 95 W_9113 AD Read Data MUX ByVal cardNo As Integer ADData As Long As Integer Argument cardNo The card number of PCI 9113 card initialized ADData A D converted value The resolution of A D conversion data is 12 bits The unsigned integer data format of ADData is as follows Every 32 bit unsigned integer data bit 0 11 A D converted data bit 16 17 20 converted channel no Please refer to section 5 1 5 for the relationship between the voltage and the value Return Code ERR_NoError 6 2 7 9113_AD_Read_Data_Repeat_MUX Description This function is used to read data from A D Data and Channel Number Register n times continuously The A D Data and C C Software Library e 45 Channel Number Register is a 32 bit register Please refer to section 4 10 for the description of A D Data and Channel Number Register Syntax C C DOS U16 9113 AD Read Data_Repeat_MUX U16 cardNo U32 far ADData U16 n C C Windows 95 U16 W_9113_ AD Read Data _Repeat_MUX U16 cardNo U32 ADData U16 n C C Windows 95 W_9113_AD_ Read Data _ Repeat M
7. full the AD FIFO is overrun When the FIFO is half full but not full software reads the A D data which is stored in FIFO in size of one block 512 words The FIFO 62 e C C Software Library half full polling method is the most powerful A D data transfer mode Please refer to section 5 1 4 for the detailed description of half full polling mode Syntax C C DOS U16 _9113_ AD FFHF_Polling U16 cardNo U16 far ad_buf C C Windows 95 U16 W_9113_AD_FFHF_Polling U16 cardNo U16 ad_buf Visual Basic Windows 95 W_9113_AD_FFHF_Polling ByVal cardNo As Integer ad_buf As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ad_buf The buffer stores the A D converted value The size of ad_buf can not be smaller than 512 words The data format can be referred to section 5 1 5 for the details Return Code ERR_NoError ERR_FIFO_Half_NotReady 6 2 29 _9113_AD FFHF Polling MUX Description This function is used to perform powerful AD data transfer by applying half full polling mode This method checks the FIFO half full signal every time calling this function If the FIFO is not half full the software does not read data When the FIFO is full the AD FIFO is overrun When the FIFO is half full and not full software reads the A D data which is stored in FIFO in size of one block 512 words The difference between this function and 9113_AD_FFHF_Pollin
8. one 8254 chip and 6 possible operation modes for each counter The block diagram of the timer counter system is shown in following diagram 8254 Chip Counter 0 4 X gt G Timer 1 b Timer Pacer gt ole 2 MHz Clock gt Timer 2 lo Ha Figure 5 3 1 Timer Counter System of PCI 9113 53 2 Pacer Trigger Source The timer 1 and timer 2 are cascaded together to generate the timer pacer trigger of A D conversion The frequency of the pacer trigger is software controllable The maximum pacer signal rate is 2MHz 4 500K which excess the maximum A D conversion rate of the PCI 9113 80KHz The minimum signal rate is 2MHz 65535 65535 which is a very slow frequency that user may never use it The output of the programmable timer can be used as the pacer interrupt source or the timer pacer trigger source of A D conversion In software library the timer 1 and 2 are always set as mode 2 rate generator or mode 3 Operation Theorem e 37 C C Software Library There are 36 functions provided by the C Language library This library includes all the functions of PCI 9113 The major capability of these function calls is A D conversion In addition there are some sample programs to help you to use this library 6 1 Installation 6 1 1 Installation MS DOS Software Installation step 1 Place ADLink s Manual amp Software Utility CD into the appropriate CD drive step 2 Type
9. the command X indicates the CD ROM driver X gt CD Software Pci_Card 9113 DOS X Software Pci_Card 9113 DOS gt SETUP step 3 An installation complete message will be shown on the screen After installation all the files of PCI 9113 Library amp Utility for DOS are stored in C ADLink 9113 DOS directory C C Software Library e 39 Windows 95 Software Installation step 1 Place ADLink s Manual 8 Software Utility CD into the appropriate CD driver step 2 If Windows 95 is loaded choose Run from the Start menu step 3 Type X Software Pci_Card 9113 Win95 Setup exe in the Run dialog box X indicates the CD ROM driver After a welcome dialog box Setup prompts the following dialog box for you to specify the destination directory The default path is C 9113w95 If you want to install PC 9113 DLL for Windows 95 in another directory please click Browse button to change the destination directory Then you can click Next to begin installing PC 9113 DLL for Windows 95 Setup will install PCI 9113 DLL for Windows 95 in the following directory To install to this directory click Next To install to a different directory click Browse and select another directory You can choose not to install PCI 9113 DLL for Windows 95 by clicking Cancel to exit Setup Destination Directory c 49113w95 Browse Then you can click Next to begin installing PC 9113 DLL for Windows 95
10. the selection sequence of A D channel is 0 1 2 3 ad_ch_no 0 1 2 3 ad_ch_no If the auto_scan is set as disabled only the data input from ad_ch_no is converted ad_gain A D analog input range the possible values are AD_B_10V ADB1V ADB01V AD_B 0 01_V AD_B 5 V AD B 0 5 V AD_B 0 05 V AD_B 0 005 V AD_U_10_V AD_U_1_V AD_U_0_1_V AD 0_01_V count The number of A D conversion ad_buffer The start address of the memory buffer to store the A D data The buffer size must large than the number of A D conversion The unsigned integer data format in ad_buffer is as follows Every 32 bit unsigned integer data bit 0 11 A D converted data bit 16 17 20 converted channel no Please refer to section 5 1 5 for the relationship between the voltage and the value c1 the frequency devider of Timer 1 c2 the frequency devider of Timer 2 C C Software Library e 67 Return Code ERR_InvalidADChannel ERR_AD_InvalidGain ERR_InvalidTimerValue ERR_NoError 6 2 33 _9113_AD_FFHF_INT_Start Description This function is used to initial and start up the interrupt transfer by using AD FIFO Half Full Interrupt Transfer Mode This function could perform A D conversion N times with interrupt data transfer by using pacer trigger It takes place in the background and will not stop until the N th conversion has been completed or your program execute 9113_AD_INT_Stop function to stop the process After exe
11. 2 e Operation Theorem Usually the timer trigger is used under this mode therefore the sampling rate is fixed The method also utilizes the minimum CPU resources because it is not necessary to be the highest priority The other benefit is this method will not use hardware interrupt resource Therefore the interrupt is reserved for system clock or emergency external interrupt request The FIFO half full polling method is the most powerful A D data transfer mode EOC Interrupt Transfer The PCI 9113 provides traditional hardware end of conversion EOC interrupt capability Under this mode an interrupt signal is generated when the A D conversion is ended and the data is ready to be read in the FIFO It is useful to combine the EOC interrupt transfer with the timer pacer trigger mode After A D conversion is completed the hardware interrupt will be inserted and its corresponding ISR Interrupt Service Routine will be invoked and executed The ISR program can read the converted data This method is most suitable for data processing applications under real time and fixed sampling rate FIFO Half Full Interrupt Transfer Sometimes the applications do not need real time processing but the foreground program is too busy to poll the FIFO data The FIFO half full interrupt transfer mode is useful for the situation mentioned above In addition as the external A D trigger source is used the sampling rate may be not easy to predict and then the meth
12. A D range is listed in the table below Analog Input Range Uni Polar o 1 10 v som 1 o 10 i00mv 50mv 4 5 A D Status Readback Register The A D FIFO status can be read back from this register Address BASE 2 Attribute read only Data Format AAA a e a e a d a i FF_EF 0 means FIFO is empty FE HE 0 means FIFO is half full FF_FF 0 means FIFO is full A D data may have been loss AD_BUSY 0 means AD is busy the A D data has not been latched in FIFO yet If AD_ BUSY changes from 0 to 1 A D data is written into FIFO 4 6 A D Trigger Mode Control and Readback Register 22 e Registers Structure Format 4 7 4 8 This register is used to control or read back the A D trigger control setting and the A D range setting Address BASE 4 Attribute write and read Data Format GC0 GC1 A D range setting read back only TSSEL Timer Pacer Software Trigger 1 Timer Pacer Trigger 0 Software Trigger ASCAN Auto Scan Control 1 Auto Scan ON 0 Auto Scan OFF Software Trigger Register To generate a trigger pulse to the PCI 9113 for A D conversion you just write any data to this register then the A D converter will be triggered Address BASE 8 Attribute write only Data Format Interrupt Control and Readback Register The PCI 9113 has a dual interrupt system thus two interrupt sources can be generated and be checked
13. C C Windows 95 U16 W_9113_AD_Get_ Range U16 cardNo U16 ADRange Visual Basic Windows 95 W_9113_AD_Get_ Range ByVal cardNo As Integer ADRange As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADRange The programmable gain of A D conversion the possible values are AD B 10 V x1 AD B 1 V x10 AD B 0 1 V x100 AD_B_0 01 V x1000 The information you can get from this argument is gain x1 x10 x100 or x1000 The actual A D range depends on the setting of JP1 and JP2 please refer to section 2 5 C C Software Library e 49 Return Code ERR_NoError 6 2 11 _9113_AD_Get_Status Description This function is used to get AD FIFO status from the A D status readback register Syntax C C DOS U16 _9113_AD_Get_Status U16 cardNo U16 ADStatus C C Windows 95 U16 W_9113_AD_Get_ Status U16 cardNo U16 ADStatus Visual Basic Windows 95 W_9113 AD Gei Status ByVal cardNo As Integer ADStatus As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADStatus The status of AD FIFO The AD FIFO status could be one of the following ADSTS_FF_EF FIFO is empty ADSTS_FF_HF FIFO is half full ADSTS_FF_FF FIFO is full A D data may have been loss ADSTS_BUSY AD is busy A D data is written into FIFO Return Code ERR_NoError 50 e C C Software Library 6 2 12 _9113 AD_Set Mode Description This function is used
14. D conversion Under this mode the timing of the A D conversion is fully controlled by software However it is difficult to control the fixed A D conversion rate unless another timer interrupt service routine is used to generate a fixed rate trigger Refer to interrupt control section section 5 2 for fixed rate timer interrupt operation Timer Pacer Trigger TSSEL 1 An on board timer counter chip 8254 is used to provide a trigger source for A D conversion at a fixed rate Two counters of the 8254 chip are cascaded together to generate trigger pulse with precise period Please refer to section 5 3 for 8254 architecture This mode is ideal for high speed A D conversion It can be combined with the FIFO half full interrupt or EOC interrupt to transfer data It is also possible to use software FIFO polling to 30 Operation Theorem transfer data The A D trigger A D data transfer and Interrupt can be set independently Most of the complex applications can thus be covered It s recommended using this mode if your applications need a fixed and precise A D sampling rate 5 1 4 AID Data Transfer Modes The A D data are buffered in the FIFO memory The FIFO size on PCI 9113 is 1024 1K words If the sampling rate is 10 KHz the FIFO can buffer 102 4 ms analog signal After the FIFO is full the lasting coming data will be lost The software must read out the FIFO data before it becomes full The data must be transferred to host memory a
15. Imitat oie tees iaia ea 42 6 2 3 _9113_Software_Reset 42 6 2 4 9113_AD_Read_Data iii 43 6 2 5 9113_AD_Read_Data_Repeat iii 44 6 2 6 9113_AD_Read_Data_MUX i 45 6 2 7 9113_AD_Read_Data_Repeat_MUX 45 6 2 8 _9113 AD Set_Channel ean a as 46 6 2 9 _9113_AD_Set_Range iii 47 6 2 10 _9113_AD_Get_Range iii 48 6 2 11 9113 AD GEL SIGs sis sk ina RA 50 6 2 12 OII3 AD Ser Mode iii 51 6 2 13 _9113_AD_Get_Mode iii iiin 51 6 2 14 LI INT Set Regni ia 32 6215 IIS AD Get Reg 53 Contents e iii 6 2 16 _9113_Reset_FIFO ii 53 6 2 17 _9113_AD_Soft_Trigger ii 54 6 2 18 9113 Set 82954 sosia iaia ai 55 6 219 91 13 G t LA a aan 56 6 2 20 ILII AD Timer esaea a uaar 56 6 2 21 _9113_Counter_Staft ii 57 6 2 22 ZIJI Counter Read ail 58 6 2 23 _9113_Counter_Sto0p i 59 6 2 24 _9113_INT_Source_Control ii 59 62 25 2971S E 60 6 2 26 _9113_Get_IRQ_Channel iii 61 6 2 27 9113 Get IRO Status nostri nia 62 6 2 28 ILII AD FFRF Pollen 62 6 2 29 _9113_AD_FFHF_ Polling AMUNK iii 63 6 2 30 _9113_AD Aeuire iii 64 6 2 31 _9113_AD Aquire_MUX ii 65 6 2 32 _9113_AD_ INT Start iii 66 6 2 33 _9113_AD_FFHF_INT_Staft iii 68 6 2 34 _9113_AD_INT_ Status ii 70 6 2 35 _9113_AD_FFHF_INT _Statuts oee 71
16. NTNotSet ERR_NoError C C Software Library e 73 7 1 Calibration amp Utilities In data acquisition process how to calibrate your measurement devices to maintain its accuracy is very important Users can calibrate the analog input and analog output channels under the users operating environment for optimizing the accuracy This chapter will guide you to calibrate your PCI 9113 to an accuracy condition What do you need Before calibrating your PCI 9113 card you should prepare some equipment s for the calibration e Calibration program Once the program is executed it will guide you to do the calibration This program is included in the delivered package e A 5 1 2 digit multimeter 6 1 2 is recommended e A voltage calibrator or a very stable and noise free DC voltage generator Calibration amp Utilities e 75 7 2 VR Assignment There are three variable resistors VR on the PCI 9113 board to allow you making accurate adjustment on A D channels The function of each VR is specified as Table 7 1 A D uni polar offset adjustment A D full scale adjustment A D bi polar offset adjustment Table 7 1 Function of VRs 7 3 A D Adjustment 7 3 1 Uni polar input 1 Set the analog gain 1 and channel number 0 by software 2 Set JP1 as uni polar A D input Set JP2 to 10V full range 3 Short the A D channel 0 pin 1 of CN1 to ground GND Adjust VR1 to obtain reading between 0 1 4 Applied a 10V referenc
17. None 6 2 26 _9113_Get_IRQ_Channel Description This function is used to get the IRQ level of the PCI 9113 card currently used Syntax C C DOS void _9113_Get_IRQ_Channel U16 cardNo U16 irq_no C C Windows 95 void W_9113_Get_IRQ_Channel U16 cardNo U16 irq_no Visual Basic Windows 95 W_9113_Get_IRQ_ Channel ByVal cardNo As Integer irq_no As Integer Argument cardNo The card number of PCI 9113 card initialized Irq_no The IRQ level used to transfer A D data for this card Return Code C C Software Library e 61 None 6 2 27 _9113 Get IRQ Status Description This function is used to get the status of the two IRQs INT1 and INT2 in PCI 9113 card Syntax C C DOS void _9113_Get_IRQ _ Status U16 cardNo U16 ch1 U16 ch2 C C Windows 95 void W_9113_Get_IRQ _ Status U16 cardNo U16 ch1 U16 ch2 Visual Basic Windows 95 W_9113_Get_IRQ _ Status ByVal cardNo As Integer chi As Integer ch2 As Integer Argument cardNo the card number of PCI 9113 card initialized ch1 the IRQ status of INT1 ch2 the IRQ status of INT2 Return Code None 6 2 28 _9113 AD_FFHF Polling Description This function is used to perform the powerful AD data transfer by applying half full polling mode This method checks the FIFO half full signal every time calling this function If the FIFO is not half full the software does not read data When the FIFO is
18. PCI 9113 32 Channels Isolation Analog Input Card Copyright 1997 1998 ADLink Technology Inc All Rights Reserved Manual Rev 2 1 September 5 1998 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 PCI 9113 is a registered trademark of ADLink Technology Inc IBM PC is a registered trademark of International Business Machines Corporation Intel is a registered trademark of Intel Corporation Borland C is a registered trademark of Borland International Inc Other product names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies Contents How to Use This Manual vii IMtroductioni ana sidad 1 1 1 Software Supporting iii 2 1 25 TEOQtures oer rare ea eoa e
19. RR_NoError 6 2 14 _9113_INT_Set_Reg Description This function is used to select the interrupt sources by writing data to interrupt control register Please refer to section 4 8 to learn how to set the interrupt control register Syntax C C DOS U16 _9113_INT_Set_Reg U16 cardNo U16 INTC C C Windows 95 U16 W_9113_INT_Set_Reg U16 cardNo U16 INTC Visual Basic Windows 95 W_9113_INT_Set_Reg ByVal cardNo As Integer ByVal 52 e C C Software Library INTC As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized INTC The value written to the interrupt control register Return Code ERR_NoError 6 2 15 _9113_AD_Get_Reg Description This function is used to get the A D mode setting and interrupt control setting by reading data from the Interrupt control read back register The settings returned are stored in INTC Please refer to section 4 8 for the detailed definition of each bit of the returned data Syntax C C DOS U16 _9113_INT_Get_Reg U16 cardNo U16 INTC C C Windows 95 U16 W_9113_INT_Get_Reg U16 cardNo U16 INTC Visual Basic Windows 95 W_9113_INT_Get_Reg ByVal cardNo As Integer INTC As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized INTC The value returned from the interrupt control register Return Code ERR_NoError 6 2 16 _9113 Reset_FIFO Description C C
20. Software Library e 53 The PCI 9113 A D data are stored in the FIFO after conversion This function is used to reset A D FIFO This function should be called before performing A D conversion to clear the old data stored in the FIFO Syntax C C DOS U16 9113 _Reset_FIFO U16 cardNo C C Windows 95 U16 W_9113_Reset_ FIFO U16 cardNo Visual Basic Windows 95 W_9113_Reset_FIFO ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized Return Code ERR_NoError 6 2 17 _9113 AD Soft Trigger Description This function is used to trigger the A D conversion by software When this function is called a trigger pulse will be generated and the converted data will be stored from address Base 0 Syntax C C DOS U16 9113 AD Soft_Trigger U16 cardNo C C Windows 95 U16 W_9113 AD _ Soft_Trigger U16 cardNo Visual Basic Windows 95 W_9113 AD Soft_Trigger ByVal cardNo As Integer As Integer Argument 54 e C C Software Library cardNo The card number of PCI 9113 card initialized Return Code ERR_NoError 6 2 18 _9113_Set_8254 Description This function is used to write PCI 9113 8254 Programmable Timer Syntax C C DOS U16 _9113_Set_8254 U16 cardNo U16 ChannelNo U8 count C C Windows 95 U16 W_9113_Set_8254 U16 cardNo U16 ChannelNo U8 count Visual Basic Windows 95 W_9113_Set_8254 ByVal cardNo As Integer ByVal ChannelN
21. Three are 32 SE A D channels on board The R C filters attenuantors are on board for every channel The RC circuits for each channel is shown in the following diagram where n is the channel number User can install the R C for special purpose such as attenuating the voltage to increase the input voltage range 28 e Operation Theorem RAn Analog Input To Multiplexer Channel n 0 Ohm P gt RBn CAn OPEN S OPEN Y NE The RC network can also be used as current sensor which transfers the current into voltage To get the ground reference level user can cut off RA and let RB 0 Ohm thus grounding the input signal The users can use the ground input to calibrate the offset voltage by software Signal Channel Control There are two ways to control the channel number The first one is the software programming and the second one is the auto channel scanning which is controlled by the ASCAN bit in AD trigger mode control register As ASCAN is cleared 0 the value of AD channel Control register defines the channel to be selected As ASCAN is set 1 the value in AD channel control register defines the ending channel number of auto scanning operation Under auto scan mode the channel is scanning from channel 0 to the ending channel Whenever a trigger signal is rising the channel number to be selected will increase automatically For example if the ending channel number is 3 the auto channel scanning sequence i
22. UX ByVal cardNo As Integer ADData As Long ByVal n As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADData A D converted value The resolution of A D conversion data is 12 bits The unsigned integer data format of ADData is as follows Every 32 bit unsigned integer data bit 0 11 A D converted data bit 16 17 20 converted channel no Please refer to section 5 1 5 to learn the relationship between the voltage and the value n The timer of times to read the AD conversion data Return Code ERR_NoError 6 2 8 _9113 AD Set Channel Description This function is used to set A D channel by means of writing data to the channel control register There are 32 single ended A D channels in PCI 9113 Therefore the channel number could be set between 0 to 31 Under non auto scan mode the 46 e C C Software Library ADChannelNo stores the channel number setting Under auto scan mode the ADChannelNo records the channel number of ending channel Syntax C C DOS U16 9113 AD Set Channel U16 cardNo U16 ADChannelNo C C Windows 95 U16 W_9113_AD_ Get Channel U16 cardNo U16 ADChannelNo Visual Basic Windows 95 W_9113 AD Ger Channel ByVal cardNo As Integer ByVal ADChannelNo As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADChannelNo The selected channel number or the ending channel number to perform A D conversi
23. Windows will not prompt you again C Select from a list of alternate drivers oo ge Choose the default option Driver from disk provided by hardware manufacturer and then a dialog box is shown to prompt you give the path of installation disk Install From Disk 4 Insert the manufacturer s installation disk into OK the drive selected and then click OK Cancel Copy manufacturer s files from X GoftwareiPci_Cardi9 1131495 y Browse Place ADLink s Manual amp Software Utility CD into the appropriate CD driver Type X Software Pci_Card 9113 Win95 this directory includes PCI 9113 device information file 9113 inf in the input field X indicates the CD ROM driver Installation e 9 and then click OK The system will start the installation of PCI 9113 10 e Installation 2 4 PCI 9113 s Layout a a gt a a gt a gt 0000000000000000008 000000000000000000 Figure 2 1 PCB Layout of the PCI 9113 Installation e 11 2 5 Jumper Descriptions 2 5 1 Polarity Selection Jumper JP1 is the polarity selection jumper The following diagram shows the possible configurations O Bi polar input Uni polar input O 2 5 2 Full Range Jumper JP2 set the full range of the analog input channels The following diagram shows the possible configurations O 20V Full Range l B 10V Full Range 2 5 3 Possible AD Input Range Configurations The JP1 and JP2 ar
24. aler 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 e 7 2 2 Unpacking Your PCI 9113 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 handing damages on the module before processing After opening the card module carton extract the system 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 9113 2 3 Device Installation for Windows 95 While you first plug PCI 9113 card and enter Windows 95 the system will detect this device automatically and show the following dialog box that prompts you to select the device information source 8 e Installation New Hardware Found S PCI Card Ki Select which driver you want to install for your new hardware Do not install a driver
25. alize PCI 9113 card Every PCI 9113 card has to be initialized by this function before calling other functions Syntax C C DOS U16 9113 Initial U16 existCards PCI_INFO info C C Windows 95 U16 W_9113 Initial U16 existCards PCI_INFO info Visual Basic Windows 95 W_9113 Initial existCards As Integer info As PCI_INFO As Integer Argument existCards numbers of existing PCI 9113 cards info relative information of the PCI 9113 cards Return Code ERR_NoError ERR_BoardNolnit ERR_PCIBiosNotExist 6 2 3 _9113 Software_Reset Description This function is used to reset the I O port configuration Note that this function can not re start the PCI bus and all the 42 e C C Software Library hardware setting won t be changed neither Syntax C C DOS void _9113_Software_Reset U16 cardNo C C Windows 95 void W_9113_Software_Reset U16 cardNo Visual Basic Windows 95 W_9113 Software_Reset ByVal cardNo As Integer Argument cardNo The card number of initialized PCI 9113 card Return Code None 6 2 4 9113 AD Read Data Description This function is used to read the A D conversion data from A D Data register The resolution of A D conversion data is 12 bits Syntax C C DOS U16 9113 AD Read Data U16 cardNo U16 far ADData C C Windows 95 U16 W_9113 AD Read Data U16 cardNo U16 ADData Visual Basic Windows 95 W_9113_AD_Read_ Data ByVal cardNo As Integer
26. ax C C DOS U16 9113 _ AD Timer U16 cardNo U16 c1 U16 c2 C C Windows 95 U16 W_9113_AD_ Timer U16 cardNo U16 c1 U16 c2 Visual Basic Windows 95 W_9113_AD Timer ByVal cardNo As Integer ByVal c1 As Integer ByVal c2 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized c1 frequency divider of timer 1 c2 frequency divider of timer 2 Return Code ERR_NoError 6 2 21 _9113 Counter_Start Description The counter 0 of the PCI 9113 Timer Counter chip can be freely programmed by the users This function is used to program the counter 0 This counter can be used as frequency generator if internal clock is used It also can be used as event counter if external clock is used All the 8254 modes six operating modes are available Syntax C C DOS U16 _9113_Counter_Start U16 cardNo U16 mode U16 c0 C C Software Library e 57 C C Windows 95 U16 W_9113_Counter_Start U16 cardNo U16 mode U16 c0 Visual Basic Windows 95 W_9113_Counter_Start ByVal cardNo As Integer ByVal mode As Integer ByVal c0 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized Mode the 8254 timer mode the possible values are TIMER_MODEO TIMER_MODE1 TIMER_MODE2 TIMER_MODE3 TIMER_MODE4 TIMER_MODES Please refer to Counter Timer 8254 s reference manual for more detailed information of timer mode c0 counter value of counter 0 Return Cod
27. between the voltage and the value Return Code ERR_NoError ERR_AD_AquireTimeOut 6 2 31 _9113 AD Aquire MUX Description This function is used to poll the A D conversion data for PCI 9113 It reads the A D data when the data is ready Syntax C C DOS U16 _9113_ AD FFHF_Polling MUX U16 cardNo U16 far ad_data C C Windows 95 U16 W_9113 AD _FFHF_Polling_MUX U16 cardNo U16 ad_data Visual Basic Windows 95 W_9113_AD_FFHF_Polling_MUX ByVal cardNo As Integer ad_data As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ad_data The 32 bit A D converted value The resolution of A D conversion data is 12 bits The unsigned integer data format of ADData is as follows Every 32 bit unsigned integer data bit 0 11 A D converted data C C Software Library e 65 bit 16 17 20 converted channel no Please refer to section 5 1 5 for the relationship between the voltage and the value Return Code ERR_NoError ERR_FIFO_Half_NotReady 6 2 32 _9113_AD_INT_Start Description This function is used to initial and startup the AD EOC end of conversion interrupt This function could perform A D conversion N times with interrupt data transfer by using pacer trigger It takes place in the background and will not stop until the N th conversion has been completed or your program execute _9113_AD_INT_Stop function to stop the process After executing
28. by the software This register is used to select the interrupt sources Address BASE 6 Registers Structure amp Format e 23 Attribute write and read Data Format AAA AAA ISCO IRQO signal select 0 IRQ on the ending of the AD conversion EOC 1 IRQ when FIFO is half full ISC1 IRQ1 signal select Timer Interrupt only FFEN FIFO enable pin 0 FIFO Enable Power On Default value 1 FIFO Disable To reset FIFO set FFEN sequence as 0 gt 1 gt 0 4 9 Hardware Interrupt Clear Register Because the PCI interrupt signal is level trigger the interrupt clear register must be written to clear the flag after processing the interrupt request event otherwise that another interrupt request is inserted will cause the software to hang on processing the interrupt event Address BASE 0Ah Attribute write only Data Format 4 10 A D Data and Channel Number Registers The PCI 9113 A D data and channel number is stored in the FIFO Reading this register by a 32 bit I O instruction can read back the data and channel number simultaneously Address BASE 2 0 Attribute read only Data Format 24 e Registers Structure Format ER aaa AD11 ADO Analog to digital data AD11 is the Most Significant Bit MSB of PCI 9113 ADO is the Least Significant Bit LSB CN4 CNO Channel number 4 11 High Level Programming To operate the PCI 9113 you can bypass the detailed register structures and use the
29. cuting this function it is necessary to check the status of the operation by using the function 9113_AD_FFHF_INT_Status The function can perform on single A D channel autoscan is disabled or multiple A D channels autoscan is enabled with fixed analog input range Note The interrupt mode provided in this function is internal timer source therefore you must specify c1 amp c2 as calling this function In addition this function in MS DOS Borland C library supports just one PCI 9113 card and provides only one ISR interrupt service routine for processing the interrupt events If multi 9113 cards and multi isr is necessary users can modify this library for your own purpose Syntax C C DOS U16 9113 _ AD FFHF_INT_ Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 blockNo U32 ad_buffer U16 c1 U16 c2 68 e C C Software Library C C Windows 95 U16 W_9113_AD_FFHF_INT_ Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 blockNo U32 ad_buffer U16 c1 U16 c2 Visual Basic Windows 95 W_9113_AD_FFHF_INT_ Start ByVal cardNo As Integer ByVal auto_scan As Integer ByVal ad_ch_no As Integer ByVal ad_gain As Integer ByVal blockNo As Integer ad_buffer As Long ByVal c1 As Integer ByVal c2 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized auto_scan 0 autoscan is disabled 1 autoscan is enabled ad_ch_no A D channel number
30. d PCI 9113 registers The PCR which conforms the PCI bus specifications are initialized and controlled by the system plug amp play PCI BIOS Users can study the PCI BIOS specifications to understand the operation of the PCR The PCR can only be read through by PCI BIOS function call The LCR are specified by the PCI bus controller PLX 9050 It is not necessary for users to understand the details of the LCR if Registers Structure amp Format e 19 4 2 you use the software library The base address of the LCR is assigned by the PCI p amp p BIOS The assigned address is located at offset 14h of PCR The PCI 9113 registers are shown in the Table 4 1 The base address of the PCI 9113 registers is also assigned by the PCI p amp p BIOS The assigned base address is located at offset 18h of PCR Note that most of the PCI 9113 registers are 16 bits The users can access these registers by 16 bits I O instructions There is one 32 bits register on PCI 9113 The 32 bits register occupied another LCR address space that is base address 2 The base address is allocated by PCI BIOS and is stored at offset 1Ch of PCR Users can read the PCR to get the LCR base address and the two PCI 9113 base addresses by using the PCI BIOS function call VO Base Address 1 Write Read fee TA Base 08h Software AD trigger Base 0Ah Clear H W IRQ fe VO BaseAddress Write Read Base 2 00h E AD data and channel number Table 4 1 HO Addres
31. e ERR_NoError 6 2 22 _9113_Counter_Read Description This function is used to read the counter value of the Counter 0 Syntax C C DOS U16 _9113_Counter_Read U16 cardNo U16 c0 C C Windows 95 U16 W_9113_Counter_Read U16 cardNo U16 c0 Visual Basic Windows 95 W_9113_Counter_Read ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized 58 e C C Software Library c0 count value of counter 0 Return Code ERR_NoError 6 2 23 _9113_Counter_Stop Description This function is used to stop the timer operation The timer is set as the One shot mode with counter value 0 That is the clock output signal will be set as high after executing this function Syntax C C DOS U16 _9113_Counter_Stop U16 cardNo U16 c0 C C Windows 95 U16 W_9113_Counter_Stop U16 cardNo U16 c0 Visual Basic Windows 95 U16 W_9113_Counter_Stop ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized c0 the current counter value of the Counter 0 Return Code ERR_NoError 6 2 24 _9113_INT_Source_Control Description PCI 9113 has a dual interrupt system therefore two interrupt sources can be generated and be checked by the software This function is used to select and control PCI 9113 interrupt sources by writing data to interrupt control register Please C C Softwa
32. e input signal to A D channel 1 pin 20 of CN1 and trim the VR2to obtain reading between 4094 4095 7 3 2 Bi polar input 1 Set the analog gain 1 and channel number 0 by software 2 Set JP1 as bi polar A D input Set JP2 to 20V full range 3 Short the A D channel 0 pin 1 of CN1 to ground GND Adjust VR3 to obtain reading between 2047 2048 4 Applied a 10V reference input signal to A D channel 1 pin 20 of CN1 and trim the VR2 to obtain reading between 4094 4095 76 e Calibration Utilities 7 4 Software A D Offset Calibration For more accuracy calibrate the input offset signal using software to calibrate the offset of the analog input signal is a good approach Another benefit is this method can calibrate offset online and thus eliminate any temperature drift For example user can short the resistor RB32 to ground Measuring the digital value of channel 31 can obtain the offset voltage of the AD channels If the digital offset value is Voff user can modify any AD data by subtracting Voff from the AD data to obtain the offset calibrated value Note that the Voff may be different for each gain level Users should calibrate the offset value for every gain value Calibration Utilities e 77 8 1 Software Utility This software CD provides two utility programs They are 9113util exe which provides three functions System Configuration Calibration and Functional Testing and _eeprom which is used to enable
33. e used to setup the analog input signal range There are three possible combinations 0 10V 5V 5V and 10V 10V See the following table for reference 12 e Installation 2 6 PCI Configuration 1 Plug and Play As a plug and play component the board requests an interrupt via a system call The system BIOS assigns an interrupt level based on the board information and system parameters These system parameters are determined by the installed drivers and the hardware load seen by the system 2 Configuration The board configuration is done on a board by board basis for all PCI cards on your system Because the configuration is controlled by the system BIOS and software there is no jumpers for setting system parameters like base address and interrupt level The configuration is subject to change with every boot of the system when new boards are added or boards are removed 3 Trouble shooting If your system will not boot or if you experience erratic operation with your PCI board in place it s likely caused by an interrupt conflict perhaps because you incorrectly described the ISA setup In general the solution once you determine it is not a simple oversight is to consult the BIOS documentation that come with your system Installation e 13 3 1 Signal Connections This chapter describes the connector of PCI 9113 and the signal connection between the PCI 9113 and external devices such as daughter boards
34. ed with several different daughter boards ACLD 9881 ACLD 9137 and ACLD 9188 The functionality and connections are specified as follows 3 3 1 Connect with ACLD 9881 The ACLD 9881 has a 37 pin D sub connector which can connect with PCI 9113 through 37 pin assemble cable The ACLD 9881 provides low pass filter for the 32 channels it is very flexible for wiring 3 3 2 Connect with ACLD 9137 The ACLD 9137 is a direct connector for the card which is equipped with 37 pin D sub connector This board provides a simple way for connection It is very suitable for the simple applications that do not need complex signal condition before the A D conversion is performed 3 3 3 Connect with ACLD 9188 ACLD 9188 is general purpose terminal boards for all the card which comes equipped with 37 pin D sub connector Signal Connections e 17 4 1 Registers Structure Format The detailed descriptions of the register format of the PCI 9113 are specified in this chapter This information is quite useful for the programmers who wish to handle the card by low level programming In addition users can understand how to use software driver to manipulate this card after understanding the registers structure of the PCI 9113 I O Port Address The PCI 9113 functions as a 32 bit PCI target device to any master on the PCI bus There are three types of registers on the PCI 9113 PCI Configuration Registers PCR Local Configuration Registers LCR an
35. fter the date is ready and before the FIFO is full On the PCI 9113 many data transfer modes can be used The different transfer modes are specified as follows Software Data Polling The software data polling is the easiest way to transfer A D data This mode can be used with software A D trigger mode After the A D conversion is triggered by software the software should poll the FF_EF bit of the A D status register until it becomes low level If the FIFO is empty before the A D start the FF_EF bit will be low After the A D conversion is completed the A D data is written to FIFO immediately thus the FF_EF becomes high You can consider the FF_EF bit as a flag to indicate the converted data ready status That is FF_EF is high means the data is ready Note that while A D is converted the ADBUSY bit is low After A D conversion the ADBUSY becomes high to indicate not busy Please do NOT use this bit to poll the AD data It is possible to read A D converted data without polling The A D conversion time will not exceed 8 5us on PCI 9113 card Hence Operation Theorem e 31 after software trigger the software can wait for at least 8 5us and then read the A D register without polling The data polling transfer is very suitable for the application that needs to process AD data in real time Especially when combining with the timer interrupt generation the timer interrupt service routine can use the data polling method to get multi c
36. g is that the former reads data from the 16 bit register and the latter reads data from 32 C C Software Library e 63 bit data register Please refer to section 5 1 4 for the detailed description of half full polling mode Syntax C C DOS U16 _9113_ AD FFHF_Polling_MUX U16 cardNo U32 far ad_buf C C Windows 95 U16 W_9113_AD_FFHF_Polling MUX U16 cardNo U32 ad_buf Visual Basic Windows 95 U16 W_9113_AD_FFHF_Polling_MUX ByVal cardNo As Integer ad_buf As Long As Integer Argument cardNo The card number of PCI 9113 card initialized ad_buf The 32bits A D converted value The data format can be referred to section 5 1 5 for details Return Code ERR_NoError ERR_FIFO_Half_NotReady 6 2 30 _9113 AD Aquire Description This function is used to poll the A D converted data for PCI 9113 by software trigger lt reads the A D data when the data is ready Syntax C C DOS U16 _9113_AD_Aquire U16 cardNo U16 far ad_data C C Windows 95 U16 W_9113_AD_Aquire U16 cardNo U16 ad_data Visual Basic Windows 95 W_9113 AD Aquire ByVal cardNo As Integer ad_data 64 e C C Software Library As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ad_data The 16 bit A D converted value The bit 0 of ADData is the LSB of A D converted data and the bit 11 of ADData is the MSB of A D converted data Please refer to section 5 1 5 for the relationship
37. hannel A D data in real time and with the fixed data sampling rate FIFO Half Full Polling The FIFO half full polling mode is the most powerful AD data transfer mode The 1 K words FIFO can be stored up to 10 24 ms analog data under 100 KHz sampling rate 10 024ms 1024 100 KHz Theoretically the software can poll the FIFO every 10 ms without taking care how to trigger A D or transfer A D data It s recommend that users check your system to find out the user software s priority in the special application If the application software is at the highest priority polling the FIFO every 10 ms is suitable However the user s program must check the FIFO is full or empty every time reading data To avoid this problem the half full polling method is used If the A D trigger rate is 100KHz the FIFO will be half full 512 words in 5 12 ms If the user s software checks the FIFO half full signal every 5 ms and the FIFO is not half full the software does not read data When the FIFO is full the AD FIFO is overrun That means the sampling rate is higher than users expect or the polling rate is too slow It is also possible due to your system occupy the CPU resource thus reducing the polling rate When the FIFO is half full and not full the software can read one block 512 words A D data without checking the FIFO status This method is very convenient to read A D in size of a block and it is benefit to software programming 3
38. high level application programming interface API to control your PCI 9113 card directly The software libraries DOS library for Borland C and DLL for Windows 95 are included in the ADLink s Manual amp Software Utility CD Please refer to chapter 6 for more detailed information 4 12 Low Level Programming To operate the PCI 9113 users do not need to understand how to write a hardware dependent low level program The control of the PCI controller is complex and not described in the manual It is not recommended the user to program applications based on low level programming If the user does need to program in low level programming you can contact the dealer from whom you purchased the PCI 9113 for further PCI controller programming information Registers Structure amp Format e 25 5 1 Operation Theorem The operation theorem of the functions on PCI 9113 card is described in this chapter The operation theorem can help you to understand how to manipulate or to program the PCI 9113 A D Conversion Before programming the PCI 9113 to perform the A D conversion you should understand the following issues Note A D conversion procedure A D signal source control A D trigger source control A D data transfer mode Interrupt System refer to section 5 2 A D data format Because some of the A D data transfer modes will use the system interrupt resource the users have to understand the interrupt system sect
39. indows 95 U16 W_9113_AD_INT_Status U16 cardNo U16 status U16 count Visual Basic Windows 95 W_9113_AD_INT_Status ByVal cardNo As Integer status As Integer count As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized status The status of the INT data transfer count The A D conversion count number performed currently Return Code ERR_NoError 70 e C C Software Library 6 2 35 _9113 AD_FFHF_INT_ Status Description This function is used to check the status of interrupt operation by using AD FIFO Half Full Interrupt Transfer Mode The 9113 AD _FFHF_INT_ Start is executed on background therefore you can issue this function to check the status of interrupt operation Syntax C C DOS U16 _9113_AD_ FFHF_INT_ Status U16 cardNo U16 status U16 blockNo C C Windows 95 U16 W_9113_AD_FFHF_INT_ Status U16 cardNo U16 status U16 blockNo Visual Basic Windows 95 W_9113_AD_FFHF_INT_ Status ByVal cardNo As Integer status As Integer blockNo As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized status The status of the INT data transfer blockno The A D conversion block number performed currently Return Code ERR_NoError 6 2 36 _9113 AD FFHF_INT_Restart Description After calling _9113_AD_FFHF_INT_Start the A D conversion and transfer won t stop until the N blocks of the A D data is acqu
40. ion 5 2 in the same time Operation Theorem e 27 5 1 1 A D Conversion Procedure For using the A D converter users must know about the property of the signal to be measured at first The users can decide which channels to be used and connect the signals to the PCI 9113 Refer to the chapter 3 Signal Connection In addition users should define and control the A D signal sources including the A D channel A D gain and A D signal types Please refer to section 5 1 2 for A D signal source control After deciding the A D signal source the user must decide how to trigger the A D conversion and define control the trigger source The A D converter will start to convert the signal to a digital value when a trigger signal is rising Refer to the section 5 1 3 for the two trigger sources The A D data should be transferred into PC s memory for further using or processing The data can be read by I O instruction which is handled directly by software or transferred to memory via interrupt Please refer to section 5 1 4 to obtain ideas about the multi configurations for A D data transfer To process A D data programmer should know about the A D data format Refer to section 5 1 5 for details 5 1 2 A D Signal Source Control To control the A D signal source the signal type signal channel and signal range should be considered Signal Type amp Signal Conditioning The A D signal sources of PCI 9113 could be single ended SE only
41. ired calling this function can restart the FIFO half full interrupt transfer without re initial all the relative C C Software Library e 71 registers However if the interrupt operation was stopped by calling _9113_AD_FFHF_INT_Stop the program should use 9113 AD _FFHF_INT_ Start to restart the interrupt transfer function Syntax C C DOS U16 _9113 AD FFHF_INT_Restart U16 cardNo C C Windows 95 U16 W_9113_AD_FFHF_INT_Restart U16 cardNo Visual Basic Windows 95 W_9113 _AD_FFHF_INT_Restart ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized Return Code ERR_NoError 72 e C C Software Library 6 2 37 _9113 AD_INT_ Stop Description This function is used to stop the interrupt data transfer function After executing this function the internal A D trigger is disabled and the A D timer is stopped This function returns the number of data has been transferred no matter whether the A D interrupt data transfer is stopped by this function Syntax C C DOS U16 9113 AD INT_ Stop U16 cardNo U16 count C C Windows 95 U16 W_9113_AD_INT_Stop U16 cardNo U16 count Visual Basic Windows 95 W_9113_AD_INT_ Stop ByVal cardNo As Integer count As Integer As Integer Argument CardNo The card number of PCI 9113 card initialized count The number of A D data which has been transferred Return Code ERR_AD_I
42. libration Of PCIILLS eeh lt 1 gt Card Type PCI9113 lt 2 gt AD Polarity setting Bipolar lt 3 gt AD Input Range Gain 1 Bipolar 10V 10V gt gt gt lt Up Down gt Select Item lt PgUp PgDn gt Change Setting lt lt lt 8 1 3 Calibration This function guides you to calibrate the PCI 9113 The calibration program serves as a useful test of the PCI 9113 s A D and D A functions and can aid in troubleshooting if problems arise Note For an environment with frequently large changes of temperature and vibration a 3 months re calibration interval is recommended For laboratory conditions 6 months to 1 year is acceptable When you choose the calibration function from the main menu list a calibration items menu is displayed on the screen After you select one of the calibration items from the calibration items menu a calibration window shows The upper window shows the detailed procedures which have to be followed when you proceed the calibration The instructions will guide you to calibrate each item step by step The bottom window shows the layout of PCI 9113 In addition the proper Variable Resister VR will blink to indicate the related VR which needs to be adjusted for the current calibration step Software Utility e 81 K x PCI 9L13 Calibrations REF lt 1 gt A D Bipolar Gain 1 10V 10V adjusting lt 2 gt A D Unipolar Gain 1 OV 10V adjusting lt Esc gt Quit Select 1 to 2 or lt E
43. lution 12 bit Input channels 32 single ended Isolated programmable gain amplifier Isolation voltage rated continuous 1 500Vrms 2 500Vrms for one minute Isolation Mode Rejection 115dB Barrier Impedance 10MQ Il 10 pf Leakage Current 0 8 u Ams Input Range Software controlled and jumper selection Bipolar 10V 1V 0 1V or 5V 0 5V 0 05V Introduction e 3 Unipolar 0 10V 0 1V 0 0 1V 4 e Introduction e Throughput Gain 1 60K Gain 10 60K Gain 100 10K e Overvoltage Protection Continuous 35V maximum e Accuracy 0 015 of reading 1 bit e Input Impedance 10 MQ e Trigger Mode Software and Pacer e Data Transfer Program control Interrupt e FIFO Buffer Size 1024 samples General Specifications e Connector 37 pin D type connector e Operating Temperature 0 C 55 C e Storage Temperature 20 C 80 C e Humidity 5 95 non condensing e Power Consumption 5 V 960mA max e Dimension 6 77 172mm L x 4 13 105mm W Introduction e 5 2 1 Installation This chapter describes how to install the PCI 9113 At first the contents in the package and unpacking information that you should be careful are described What You Have In addition to this User s Manual the package includes the following items e PCI 9113 Enhanced Multi function Data Acquisition Card e Manual amp Software Utility CD If any of these items is missing or damaged contact the de
44. nd structure of the PCI 9113 this information is very important for the programmers who want to control the hardware by low level programming Chapter 5 Operation Theorem describes how to operate the PCI 9113 The A D and timer counter functions are introduced Also some programming concepts are specified Chapter 6 C C Software Library describes high level programming interface in C C language It helps programmer to control PCI 9113 in high level language style Chapter 7 Calibration amp Utility describes how to calibrate the Chapter 8 Software Utility describes how to use the utility programs included in the software CD How to Use This Manual e vii Introduction The PCI 9113 is an advanced data acquisition card based on the 32 bit PCI Bus architecture High performance designs and the state of the art technology make this card ideal for data logging and signal analysis applications in medical process control and etc The outstanding features of PCI 9113 is that isolated programmable amplifier is used between analog input lines and A D converter It can protect all of the A D converters your PC and peripherals from damage due to the high voltages on the analog inputs The block diagram of PCI 9113 is shown below DC DC CONVERT Isolation 12 Bit A D Converter ADS774 kA FIFO FIFO Analog Input Il Bootstrape PCI Bus EPROM Controller E Introduction e 1 1 1 Soft
45. o As Integer ByVal count As Byte As Integer Argument cardNo The card number of PCI 9113 card initialized Tmr_ch Port of 8254 Timer the value is within 0 to 2 Count The counter value Return Code ERR_NoError C C Software Library e 55 6 2 19 _9113_Get_8254 Description This function is used to read PCI 9113 8254 Programmable Timer The read value is stored in count Syntax C C DOS U16 _9113_Get_8254 U16 cardNo U16 ChannelNo U8 count C C Windows 95 U16 W_9113_Get_8254 U16 cardNo U16 ChannelNo U8 count Visual Basic Windows 95 W_9113_Get_8254 ByVal cardNo As Integer ByVal ChannelNo As Integer count As Byte As Integer Argument cardNo The card number of PCI 9113 card initialized Tmr_ch Port of 8254 Timer the value is within 0 to 2 count The value read from 8254 programmable timer only 8 LSBs are effective Return Code ERR_NoError 6 2 20 _9113_AD_Timer Description This function is used to set the Timer 1 and Timer 2 Timer 1 and Timer 2 are used as frequency dividers for generating constant A D sampling rate dedicatedly It is possible to stop the pacer trigger by setting any one of the dividers as 0 Since the A D conversion rate is limited due to the conversion time of the AD converter the highest sampling rate of the PCI 9113 can not be exceeded 100 KHz Thus the multiplication of the dividers must be larger than 20 56 e C C Software Library Synt
46. o ees eee 2 1 3 Applications nn eat 3 1 4 Specifications uuunnnnnnnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 3 Installationen 7 2 1 What You Have nnnueunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnn 7 22 Unpacking 4 83453 AAS ee OA AEA Re ti 8 2 3 Device Installation for Windows 95 8 2 4 PCI 9113 s Layout ET 11 2 5 Jumper Descriptions rien 12 2 5 1 Polarity Selection Jumper 12 2 5 2 Full Range Jumper 12 2 5 3 Possible AD Input Range Configurations 12 2 6 PCI Configuration uuuunnessnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 13 Signal Connections nenn 15 3 1 Connectors Pin Assignment uuunnunnnnnnnnnnnnnnnnnnnnnnnnnn 15 Contents ei 3 2 Analog Input Signal Connection 16 3 3 Daughter Board Connection gt 17 3 3 1 Connect with ACLD 9881 i 17 3 3 2 Connect with ACLD OI27 17 3 3 3 Connect with ACLD 9188 17 Registers Structure Format 19 4 1 WO Port Address uuussuunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 19 4 2 A D Data Registers oooocccoccccnnnnonancncnnncnnnnnnanancnrnrncnnnnnnaannnes 20 4 3 A D Channel Control Register 21 4 4 A D Input Signal Range Control Register 21 4 5 A D Status Readback Registe
47. od could be applied Because the CPU is only interrupted when the FIFO is half full thus reserved the CPU load Under this mode an interrupt signal is generated when FIFO becomes half full lt means there are 512 words data in the FIFO already The ISR can read a block of data every interrupt occurring This method is very convenient to read A D in size of a block 512 words and it is benefit for software programming Operation Theorem e 33 5 2 5 15 A D Data Format The range of A D data read from the FIFO port is from 0 to 4095 As the A D gain is 1 the A D signal range is roughly 10V 10V or 5V 5V bi polar and 0V 10V uni polar The relationship between the voltage and the value is shown in the following table i DENE co o um ooo The formula between the A D data and the analog value is Voltage AD_Data 20 4096 gain 10 gain Bipolar Voltage AD_Data 10 4096 gain Unipolar where the gain is 1 10 100 Interrupt Control 5 2 1 System Architecture The PCI 9113 s interrupt system is a powerful and flexible system that is suitable for A D data acquisition and many applications The system is a Dual Interrupt System The dual interrupt means the hardware can generate two interrupt request signals in the same time and the software can service these two request signals by ISR Note that the dual interrupt does not mean the 34 e Operation Theorem card occupie
48. on Return Code ERR_NoError 6 29 _9113 AD Set Range Description This function is used to set the A D range by means of writing data to the A D range control register The initial value of gain is 1 which is the default setting by PCI 9113 hardware The relationship between gain and input voltage ranges is specified by the following tables Input Range V Gain GainCode AD_B_10 Y AD_B_1V 100m V X 100 ADBO1V X 1000 AD_B_0 01 V C C Software Library e 47 Syntax C C DOS U16 _9113_AD_Set_ Range U16 cardNo U16 ADRange C C Windows 95 U16 W_9113_AD_ Ger Range U16 cardNo U16 ADRange Visual Basic Windows 95 W_9113_AD_Set_Range ByVal cardNo As Integer ByVal ADRange As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADRange The programmable gain of A D conversion the possible values are AD B 10 V AD BIM AD_B_0_1_V AD_B_0_01_V AD_B 5 V AD_B_0_5_V AD_B_0_05_V AD_B_0_005_V AD_U_10_V AD_U_1_V AD_U_O_1_V AD_U_0_01_V Return Code ERR_NoError 3 6 2 10 _9113_AD_Get_Range Description This function is used to get the A D range from the A D range control register The following table specifies the relationship between the gain and input voltage ranges 48 e C C Software Library ImputRange V oan GaimCode Syntax C C DOS U16 _9113_AD_Get_ Range U16 cardNo U16 ADRange
49. or disable interrupt of PCI 9113 board The utility programs are described in the following sections 9113util There are three functions provided by 9113util They are System Configuration Calibration and Functional Testing This utility software is designed as menu driven based windowing style Not only the text messages are shown for operating guidance but also has the graphic to indicate you how to set right hardware configuration 8 1 1 Running 9113util exe After finishing the DOS installation you can execute the utility by typing as follows C gt cd ADLINK DOS 9113 Util C gt 9113UTIL Software Utility e 79 The following diagram will be displayed on you screen The message at the bottom of each window guides you how to select item go to the next step and change the default settings ERERER PCTOOLTS VELLIEY Rees TO ERRE Copyright 1995 1996 ADLink Technology Inc All rights reserved Configuration Calibration Function testing QUITE gt gt gt Select function key Fl F3 or press lt Esc gt to quit lt lt lt 8 1 2 System Configuration This function guides you to configure the PCI 9113 card and set the right hardware configuration The configuration window shows the setting items that you have to set before using the PCI 9113 card The following diagram will be displayed on the screen as you choose the Configuration function from main menu 80 e Software Utility X XX Ca
50. or other devices Connectors Pin Assignment The PCI 9113 comes equipped one 37 pin D type connector CN1 The pin assignment of CNI is illustrated in the Figure 3 1 Signal Connections e 15 e CN 1 Analog Input Signals CNI Alo Alt Al2 Al3 Al4 AIS AI Al7 AIB Alg Al10 Al11 Al12 Al13 AI14 Al15 IGND IGND IGND IGND Al16 Al17 Al18 Al19 AI20 Al21 Al22 Al23 Al24 Al25 Al26 Al27 Al28 AISO ee ARI IGND Figure 3 1 Pin Assignment of CN1 Legend Aln Analog Input Channel n single ended IGND Isolated Signal Ground 3 2 Analog Input Signal Connection The PCI 9113 provides 32 single ended analog input signals which can be converted to digital value by the A D converter To avoid ground loops and get more accurate measurement of A D conversion it is quite important to understand the signal source type The single ended mode has only one input relative to ground and is suitable for connecting with the floating signal source The floating source means it does not have any connection to real ground Figure 3 2 shows the single ended connection Note that when more than two floating sources are connected the sources must be with common ground 16 e Signal Connections 3 3 Input Multipexer Aln Opertional Amplifier Floating Signal To A D Converter Source VI Y Figure 3 2 Floating sources and single ended connection Daughter Board Connection The PCI 9113 can be connect
51. r 22 4 6 A D Trigger Mode Control and Readback Register 22 4 7 Software Trigger Register 10000 gt 23 4 8 Interrupt Control and Readback Register 23 4 9 Hardware Interrupt Clear Register 24 4 10 A D Data and Channel Number Registers 24 4 11 High Level Programming ssrrrnnassnnnnnnnnnnnnnnnnnnnnnnn 25 4 12 Low Level Programming uss urn00000nnnnnnnnnnnnnnnnnnnnn 25 Operation Theorem ia 27 5 1 A D Conversion connmnccoccccnnncnnnnnanancncnnnnn cnn nc rre 27 5 1 1 A D Conversion Procedure iii 28 5 1 2 A D Signal Source Control i 28 5 1 3 A D Trigger Source Com 30 5 1 4 A D Data Transfer Modes 31 ii e Contents 5 1 5 A D Data Format 34 5 2 Interrupt CONtrol inn 34 5 2 1 System Architecture iii 34 5 2 2 IRQ Level Setting iii 35 5 2 3 Dual Interrupt Kyeienm iii 35 5 2 4 Interrupt Source Control 36 5 3 Timer Counter Operation iiiiiinnne 36 5 3 1 Iutrodnectton e e a E Aaen 37 5 3 2 Pacer Trigger Source iii 37 CIEFESOTWare LID nta dis 39 6 1 Installation 39 6 1 1 Installation i 39 6 2 C C Programming Library iinn 41 6 2 DataTypes sn ani alare ai 41 6 2 2
52. r s pacer output only The sources of INT1 and INT2 are selective by the Interrupt Control ISC Register Because of dual interrupt system for example you can use FIFO half full and external interrupt at the same time if your software ISR can distinguish these two events 5 2 4 Interrupt Source Control There are two bits to control the IRQ sources of INT1 and INT2 Refer to section 4 9 for the details of the two bits In addition the PCI controller itself can also control the use of the interrupt For manipulating the interrupt system more easily ADLink recommends you to use the function _9113_INT_Source_Control to control the IRQ source so that you can disable one or two of the IRQ sources Note that even you disable all the two IRQ sources without changing the initial condition of the PCI controller the PCI BIOS still assigns an IRQ level to the PCI card and it will occupy the PC resource It is not suggested to re design the initial condition of the PCI card by users own application software If users want to disable the IRQ level please use the ADLink s software utility to change the power on interrupt setting Timer Counter Operation The PCI 9113 has an interval timer counter 8254 on board Refer to section 3 5 for the signal connection and the configuration of the counters 36 Operation Theorem 5 3 1 Introduction One 8254 programmable timer counter chip is installed in PCI 9113 There are three counters in
53. re Library e 59 refer to section 5 1 4 for detailed description of A D data transfer modes Syntax C C DOS void _9113_INT_Source_Control U16 cardNo U16 int1Ctrl U16 int2Ctrl C C Windows 95 void W_9113_INT_Source_Control U16 cardNo U16 int1Ctrl U16 int2Ctrl Visual Basic Windows 95 W_9113_INT_Source_Control ByVal cardNo As Integer ByVal int1Ctrl As Integer ByVal int2Ctrl As Integer Argument cardNo The card number of PCI 9113 card initialized int1Ctrl The value to control INT1 the value can be set and the corresponding definition is the following int1Ctrl O INT1 disable 1 INT1 AD end of conversion EOC interrupt 2 INT1 FIFO half full int2Ctrl The value to control INT2 the value can be set and the corresponding definition is the following int2Ctrl 0 INT2 disable 1 INT2 pacer timer interrupt 2 INT2 external interrupt source Return Code None 6 2 25 _9113 CLR_IRQ Description This function is used to clear interrupt request that is requested by PCI 9113 If you use interrupt to transfer A D converted data you should use this function to clear interrupt 60 e C C Software Library request status otherwise the new coming interrupt will not be generated Syntax C C DOS void _9113_CLR_IRQ U16 cardNo C C Windows 95 void W_9113_CLR_IRQ U16 cardNo Visual Windows 95 W_9113_CLR_IRQ ByVal cardNo As Integer Argument None Return Code
54. ritten notice of any such defect Seller will at its option repair or replace the defective item under the terms of this warranty subject to the provisions and specific exclusions listed herein This warranty shall not apply to equipment that has been previously repaired or altered outside our plant in any way as to in the judgment of the manufacturer affect its reliability Nor will it apply if the equipment has been used in a manner exceeding its specifications or if the serial number has been removed Seller does not assume any liability for consequential damages as a result from our products uses and in any event our liability shall not exceed the original selling price of the equipment The equipment warranty shall constitute the sole and exclusive remedy of any Buyer of Seller equipment and the sole and exclusive liability of the Seller its successors or assigns in connection with equipment purchased and in lieu of all other warranties expressed implied or statutory including but not limited to any implied warranty of merchant ability or fitness and all other obligations or liabilities of seller its successors or assigns The equipment must be returned postage prepaid Package it securely and insure it You will be charged for parts and labor if you lack proof of date of purchase or if the warranty period is expired Product Warranty Service e 87
55. s A D Data Registers The PCI 9113 A D data is stored in the FIFO after conversion The data can be transferred to host memory by software only The register is 12 bits and can be read by 16 bits I O command 20 e Registers Structure Format 4 3 4 4 Address BASE 0 Attribute read only Data Format AD11 ADO Analog to digital data AD11 is the Most Significant Bit MSB of PCI 9113 ADO is the Least Significant Bit LSB A D Channel Control Register The PCI 9113 provides 32 single ended analog input channels The channel control register is used to set the A D channels to be converted The 5 LSBs of this register control the channel number Under non auto scanning mode the register sets the channel number for conversion Under auto scanning mode the register set the ending channel number Address BASE 0 Attribute write only Data Format CNn multiplexer channel number CN4 is MSB and CNO is LSB A D Input Signal Range Control Register The A D range register is used to adjust the analog input ranges This register directly controls the PGA programmable gain amplifier When a different gain value is set the analog input range will be changed to its corresponding value Address BASE 2 Registers Structure amp Format e 21 Attribute write only Data Format BASE 42 BASE 3 GC0 GC1 A D Range control setting The relationship between gain setting and its corresponding
56. s 0 1 2 3 0 1 2 3 until the ASCAN bit is cleared Signal Range The proper signal range is important for data acquisition The input signal may be saturated if the A D gain is too large Sometimes the resolution may be not enough if the signal is small The maximum A D signal range of PCI 9113 is 10 volts when the A D gain value is 1 The A D gain control register controls the maximum signal input range The signal gain is Operation Theorem e 29 programmable with 4 levels 1 10 100 1000 The signal range of the 32 channels will be identical all the time even if the channel number is scanning The available signal polarity on PCI 9113 are bi polar and uni polar configuration Note Gain value of 1000 is programmable however the accuracy is not guaranteed 5 1 3 A D Trigger Source Control The A D conversion is started by a trigger source and then the A D converter will start to convert the signal to a digital value In PCI 9113 two internal sources can be selected the software trigger or the timer pacer trigger The A D operation mode is controlled by A D trigger mode register Total two trigger sources are provided in the PCI 9113 The different trigger conditions are specified as follows Software trigger TSSEL 0 The trigger source is software controllable in this mode That is the A D conversion is starting when any value is written into the software trigger register This trigger mode is suitable for low speed A
57. s two IRQ levels The two interrupt request signals INT1 and INT2 come from digital signals or the timer counter output An interrupt source multiplexer MUX is used to select the IRQ sources Fig 5 2 1 shows the interrupt system INT1 PCI RO Controller Flip INT A INT2 Flops Clear IRQ AD EOC FIFO Half full Timer Pacer Fig 5 2 1 Dual Interrupt System of PCI 9113 5 2 2 IRQ Level Setting There is only one IRQ level used by this card although it is a dual interrupt system This card uses INT A interrupt request signal to PCI bus The motherboard circuits will transfer INT A to one of the AT bus IRQ levels The IRQ level is set by the PCI plug and play BIOS and saved in the PCI controller It is not necessary for users to set the IRQ level 5 2 3 Dual Interrupt System The PCI controller of PCI 9113 can receive two hardware IRQ sources However a PCI controller can generate only one IRQ to PCI bus the two IRQ sources should be distinguished by ISR of the application software if the two IRQ are all used The application software can use the _9113_Get_Irq_Status function to distinguish which interrupt is inserted After servicing an IRQ signal users should check if another IRQ is also asserted and then clear current IRQ to allow the next IRQ occurring Operation Theorem e 35 5 3 The two IRQs are named as INT1 and INT2 INT1 comes from AD EOC or the FIFO half full flag INT2 comes from time
58. sc gt to quit calibration If you select 1 the following figure displays on the screen Set JP1 as bi polar A D input Set JP2 to 20V full range Connect A D channel pin 1 of CN1 to GND pini of CN1 Trim VR3 until the AD value is jumping from 2647 to 2048 Input 18V to A D channel pini of CN1 Trim VR2 until the AD value is jumping from 4694 to 4695 Ho 4895 I I I JPign JP2am lt F18 gt Completed AD calibration otherwise repeat Step 2 to 5 A D Bipolar Gain 1 10V 10V adjusting 82 e Software Utility 8 1 4 Functional Testing This function is used to test the functions of PCI 9113 It includes Digital I O testing D A testing A D polling testing A D Interrupt Testing and A D FIFO Half Full Interrupt testing When you choose one of the testing functions from the functions menu a diagram is displayed on the screen The figures below are the function testing menu window and A D with polling Testing window XEXxX PCI 9113 Function Testing A D with Polling Test A D with Interrupt Test A D with FIFO Half Full Interrupt lt Esc gt Quit Select 1 to 3 or lt Esc gt to quit function testing Function Testing Menu Window Software Utility e 83 wear PCI 9113 Utility Rev 1 0 sexx Copyright c 1995 1997 ADLink Technology Inc All rights reserved Hitt AD Data Volt H AD Data Volt 1372 3 2991 16 1368 3 3187 8 1 1373 3 2943 17 1373 3 2943
59. this function it is necessary to check the status of the operation by using the function 9113_AD_INT_Status The function can perform on single A D channel autoscan is disabled or multiple A D channels autoscan is enabled with a fixed analog input range Note The interrupt mode provided in this function is internal timer source therefore you must specify c1 amp c2 as calling this function In addition this function in MS DOS Borland C library supports just one PCI 9113 card and provides only one ISR interrupt service routine for processing the interrupt events If multi 9113 cards and multi isr is necessary users can modify this library for your own purpose Syntax C C DOS U16 _9113 AD INT_ Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 count U32 ad butter U16 c1 U16 c2 66 e C C Software Library C C Windows 95 U16 W_9113_AD_INT_ Start U16 cardNo U16 auto_scan U16 ad_ch_no U16 ad_gain U16 count U32 ad butter U16 c1 U16 c2 Visual Basic Windows 95 W_9113_AD_INT_ Start ByVal cardNo As Integer ByVal auto_scan As Integer ByVal ad_ch_no As Integer ByVal ad_gain As Integer ByVal count As Integer ad_buffer As Long ByVal c1 As Integer ByVal c2 As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized auto_scan 0 autoscan is disabled 1 autoscan is enabled ad_ch_no A D channel number If the auto_scan is set as enabled
60. to set A D trigger mode Please refer to section 5 1 3 for the detailed description of A D trigger modes Syntax C C DOS U16 _9113_ AD Gei Mode U16 cardNo U16 ADMode C C Windows 95 U16 W_9113_AD_Set_ Mode U16 cardNo U16 ADMode Visual Basic Windows 95 W_9113 AD Get Mode ByVal cardNo As Integer ByVal ADMode As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADMode The value of A D trigger mode The mode could be one or a combination of the following modes A 9113 AD FIFO_ENABLE A_9113_AD_FIFO_DISABLE A_9113_AD_TimerTrig A_9113_AD_SoftTrig A_9113 AD AutoScan Return Code ERR_NoError 6 2 13 _9113 AD Get Mode Description This function is used to get A D mode from A D trigger mode control register Please refer to section 5 1 3 for the detailed description of A D trigger modes Syntax C C Software Library e 51 C C DOS U16 _9113 AD Ger Mode U16 cardNo U16 ADMode C C Windows 95 U16 W_9113_AD_Get_Mode U16 cardNo U16 ADMode Visual Basic Windows 95 W_9113_AD_Get_Mode ByVal cardNo As Integer ADMode As Integer As Integer Argument cardNo The card number of PCI 9113 card initialized ADMode The value of A D trigger mode The returned value could be one or a combination of the following modes A_9113_AD_FIFO_ENABLE A_9113_AD_FIFO_DISABLE A_9113_AD_TimerTrig A_9113_AD_SoftTrig A_9113 AD AutoScan Return Code E
61. ware Supporting There are several software options to help you to implement your applications quickly and easily Custom Program For the customers writing their own programs the PCI 9113 is supported by a comprehensive set of drivers and programming tools These software drivers support multiple platforms e MS DOS Borland C programming library e Dynamic linking library DLL for Win 95 e PCIS DASK NT Advanced data acquisition software kit for Windows NT The MS DOS Borland C library and DLL for Win 95 are included in ADLink s Manual 8 Software Utility CD in this package 1 2 Features The PCI 9113 PCI Bus Advanced Data Acquisition Card provides the following advanced features e 32 bit PCI Bus Plug and Play e 32 CH 12 bit single ended analog inputs e Isolation 1500Vrms continuous 2500Vrms for one minute e Programmable gain of 1 10 100 e Sampling rate up to 60KHz e Trigger mode software trigger timer pacer external trigger e On board A D 1K WORDS FIFO memory e Auto scanning channel selection 2 e Introduction DB 37 connector pin assignment is compatible with ACL 8113 Input impedance 10M Q Voltage protection 70 voltage peak to peak 1 3 Applications Industrial process control Transducer thermocouple RTD Power monitor Medical instrument Biomedical measurement Ground loop elimination 1 4 Specifications Analog Input A D Converter B B ADS774 successive approximation type Reso
Download Pdf Manuals
Related Search
Related Contents
HT496 User Manual - Pdfstream.manualsonline.com TYPHOON MP3 DIGITAL JUKEBOX CJ-series PROFINET I/O Controller Unit Operation Manual for 4410 Setup Guide VARIO AI 8/SF - pma Samsung ST 66 Forerunner 410 User Manual A T S – 1 1 5 USER`S MANUAL Combinatore telefonico GSM remotizzabile da barra Din mod Copyright © All rights reserved.
Failed to retrieve file