Home
NuDAQ PCI-9114(A) DG/HG
Contents
1. Argument I 6 far ad_data 16 ad data nteger ad data As cardNo the card number of PCI 9114 A card initialized ad data the 16bits A D converted value The bit 0 of ADData is the LSB of A D converted data and the bit 15 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 Return Code ERR_NoError ERR AD AguireTimeOut 70 e C C Library 5 35 9114 AD Aquire MUX Description This function is used to poll the A D converted data It reads the A D data when the data is ready Syntax C C DOS U16 9114 AD Aquire MUX U16 cardNo U32 far ad_data C C Windows 95 U16 W 9114 AD Aquire MUX U16 cardNo U32 far ad data Visual Basic Windows 95 W 9114 AD Aquire MUX ByVal cardNo As Integer ad data As Long As Integer Argument cardNo the card number of PCI 9114 A card initialized ad_data the 32bits A D converted value The resolution of A D conversion data is 16 bit The unsigned integer data format of ADData is as follows bit 0 15 A D converted data bit 16 20 converted channel no Return Code ERR_NoError ERR FIFO Half NotReady C C Library e 71 5 36 9114 AD INT Start Description This function is used to initiate and startup the AD EOC end of conversion interrupt This function can perform an A D conversion N times using interrupt data transfer and pacer trigger It takes place
2. to READILY e M2 M1 amp MO Select Operating Mode Bit 3 Bit 2 amp Bit 1 Appendix A 8254 Programmable Interval Timer e 91 e BCD Select Binary BCD Counting Bit 0 ie 2 sd 16 BITS BINARY COUNTER BINARY CODED DECIMAL BCD COUNTER 4 DIGITAL The count of the binary counter is from 0 up to 65 535 and the Note count of the BCD counter is from 0 up to 9 999 Mode Definitions The 8254 support six operating modes that can be selected from They are Mode 0 Interrupt on Terminal Count Mode 1 Programmable One Shot Mode 2 Rate Generator Mode 3 Square Wave Rate Generator Mode 4 Software Triggered Strobe Mode 5 Hardware Triggered Strobe Details of these modes can be found in Intel s data sheet available at the following website http support intel com support controllers peripheral 231164 htm 92 e Appendix b 8254 Programmable Interval Timer Appendix B Signal Wiring Diagrams Analog Input Single Ended Input Alo 15 Differential Input A GND Channel 0 for CJC Multiplexer Multiplexer Appendix B Signal Wiring Diagram e 93 Digital Input VCC DC Up to 24V IDI nt 2 4KQ EIGND VCC DC Up to 24V IDI 94 e Appendix B Signal Wiring Diagram Digital Output Darlington Source Driver Darlington Source Driver Appendix B Signal Wiring Diagram e 95 Warranty Policy Thank you for choosing ADLINK To understand your ri
3. AD B 10 V ADB 1 V ADB 0 1 V ADB 0 01 V AD B 5 V AD B 2 5 V AD B 1 25 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 bit 0 15 A D converted data bit 16 20 converted channel no cl the frequency divider of Timer l c2 the frequency divider of Timer 2 74 e C C Library Return Code ERR_InvalidADChannel ERR_AD_InvalidGain ERR_InvalidTimerValue ERR_NoError 5 38 9114 AD INT Status Description This function is used to check the status of the interrupt operation The 9114 AD INT Start function is executed in the background Syntax C C DOS U16 9114 AD INT Status U16 cardNo U16 status U16 count C C Windows 95 Ul6 W 9114 AD INT Status U16 cardNo U16 status U16 count Visual Basic Windows 95 W 9114 AD INT Status ByVal cardNo As Integer status As Integer count As Integer As Integer Argument cardNo the card number of PCI 9114 A card initialized status the status of the INT data transfer the possible values are AD INT RUN AD INT STOP count the A D conversion count number performed currently Return Code ERR_NoError C C Library e 75 5 39 9114 AD FFHF INT Status Description T
4. Argument cardNo the card number of PCI 9114 A card initialized Return Code ERR_NoError C C Library e 77 5 41 9114 AD INT Stop Description This function is used to stop the interrupt data transfer function After executing this function the internal AD trigger is disabled and the AD timer is stopped This function returns the number of data that has been transferred Syntax C C DOS ule 9114 AD INT Stop U16 cardNo U16 count C C Windows 95 U16 W 9114 AD INT Stop U16 cardNo U16 count Visual Basic Windows 95 W 9114 AD INT Stop ByVal cardNo As Integer count As Integer As Integer Argument CardNo the card number of PCI 9114 A card initialized count the number of A D data which has been transferred Return Code ERR AD INTNotSet ERR NOError 78 e C C Library Calibration amp Utilities In data acquisition processes how to calibrate your measurement devices to maintain its accuracy is very important Users can calibrate the analog input and output channels under the users operating environment to maximize its accuracy This chapter will guide you though how to calibrate the PCI 9114 A The software CD provides two utility programs the 9114util exe and l eeprom The 91 14util exe utility provides three basic functions for System Configuration Calibration and Functional Testing while the _eeprom utility is used to enable or disable the interrupts of the PCI 9114 A board
5. lt l gt Card Type PCI9114HG 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 Calibration amp Utilities e 83 Calibration This function is used to guide you through on how to calibrate the PCI 9114 The calibration program serves as a useful test for the PCI 9114 s A D and D A functions and can aid in troubleshooting if problems arise Note For an environment with frequently large changes in 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 sub menu is displayed on the screen After you select one of the calibration items from the calibration sub menu a calibration window appears The upper window outlines procedures to be followed when calibrating the board The instructions guide you through the calibration process step by step KEREKEK PCT 9114 Calibration ERKKA lt 1 gt PGA Offset adjustment lt 2 gt A D Bipolar adjustment lt 3 gt Cold junction sensor calibration lt Esc gt Quit Select 1 to 3 or lt Esc gt to quit calibration 84 e Calibration amp Utilities Functional Testing This function is used to test the functions of the PCI 9114 It includes the Digital VO testing D A testing A D pol
6. 5 95 non condensing Power Consumption v 5V 600 mA typical v 12 V 100 mA typical Dimension v Length 7 88 200 mm for PCI 9114 Rev B1 6 89 175 mm for PCI 9114 Rev C2 and PCI 9114A y Width 4 18 106 mm W 4 e Introduction 14 Supporting Software ADLINK provides versatile software drivers and packages for users different approach to building a system ADLINK not only provides programming libraries such as DLL for most Windows based systems but also provide drivers for other software packages such as LabVIEW HP VEE DASYLab InTouch InControl ISaGRAF and so on All software options are included in the ADLINK CD Non free software drivers are protected with licensing codes Without the software code you can install and run the demo version for two hours for trial demonstration purposes Please contact ADLINK dealers to purchase the formal license 1 4 1 Programming Library For customers who are writing their own programs we provide function libraries for many different operating systems including e DOS Library Borland C C and Microsoft C Functional descriptions are included in this user s guide e Windows 95 DLL For VB VC Delphi and BC5 Functional descriptions are included in this user s guide e PCIS DASK Include device drivers and DLL for Windows 98 Windows NT and Windows 2000 DLL is binary compatible across Windows 98 Windows NT and Windows 2000 That means all
7. ByVal cardNo As Integer ADData As Integer As Integer Argument cardNo The card number of initialized PCI 9114 A card ADData A D converted value Bit 0 is the LSB of A D converted data and bit 15 is the MSB of A D converted data Return Code ERR_NoError C C Library e 45 5 8 9114 AD Read Data Repeat Description This function is used to read AD converted data from the data register n times continuously Syntax C C DOS U16 9114 AD Read Data Repeat U16 cardNo 116 far ADData U16 n C C Windows 95 U16 W 9114 AD Read Data Repeat U16 cardNo 116 ADData U16 n Visual Basic Windows 95 W 9114 AD Read Data Repeat ByVal cardNo As Integer ADData As Integer ByVal n As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADData A D converted value Bit 0 is the LSB of A D converted data and bit 15 is the MSB of A D converted data n The number of times to read the AD conversion data Return Code ERR_NoError 46 e C C Library 5 9 9114 AD Read Data MUX Description This function is used to read data from the A D Data Registers The A D Data and Channel Number Register is a 32 bit register Refer to section 4 2 for descriptions of the A D Data and Channel Number Register Syntax C C DOS U16 9114 AD Read Data MUX U16 cardNo U32 far ADData C C Windows 95 U16 W 9114 AD Read Data MUX U16 cardNo U32 ADData Visual Basic Wind
8. 48 9114 AD Set Channel cn ee oe 49 9114 AD Set RANGE ia ERGE SE e Gees EE sae 50 9114 AD Get Range ase Ee EERS EE OER ROES Se EE Ke ee ee DEE 51 9114 AD Get StatuS s uses Ge De ER SR ES GESE Se WE eN la cent 52 9114 AD Set Mode see ee ed se RA Ge RR ee RR ee ee 53 9114 AD Get Mod use RE dinate te DEEG RE ere 54 9114 INT Set ROG iis RE gee EE Se EE SE ei Ng ee SE ese 55 291142 AD Get REQ cist ones eth EE ge ee ODE Ee EE ee DOE Se ge 56 AE AE de le EE ER OE EK 57 9114 AD Soft Trigger ees ee ee ek ee ee Re ee ee ke ee 58 9114 Set _8254 oe see Re Ge ER Re Ge AR Re Ge AA AR ee Ge AA AR Re ee ee AR 58 29114 Get 8254 REGSE E ER NE Reed Ee Reg Ee RE iie 59 59114 ADS TIMOR EO ER N N EE N 60 9114 Counter Start ER EE GE Doe Ve GESE Ee NE eke Oe Eg Ee 61 91 14 Counter Read i s EE EERS ERGE EE see ES etae Ee eek SEE Gee 62 9114 Counter Stops REKE GEES Ke ae a Ee GE Re Ee ee De SE 63 9114 INT Source Control see ee ee ee ee Ee ee ee ee 64 891 74 GLR IRQI RA ER ER DE ON 65 91 94 CLR RQZ cess EA RE OE eee fae 65 9114 Get IRQ Channel EE KEER EE EE De Ne SEGE GE EE EE EN GR ENE 66 9114 Get IRO Status ees ee aaiae ee ee Ke ee ee 67 9114 AD FFHF Polling eise ee ese esse ee ee ee se ee ee ee ee ee ee ee AR ee 68 9114 AD FFHF Polling MUD ees ese ede se ee ee ee ee ee ee ke ee se ee ee ke ee 69 9114 AD AdUI ies GE ESE GREG Ge vee EG oge SEE GODE Re Ee 70 9114 AD Aguire MUD sesse ee es se ee Re Ge RR ee Re ee e
9. AE EE N N EE N 9 23 PCB Layout of PCI 9114 A ee ee ee ee ee ee Re ee ee ee ee ee Re ee ee 10 2 3 1 PCI 9114 Rev BT ee ee Ee Ee ee Ee Ee Re ee ee ee ee ee 10 2 3 2 PCI 9114 Rev C2 and PCI 9114A ReV A2 ees ee se ee 10 24 Hardware InstallatiON iese ee ee ee ee ee ee ee ee Ee ee ee Re RR ee ee ee ee ee ee ee ee 11 2 4 1 PCI configuralON iii ee GR Re GR RR ee ee ee ee ee ee ee 11 2 4 2 PCI slot selectiOn sesse ere ee ee RA EE Ge Ee e Ee ee ee Re Ee GE ee ee 11 2 4 3 Installation Procedures ees ee se ee ee ee RE Ee ee ee ee Ee Ee 11 2 5 Device Installation for Windows SySteMS ese ee ee ek ee ee 12 2 6 Connector Pin Assignments ies se ee ee ee ee ee ee ee ke ee ee 12 2 6 1 Pin Assignment of CN1 wou ie ee ee ee Re ee ee ee 12 2 6 2 Pin Assignments for CN2 amp CN3 ee ee ee ee ee 13 2 6 3 Pin Assignment for CN4 iii ee ee GR RR ee ee Ge ee ee 14 2 7 Jumper Descriptions iii se ee ee AR AR ee AA ee ee ee Re Re ee ee 15 2 7 1 Analog Input Signal Type Selection JP1 a se 15 2 7 2 Cold Junction Sensor Selection JP2 oo ee ee ee 15 2 7 3 Counter 0 Function Selection JP4 iese ee ee 16 2 8 Termination Board Connection iese ee ee ee ee ee ee ee Re RR Re ee ee 17 Table of Contents ei Chapter 3 Registers see Re ER EE RR RR RE EE ER ER RE Ee RR RE Re Ge RR RE Ee ER RR RR Ee nunnan ena 18 3 1 PCLPnP Registers isidin ietininkai 18 3 2 VOAddress Map EE EE KEER see Ee
10. Figure 4 CN1 for Single Ended Input CN1 for Differential Input mode Figure 4 Pin Assignment of CN1 Legend Aln Analog Input Channel n for single ended mode n 0 15 AIxH Analog Input Channel x for differential positive input x 0 31 AixL Analog Input Channel x for differential negative input x 0 31 AGND Ground plane for analog signals 12V 12V power supply output with fuse protection 12V 12V power supply output with fuse protection GND Ground Plane 12 e Installation 2 6 2 Pin Assignments for CN2 amp CN3 CN2 and CN3 are used for Isolated Digital input and output signals respectively The pin assignment for CN2 and CN3 is illustrated in Figure 5 CN3 for Isolation Digital Output Vpower 19 Vpower EOGND 17__EOGND DO 15 15 DO 7 DO 14 13 DO 6 DO 13 pos DO_12 9 DO 4 DO 11 7 DO 3 DO 10 5 DO_2 DO_9 3 DO 1 DO 8 1 DO 0 Figure 5 Legend Din EICOMx Don Isolated Digital Output Channel n EOGND Isolated Output Signal Ground Vpower Isolated Output Driver s Power Supply Isolated Digital Input Channel n n 0 15 Common plane for Isolated Input group x x 1 4 Pin Assignments of CN2 amp CN3 CN2 for Isolation Digital Input EICOM4 EICOM3 DI 15 DI 14 DI 13 DI 12 DI 1 DI 10 DIL 9 DI 8 EICOM2 EICOM1 DI 7 DI 6 DI 5 DI 4 DI 3 DI 2 DIL 1 DIO Installation e 13 2 6 3 Pin Ass
11. Signal Range The proper setting for the signal range is important in data acquisition e g the input signal may be saturated if the A D gain is too large or the resolution is to small if the signal is at very low level The maximum A D signal range for the PCI 9114 A is 10 volts when the programmable gain value is 1 The A D gain control register controls the maximum signal input range The signal gain is programmable with 4 different levels 1 10 100 1000 or 1 2 4 8 The signal range for the 32 channels is the same for all channels The available signal polarity on the PCI 9114 A is bi polar only however the 16 bit high resolution PCI 9114 A can cover all 12 bit uni polar applications 4 1 3 A D Trigger Source Control An AD conversion is initiated by a trigger source the AD converter will then start to convert analog signals to a digital value With the PCI 9114 A two internal sources can be selected a software trigger or the timer pacer trigger The A D operation mode is controlled by the A D trigger mode register In total there are two trigger sources provided by the PCI 9114 A Different trigger conditions are specified below Software trigger TSSEL 0 The trigger source is software controlled in this mode That is the A D conversion is initiated when any value is written into the software trigger register This trigger mode is suitable for low speed A D conversion Under this mode the timing of the A D conversion is
12. The utility programs are described in the following sections 6 1 Calibration 6 1 1 What do you need Before calibrating your PCI 9114 card you need to prepare the following equipment s and materials for the calibration process 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 A5 1 2 digit multi meter a 6 1 2 is recommended e An adjustable voltage calibrator or a very stable and noise free DC voltage generator Calibration amp Utilities e 79 6 1 2 VR Assignment There are five variable resistors VR on the PCI 9114 A board that allow you to make adjustments on the A D channels The function of each VR is specified in Table 3 AID offset adjustment A D full scale adjustment Programmable Gain Amplifier input offset adjustment Cold junction sensor offset adjustment Programmable Gain Amplifier output offset adjustment Only available in PCI 9114A and PCI 9114 Rev C2 or later Table 3 Function of the VRs VRS 6 1 3 A D Adjustment Analog input offset calibration For PCI 9114 Rev B2 Only Set AD input signal type to single ended default input Short AD Channel 0 CN1 pin 19 to ground CN1 pin 11 or 29 1 2 3 Trim VR1 post gain offset until the reading approaches to zero 4 Trim VR3 pre gain offset until the reading approaches to zero 5 Repeat steps 3 and 4 until both post gain offset and pr
13. and later 1 Pre Trigger ON 0 Pre Trigger OFF EITS External Internal Trigger Source Only available on PCI 9114A or PCI 9114 Rev C2 and later 1 External Trigger Source 0 Internal Trigger Source TSSEL Timer Pacer Software Trigger 1 Timer Pacer Trigger 0 Software Trigger ASCAN Auto Scan Control 1 Auto Scan ON 0 Auto Scan OFF The modes listed below applies to the PCI 9114 A card only Bit 3 Bit 2 Bit 1 Bit 0 Mode Description ts st Asean P Software Software Trigger EA oor sae 22 e Registers 3 8 Interrupt Control and Read back Register The PCI 9114 A has a dual interrupt system thus two interrupt sources can be generated and be checked by the software This register is used to select the interrupt sources Address BASE 08h Attribute write and read Data Format C e elal eol e a EERS dIE rd ISCO ISC1 FFEN MUX IROO signal select 0 IRQ on the ending of the AD conversion EOC 1 IRQ when FIFO is half full IRQ1 signal select Timer Interrupt only 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 This is a read only bit and it indicates the setting of JP1 1 Single ended 0 Differential input Registers e 23 3 9 Software Trigger Register To generate a trigger pulse to the PCI 9114 A to initiate a A D conversion write any data to this register this will trigge
14. applications developed with PCIS DASK are compatible across Windows 98 Windows NT and Windows 2000 The developing environment can be VB VC Delphi BC5 or any Windows programming language that allows calls to a DLL The user s guide and function reference manual of PCIS DASK are in the CD Please refer the PDF manual files under Manual_PDF Software PCIS DASK e PCIS DASK X Include device drivers and shared libraries for Linux The developing environment can be Gnu C C or any programming language that allows linking to a shared library The users guide and function reference manual of PCIS DASK X are in the CD Please refer the PDF manual files under Manual_PDF Software PCIS DASK X The above software drivers are shipped with the board Please refer to the Software Installation Guide for installation procedures Introduction e 5 1 4 2 PCIS LVIEW LabVIEW Driver PCIS LVIEW contains the Vis which is used to interface with NI s LabVIEW software package The PCIS LVIEW supports Windows 95 98 NT 2000 The LabVIEW drivers is shipped free with the board You can install and use them without a license For more information about PCIS LVIEW please refer to the user s guide in the CD Manual_PDF Software PCIS LVIEW 1 4 3 PCIS VEE HP VEE Driver The PCIS VEE includes user objects which are used to interface with HP s VEE software package PCIS VEE supports Windows 95 98 NT The HP VEE drivers are shipped
15. by step Calibration amp Utilities e 87 BEKKER PCT OLIA A Calibration REK lt 1 gt PGA Offset adjustment lt 2 gt A D Bipolar adjustment lt 3 gt Cold junction sensor calibration lt Esc gt Quit Select 1 to 3 or lt Esc gt to quit calibration Functional Testing This function is used to test the functions of the PCI 9114 A It includes the Digital VO 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 function menu the screen below is displayed x k K K PCI 9114 A Function Testing lt l gt A D with Polling Test lt 2 gt A D with Interrupt Test lt 3 gt A D with FIFO Half Full Interrupt lt 4 gt DI DO Test A Esc gt Quit Select 1 to 4 or Esc to quit function testing 88 e Calibration amp Utilities 6 2 3 EEPROM This file is used to enable or disable the interrupts of the PCI 9114 A board This software is a text driven program By default the interrupts on the PCI 9114 A board is on users wishing not to use the interrupt function can use this utility to turn off the interrupts of the PCI 9114 A board After finishing the DOS installation you can execute the utility by typing in the following command C gt cd ADLINK DOS 9111 UTIL C gt eeprom The program will prompt for an input of the card type enter 9114 A Af
16. complex signaling conditions before an A D conversion is performed Connect with ACLD 9188 The ACLD 9188 is a general purpose terminal board It is equipped with a 37 pin D sub connector The ACLD 9138 contains LED indicators to indicate the ON OFF status of the computer system Connect with ACLD 9178 ACLD 9178 is a general purposed terminal board compatible with all cards which comes equipped with two 20 pin header connectors Connect with DIN 37D DIN 37D is a general purposed 37 pin screw terminal with a DIN socket This provides for easy installation The DIN 37D is shipped with a 37 pin cable Installation e 17 Registers The descriptions of the registers and structure of the Cl 9114 A are outlined in this chapter The information in this chapter will assist programmers wishing to handle the card with low level programs Therefore the low level programming syntax is introduced This information can help assist in programming the card in the shortest possible time 3 1 PCI PnP Registers The PCI 9114 A functions as a 32 bit PCI target device to any master on the PCI bus It supports burst transfer to memory space by using 32 bit data All data read and write is base on 32 bit data There are three types of registers on the PCI 9114 A The PCI Configuration Registers PCR Local Configuration Registers LCR and the 9111 registers The PCR is compliant to the PCl bus specifications It is initialized and controlled by
17. down from the initial counter value N and counts the number of A D conversion trigger signals The A D trigger will be disabled automatically when the counter value reaches zero The value of N can be 1 to 65535 and the last A D data is sampled after the pre trigger signal The software must continuously read data out from the FIFO buffer to prevent the FIFO from becoming full The software should also poll the counter value to check if the A D sampling has stopped 32 e Operation Theory To set up Pre Trigger mode the following steps should be followed 1 2 Set Pre Trigger Mode Off PTRG OFF Set 8254 Counter 0 value N N 1 65535 Note that the larger the counter value the more host memory buffer is needed Set up A D data acquire including A D range channel scan data transfer mode and so on Set Pre Trigger Mode On PTRG ON Read A D data into host PC memory using appropriate data transfer method otherwise the FIFO can become full At the same time wait for the pre trigger signal and check if the 8254 Counter 0 value is at zero If the A D is stopped set the Pre Trigger Mode off and process the data which is stored in the host memory Go to Step 1 to set the Pre Trigger mode and wait the next pre trigger event The Pre Trigger timing is shown as following Set Pre Trigger External Pre Trigger mode Signal is Inserted Counter 0 counting from N down to 0 Acquire Infinite A D data before Acquire N A
18. fully controlled by the software However it is difficult to control a fixed A D conversion rate unless another timer interrupt service routine is used to generate a fixed rate trigger Refer to the interrupt control section section 4 2 for fixed rate timer interrupt operation Timer Pacer Trigger TSSEL 1 An on board 8254 timer counter chip is available and is able to provide a trigger source for an A D conversion at a fixed rate The 2 counters of the 8254 chip are cascaded together to generate a trigger pulse at precise intervals Refer to section 4 3 for information about the 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 transfer data It s recommended that this mode be used if your application needs a fixed and accurate A D sampling rate Operation Theory e 29 External Trigger EITS 1 TPST don t care Through pin 4 of CN4 ExtTrig an A D conversion can also be triggered by an external signal An A D conversion starts when ExtTrig changes from high to low The conversion rate of this mode tends to be more flexible than the previous two modes because external devices often are more flexible in functions An external trigger can be combined with FIFO half interrupt EOC interrupt or program FIFO polling for data tranfers 4 1 4 A D Data Transfer Modes The A D data are
19. manual describes the programming functions and the operation theory of the PCI 9114 A 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 9114 A The layout of the PCI 9114 A is shown and the jumper settings for analog input channel configurations are specified The connector pin assignments and termination board connections are described Chapter 3 Registers describes the details of the register structures of the PCI 9114 A this information can be useful for programmers wanting to control the hardware using low level programming Chapter 4 Operation Theory describes how to operate the PCI 9114 A The A D and timer counter functions are introduced as well as some programming concepts are specified in this chapter Chapter 5 C C Library describes high level programming interface in C C language It will aid programmers with controlling the PCI 9114 A using high level programming language Chapter 6 Calibration describes how to calibrate the PCI 9114 A for accurate measurements vi e Outline of Chapters Introduction The PCI 9114 A is an advanced data acquisition card based on the 32 bit PCI Bus architecture High performance design with state of the art technology makes this card ideal for data logging and signal analysis applications
20. or above Visual C C 4 0 or above Borland C 5 0 or above Borland Delphi 2 x 32 bit or above or any Windows programming language that allows calls to a DLL 5 1 Libraries Installation Refer to the Software Installation Guide for details about how to install the software libraries for DOS Windows 95 DLL or PCIS DASK for Windows 98 NT 2000 The device drivers and DLL functions for Windows 98 NT 2000 are included in the PCIS DASK Refer to the PCIS DASK user s guide and function reference which is included in the ADLINK CD for detail programming information C C Library e 41 5 2 Programming Guide 5 2 1 Naming Convention The functions of the NUDAQ PCI or NulPC CompactPCI card software drivers uses ful names to represent the functions real meaning The naming convention rules are Under a DOS Environment _ hardware_model faction name e g 9114 Initial All functions in the PCI 9114 A driver begin with 9114 as fhardware model and can be used by the PCI 9114 A DG and PCI 9114 A HG models In order to recognize the difference between a DOS library and a Windows 95 library a capital W is placed at the start of each function name for Windows 95 DLL drivers e g W 9114 Initial 5 2 2 Data Types We have defined some data type in Pci_9114 h DOS and Acl_pci h Windows 95 These data types are used by the NuDAQ Card s library We suggest you use these data types in your application programs The follo
21. 3 Digital output circuits The EOGND pin is used via a fly wheel diode this will protect the driver if an inductive load from such as a relay motor or solenoid is present If the loading is resistive such as from resistors or LEDs the connection to the fly wheel diode is not necessary 38 e Operation Theory The first step in connecting the output to an external device is to distinguish the type of load For example if the load is a LED or a resistor connection diagram below can be used From digital circuits m Vpower gt DOn A gt EOGND Power Load Figure 14 Opto isolated output circuit for resistive loads If the load is inductive such as from a relay the diagram below can be used The power supply must be from an external source in order to form a fly wheel current loop From digital circuits d S Vpower DO_n A i gt EOGND mm Power Load Figure 15 Opto isolated output circuit for inductive loads Operation Theory e 39 4 5 Timer Counter Operation 4 5 1 Introduction One 8254 programmable timer counter chip is integrated into the PCI 9114 A The 8254 chip supports 3 counters and can operate in 6 different operation modes for each counter The block diagram of the timer counter system is shown in the diagram below AD Trigger Signal oj f CN3 Pin 1 8254 Chip c i CN4
22. 6 ADRange C C Windows 95 Ul6 W 9114 AD Set Range U16 cardNo U16 ADRange Visual Basic Windows 95 W 9114 AD Set Range ByVal cardNo As Integer ByVal ADRange As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADRange The programmable gain of A D conversion the possible values are AD B 10 V AD B 1 V ADB 0 1 V AD B 0 01 V AD B 5 V AD B 2 5 V AD B 1 25 V Return Code ERR NOError 50 e C C Library 5 13 9114 AD Get Range Description This function is used to obtain the A D range from the AD range control register Refer to the previous section for possible ranges Syntax C C DOS ule 9114 AD Get Range U16 cardNo U16 ADRange C C Windows 95 Ul6 W 9114 AD Get Range U16 cardNo U16 ADRange Visual Basic Windows 95 W 9114 AD Get Range ByVal cardNo As Integer ADRange As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADRange The programmable gain of A D conversion the possible values are AD B 10 V AD B 1 V ADB 0 1 V AD B 0 01 V AD B 5 V AD B 2 5 V AD B 1 25 V Return Code ERR NOError C C Library e 51 5 14 9114 AD Get Status Description This function is used to obtain the AD FIFO status from the status read back register Syntax C C DOS ule 9114 AD Get Status U16 cardNo U16 ADStatus C C Windows 95 Ul6 W 9114 AD Get Status U16 cardNo U16 ADStatus Vi
23. CI 9114 Rev B1 2 3 2 PCI 9114 Rev C2 and PCI 9114A Rev A2 lt er eal Gl EEEE EE sa PLSLS S HFIFO FIFO DER ee ss D n EJ g E aE EE R FIFO 254 Ed Ge ed cna TP1 CPLD Pal se O o ny Go PA CORA ld JPL Boot Rom Crystal 7 daa 8 PGA gC Je CNI m TR Ed s CN3 MUS Ds PCI cic ld onverter a mm A Controller 3 2 MUX is rI DCDC Converter CN4 Figure 3 PCB Layout of PCI 9114 Rev C2 and PCI 9114A Rev A2 10 e Installation 2 4 Hardware Installation 2 4 1 PCI configuration The PCI cards or CompactPCI cards are equipped with plug and play PCI controllers it can request base addresses and interrupts according to PCI standards The system BIOS will install the system resources based on the PCI cards configuration registers and system parameters which are set by the system BIOS Interrupt assignment and memory usage I O port locations of the PCI cards can only be assigned by system BIOS These system resource assignments are done on a board by board basis It is not suggested to assign the system resource by any other methods 2 4 2 PCI slot
24. D data after Pre Trigger Signal is inserted Pre trigger Signal is inserted If the application acquires data after the pre trigger signal only the last N data needs to be stored The maximum value of N is 65535 If the application only needs to acquire data before the pre trigger signal set N 1 Only one extra data will be sampled after the pre trigger signal Operation Theory e 33 4 1 6 AID Data Format The range for the A D data read from the FIFO port is from 32768 to 32767 If the A D gain is 1 the A D signal range is 10V 10V The relationship between the voltage and its decimal value is shown in the following table A D Data Hex Decimal Value The formula between the A D data and its analog value is Voltage AD_Data 10 32768 gain Bipolar Where the gain is 1 10 100 1000 for HG version and 1 2 4 8 for DG version 34 e Operation Theory 4 2 Interrupt Control 4 2 1 System Architecture The PCI 9114 A s interrupt system is a powerful and flexible system which 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 at the same time and the software can service these two request signals using ISR Note that the dual interrupt does not mean the card occupies two IRQ levels The two interrupt request signals INT1 and INT2 come from the digital input signals or the timer coun
25. 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 accordingly Address BASE 04h Attribute write and read Data Format See eae eae OS EE Ne TE The relationship between the gain setting and its A D range is listed in the table below G1 Go Gain Analog Input Range Analog Input Range HG DG of PCI 9114 A HG of PCI 9114 A DG 0 0 1 1 10V 10V 0 1 10 2 5V 1 0 100 4 2 5V 1 1 1000 8 1 25V 3 6 A D Status Read back Register The A D FIFO buffer status can be read back from this register Address BASE 0Ah Attribute read only Data Format BERE GEE SIE AE See ea ewes FF EF 0 means FIFO is empty FF_HF 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 3 7 Trigger Mode Control and Read back Register Registers e 21 This register is used to control or read back the A D trigger control setting and the AD range setting Address BASE 06h Attribute write and read Data Format a Been ee eee ee PTRG Pre trigger ON OFF control Only available on PCI 9114A or PCI 9114 Rev C2
26. H is a differential pair The AD circuit measures the voltage difference between the differential pair Common mode noise can be reduced under this mode Note that the differential signal pair must have a common ground Figure 8 illustrates a differential analog signal input connection By using differential input mode the common mode noise on AlHn and AlLn is reduced Operation Theory e 27 Analog Input Multiplexer Operational Amplifier Floating Signal To A D Converter Sources Figure 7 Signal sources and single ended connection n 0 8 To A D Converter Signal Sources Figure 8 Grounded source and differential input Signal Channel Control There are two ways to control the channel number Either by software programming or by auto channel scanning which is controlled by the ASCAN bit in the AD trigger mode control register When ASCAN is cleared 0 the value of the AD Channel Control register defines the channel to be selected When ASCAN is set to 1 the value in the AD channel control register defines the ending channel number for the auto scanning operation Under auto scan mode channels are scanned from channel 0 to the ending channel Whenever a trigger signal is on the rising edge the channel number to be selected will increase automatically For example if the ending channel number is 3 the auto channel scanning sequence is 0 1 2 3 0 1 2 3 until the ASCAN bit is cleared 28 e Operation Theory
27. Medical instrument Biomedical measurement 2 e Introduction 1 3 Specifications Analog Input A D e Converter LTC1605 LTC1606 for PCI 9114A or equivalent successive approximation type e Resolution 16 bits e Input channels 32 single ended or 16 differential input channels e Input Range Programmable y Bipolar 10V 1V 100 mV 10 mV PCI 9114 A HG v Bipolar 10V 5V 42 5 1 25V PCI 9114 A DG e Throughput v Single channel 100 KHz max for PCI 9114 v Single channel 250 KHz max for PCI 9114A e Over Voltage Protection for Analog inputs Continuous 35V maximum e Input Impedance 10 MQ e AID Trigger Modes Software and Timer pacer trigger e Data Transfer Mode Pooling EOC Interrupt FIFO Half full Interrupt e FIFO Buffer Size 1024 samples Isolated Digital Input IDI e Number of input channels 16 e Input voltage 0 24 VDC v Logic L 0 1 5V y Logic H 3 24V e Input resistance 4 7 KO 0 5W e Isolation voltage 5000 V rms e Throughput 10 KHz Introduction e 3 Isolated Digital Output IDO Number of output channels 16 channels current source Output type open emitter 0 5 to 50 Vpc Source Current v Single channel sources 500 mA maximum v 8 channels source 6 0mA maximum simultaneously Isolation voltage 5000 V rms Throughput 10 KHz General Specifications Connector 37 pin D type connector Operating Temperature 0 C 60 Cs Storage Temperature 20 C 80 C Humidity
28. No The card number of PCI 9114 A card initialized c0 the current counter value of the Counter 0 Return Code ERR_NoError C C Library e 63 5 27 9114 INT Source Control Description The PCI 9114 A 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 the PCI 9114 A interrupt sources by writing data to interrupt control register Refer to section 5 1 4 for details of the A D data transfer modes Syntax C C DOS void 9114 INT Source Control U16 cardNo U16 int1Ctrl U16 int2Ctrl C C Windows 95 void W 9114 INT Source Control U16 cardNo U16 int1Ctrl U16 int2Ctrl Visual Basic Windows 95 W 9114 INT Source Control ByVal cardNo As Integer ByVal intlCtrl As Integer ByVal int2Ctrl As Integer Argument cardNo the card number of PCI 9114 A card initialized int1Ctrl the value to control INT1 the value can be set and the corresponding definition is the following 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 O INT2 disable 1 INT2 timer pacer interrupt Return Code None 64 e C C Library 5 28 9114 CLR_IRQ1 Description This function is used to clear the interrupt reguest that is reguested by PCI 9114_INT1 If an inter
29. NuDAQ PCI 9114 A DG HG Enhanced Multi Functions Data Acquisition Card User s Guide Recycled Paper Copyright 1997 2003 ADLINK Technology Inc All Rights Reserved Manual Rev 1 40 April 28 2003 Part No 50 11114 202 The information in this document is subject to change without prior notice in order to improve reliability design and function and does not represent a commitment on the part of the manufacturer In no event will the manufacturer be liable for direct indirect special incidental or consequential damages arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks NuDAQ NulPC are registered trademarks of ADLINK Technology Inc Other products names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies Getting service from ADLINK Customer Satisfaction is the most important priority for ADLINK Tech Inc If you need any help or service please contact us Technical Suppor 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan Please email or FAX us of your detailed information fo
30. Pin 5 Gate Control Counter 0 o CN4 Pin 3 j i G Pre Trigger Signal Pre Trigger C CN4 Pingo Gontrolier Timer 1 g ae Timer Pacer HIG Internal 2 MHz Clock C Timer 2 6 H G Note Counter 0 only available in PCI 9114A and PCI 9114 Rev C2 or later Figure 16 Timer Counter system of PCI 9114 A 4 5 2 Pacer Trigger Source Timer 1 and 2 are cascaded together to generate the timer pacer trigger for the A D conversion The frequency of the pacer trigger is software controllable The maximum pacer signal rate is 2MHz 4 500K which exceeds the maximum A D conversion rate of the PCI 9114 A 80KHz The minimum signal rate is 2MHz 65535 65535 which is a very slow frequency that may never be used The output of the programmable timer can be used as a pacer interrupt source or a timer pacer trigger source for an A D conversion In the software library timer 1 and 2 is set as mode 2 rate generator 40 e Operation Theory C C Library This chapter describes the software library that operates the PCI 9114 Only functions in the DOS library and Windows 95 DLL are described Refer to the PCIS DASK function reference manual which is included in ADLINK CD for details of Windows 98 NT 2000 DLL functions The function prototypes and useful constants are defined in the header files in the LIB DOS and INCLUDE Windows 95 directories For Windows 95 DLL the developing environment can be Visual Basic 4 0
31. Se ee ke Re Gee Ee OER ve ee 19 3 37 AIDData Registers Ete SE ees ER SE de EE EE En eg GEAG 20 34 A D Channel Control Register ees se ee ee ee ee Ge Re ee ee 20 3 5 A D Input Signal Range Control Register ees se ee ee 21 36 AD Status Read back Register se ee ee ek ee ee Re ee ee ee 21 3 7 Trigger Mode Control and Read back Register esse ees ee 21 3 8 Interrupt Control and Read back Register ee ee ee ee 23 3 9 Software Trigger Register ees ee ee ee AA ek ee Ge Re ee ee ee 24 3 10 Hardware Interrupt Clear Registers esse ees se ee ee ek ee ee ee ee ee 24 3 11 Timer Counter Register sees ee ee ee ee ee AA ke ee ee Re ee ee ee 25 3 12 High Level ProgrammIiNng iese ee se ee ee ee Re AA Re ee Ge Ke ee ee ee 25 Chapter 4 Operation Theory eie ees se ee AE RE RR Re Ge Ee AE AR RR Re Ge Ee ee Ee ee 26 4 1 A D Conversion EE EE EE Ee 26 4 1 1 A D Conversion Procedure see ese ee ee Ee ee ee ee ee 27 4 1 2 A D Signal Source ContrOL ee ee ee ee AR ee ee 27 4 1 3 A D Trigger Source Control ie ee ee ee ee ee ee 29 4 1 4 A D Data Transfer ModeS iis se ee se ee Ge ke ee ee ee 30 4 1 5 Pre Trigger ContrOL ie ER ee Ee GR Re Re ee ee ee ee ee 32 4 1 6 A D Data Format oense enren a ee ee ee ee 34 4 2 Interrupt Control EER Re RE es es RA RE Ese dee DER Gee se gee ie 35 4 2 1 System Architecture sssini daii 35 4 2 2 IRQ Level Setting iii ee AE ee AR Re AA AR Ge ee 35 4 2 3 Dual Interrupt
32. SySteM iese se ee Ee ee Re ee Re ee ee ee 36 4 2 4 Interrupt Source Control ee ee ee Ge ee ee ee 36 4 3 Isolated Digital INDU ee ee ee ee ee Re ee Re ee ee ee ee ee 37 44 Isolated Digital Output ee ese ee ee ee Re ee Ge Ke ee ee ek ee 38 4 5 Timer Counter Operation esse ee ee ee AR Ke ee ee ek ee ee 40 45T le Dee EE OE AE N 40 4 5 2 Pacer Trigger SOUC Eiet ee ee ee ee Ge aE ee 40 Chapter 5 C C Library sees ese ee RR RR RE RE EE ER RE EE RR RE RE AR RR RE Re ER RR RR Re RR KE Ee ee 41 5 1 Libraries Installation shein aipa 41 5 2 Programming Guide iese ee ee ee Ee ee AR GR Re Re ee ee ee ee ee ee ee ee ee 42 5 2 1 Naming Convention i ee ee ee Ge ee Re AR ee ee ee 42 62 2 Data TYPOS EE ER cc eens aa EE es EE ene ae 42 ii e Table of Contents 5 3 5 4 5 5 5 6 5 7 5 8 5 9 5 10 5 11 5 12 5 13 5 14 5 15 5 16 5 17 5 18 5 19 5 20 5 21 5 22 5 23 5 24 5 25 5 26 5 27 5 28 5 29 5 30 5 31 5 32 5 33 5 34 5 35 5 36 5 37 5 38 5 39 5 40 5 41 ERROR N EE EE RE 43 9114 Software Reset Ee EES KA Ge EE Re eg sk ER n Ne ae 43 EQ 1 NA DO Seca EES EE Ee EE GE De GE GN EG ee ee GE ee ie fe 44 9114 DI ned ncn VEG GE Ee Ge st de 44 9114 AD Read Data see Ese sed eani GERS ee ODE RE Gee 45 9114 AD Read Data Repeat ees ee ee Re ee Ee ee ee ee 46 9114 AD Read Data MUX ee se ee ee ee ee Re ee ee ee ee ee 47 9114 AD Read Data Repeat MUX ees see ee ee Re ee ee ee
33. VO Base Base 2 40h 32 bits AD FIFO data and channel number read Table 1 I O Addresses Registers e 19 3 3 A D Data Registers The PCI 9114 A A D data is stored in the FIFO buffer after conversion The data can be transferred to the host memory by software only 16 bit input port instructions can read the AD value The A D data can also be read back with the channel number together Users will know exactly the channel number of the A D data However it a 32 bit reading port instruction must be issued Address BASE2 40h Attribute read only Data Format C em y e eae See eee AD15 ADO Analog to digital data AD15 is the Most Significant Bit MSB ADO is the Least Significant Bit LSB CH4 CHO Channel number of the A D data 34 A D Channel Control Register The PCI 9114 A provides 32 SE or 16 DI channels The channel control register is used to set the A D channels to be converted The 5 LSBs of this register controls the channel number Under non auto scanning mode the register sets the channel number for conversion Under auto scanning mode the register sets the ending channel number Note that the read back value is the setting value and not the current selected AD channel number Address BASE 02h Attribute write and read Data Format EE GE RE EE ES N EENS EG CNn channel number of multiplexer CN4 is MSB and CNO is LSB 20 e Registers 3 5 A D Input Signal Range Control Register The A
34. annel 0 and program the card to use AD ch 0 Set gain register to minimum gain gain 1 Adjust VR2 to obtain a reading between 32766 32767 Cold junction sensor calibration 1 NP LE ED Set the C J sensor for operation under S E input mode Refer to section 2 7 2 and program the card to use AD ch 0 Set gain register to minimum gain gain 1 Measure the current temperature Adjust VR4 until the read out value equals the temperature value The relationship between temperature and the read out value is as followed V mV T K x 10 mV K T K V mV 10 mV K T C T K 273 K For example If the temperature is 25 C user should calibrate the C J voltage to 25 273 x 10 2980 mV 2 98 V Calibration amp Utilities e 81 6 1 4 Software A D Offset Calibration For more accurate calibration of the input offset signal using a software utility to calibrate the offset of the analog input signal is a good approach Benefits in using this method are that it is online and it eliminates any temperature drift For example users can adjust JP2 to set AD channel 16 to ground D I mode Refer to section 2 7 2 Measuring the digital value of channel 16 can retrieve the offset voltage of the AD channel If the digital offset value is Vo user can modify any AD data by subtracting Vo from the AD data to obtain the offset calibrated value Note that the Vor may be different for each gai
35. asic Windows 95 W 9114 INT Get Reg ByVal cardNo As Integer INTC As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized INTC The value returned from the interrupt control register Return Code ERR_NoError 56 e C C Library 5 19 9114 Reset FIFO Description The PCI 9114 A s A D data are stored in the FIFO buffer after conversion This function is used to reset the A D FIFO buffer This function should be called before performing any A D conversion to clear any old data stored in the FIFO buffer Syntax C C DOS U1l6 9114 Reset_FIFO U16 cardNo C C Windows 95 U16 W 9114 Reset FIFO U16 cardNo Visual Basic Windows 95 W_9114 Reset_FIFO ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized Return Code ERR_NoError C C Library e 57 5 20 9114 AD Soft Trigger Description This function is used to trigger the A D conversion using the software When this function is called a trigger pulse will be generated and the converted data will be stored in the data register Syntax C C DOS ule 9114 AD Soft Trigger U16 cardNo C C Windows 95 U16 W 9114 AD Soft Trigger U16 cardNo Visual Basic Windows 95 W_9114 AD Soft_Trigger ByVal cardNo As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized Return Code ERR_NoError 5 21 9114 Set 8254 Descriptio
36. buffered in the FIFO memory The FIFO size of the PCI 9114 A is 1024 1K words If the sampling rate is 100 KHz the FIFO can buffer 10 24 ms of analog signals After the FIFO is full the lasting incoming data will be lost The software must read out the FIFO data before it becomes full The data must be transferred to the host memory when the data is ready and before the FIFO is full With the PCI 9114 A many data transfer modes can be used The different transfer modes are in the following section 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 software triggers the A D conversion the software polls the FF_EF bit of the A D status register until it becomes low If the FIFO is empty before the A D starts the FF_EF bit will be low After the A D conversion is completed the A D data is written into FIFO buffer immediately thus the FF_EF becomes high The FF_EF bit can be considered to be a flag to indicate 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 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 10us on the PCI 9114 card and 4us on PCI 9114A card Hence after a software trigger the
37. d Input Circuits The Isolated Digital input could be an AC input The isolation voltage is 5000 V rms The input resistance is 1 2K Ohm Note that the 16 DI signals are partitioned into 4 groups Each group is based on a common plane Every two groups are mutual isolated Refer the Figure 11 and the Table 2 for the four groups Signal Names Common Signal ID_0 ID_3 EICOM1 ID 4 ID 7 EICOM2 ID 8 ID 11 EICOM3 ID_12 ID_15 EICOM4 Table 2 Digital input signals and ground plane The common plane could be either common power or common ground The following diagram shows the EICOM as common ground An external device or circuit will provide the power source or current source Isolated Input 2 4K Ohm AMEEN EICOM 77 Figure 11 Common ground Operation Theory e 37 The following diagram shows the EICOM as common power An external device or circuit will provide the power source and current sink Most open collector output devices can be connected to the PCI 9114 A using this configuration Isolated Input 2 4K Ohm Figure 12 Common power 4 4 Isolated Digital Output There are 16 Isolated Digital output signals Darlington transistors drive the digital output signals Figure 13 shows the output circuits Note that the 16 DO signals uses a common ground and common external power source lt Vpower From digital circuits K m gt DOn A F EOGND Figure 1
38. e 71 9114 ADAINT Star ER RE Ee Ke RE Ee ORR GR yiee EE ee De Ee 72 9114 AD FFHF INT Start esse sesse esse ee ee ke ee se ee ee ke ee ee ee ee ee 73 9114 AD INT Status eine Eg ee 75 9114 AD FFHF INT Status esse esse esse ee ee ke ee se ee ee ke ee ee ee ee ee 76 9114 AD FFHF INT Restart iese ese ees se ee ee ee se ee ee ke ee ee ee ee ke 77 9114 AD INT Stopa ges ohn dala a aii 78 Table of Contents e iii Chapter 6 Calibration amp Utilities ss EE EE EE EE EE EE EE EE EE EE EE EE EE 79 6 1 Calibration ses Ee ES EED Ee EE GN EG ge N N ge Ee Gee Ne 79 6 1 1 What do you need ou iii se ee ee ee ee ee Re ee ee ee ee ee 79 6 1 2 VR Assignment ia is EE Ee ee De Se gph ees Es Ee eke 80 6 123 A D Adjustment ie EER SEEKS EERS ee RR EE ERAS SERE ee ee Re 80 6 1 4 Software A D Offset CalibratiOn ee ee ee ee ee 82 6 2 EER EE EE ERA RE Ed 82 6 2 1 9114util For PCI 9114 Rev B2 Only ee ee ee ee 82 OE EER EE EE OR N EE a Ea 86 6 2 3 I sad ie RR EE EE EN 89 Appendix A 8254 Programmable Interval Timer iss esse sesse ee ee 90 A 1 The 8254 Timer Counter Chip sesse ee ee ee ee ee Re ee ee 90 A2 The Control Byte Es EE Ese ee ie ge ee EE geen Ve ee KEER ee 91 Appendix B Signal Wiring Diagram sesse ee Re EE ER RE RE RR EE ER ER RR RE Ee Ee EE 93 Warranty Policy AE EE N N 96 iv e Table of Contents Outline of Chapters This manual is designed to help the user to understand and configure the PCI 9114 A The
39. e InControl driver which supports Windows NT The PCIS ICL is included in the ADLINK CD A license is needed to use the drivers 1 4 9 PCIS OPC OPC Server PCIS OPC is an OPC Server which can link with OPC clients There are several software packages on the market which can provide the OPC clients The PCIS OPC supports Windows NT and requires a license to operate Introduction e 7 Installation This chapter describes how to install the PCI 9114 A Follow the steps carefully e Check what you have section 2 1 e Unpacking section 2 2 e Check the PCB and jumper location section 2 3 e Install the hardware and setup and jumpers section 2 4 2 7 e Install the software drivers and run utility to test section 2 5 e Cabling with external devices section 2 6 2 8 2 1 What You Have In addition to this user s guide the package should include the following items PCI 9114 A Enhanced Multi function Data Acquisition Card e ADLINK CD e Software Installation Guide If any of these items are missing or damaged contact the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future 8 e Installation 2 2 Unpacking The card contains electro static sensitive components that can be easily be damaged by static electricity Therefore the card should be handled on a grounded anti static mat The operator should be wearing an anti static wri
40. e Interrupt Control ISC Register Because the PCI 9114 is a dual interrupt system you can use the FIFO half full and external interrupt at the same time if your software ISR can distinguish these two events 4 2 4 Interrupt Source Control There are two bits to control the IRQ sources of INT1 and INT2 Refer to section 4 9 for details of these bits In addition the PCI controller itself can also control the usage of the interrupt To manipulate the interrupt system more easily ADLINK recommend you to use the function _9114_INT_Source_Control to control the IRQ source so that you can disable one or two of the IRQ sources Note that even if you disable both IRQ sources without changing the initial condition of the PCI controller the PCI BIOS will still assign an IRQ level to the PCI card and it will still occupy the PC s resources It is not recommended that the PCI cards initial condition be re design with a users application software If users want to disable the IRQ level please use the ADLINK software utility to change the interrupt settings 36 e Operation Theory 4 3 Isolated Digital Input There are 16 Isolated Digital input signals Each digital input signal is connect to a photo isolator such that the signal is isolated from the ground or the power plane of the host PC Figure 10 illustrates a single digital input circuits DI n R 2 4K Ohm to digital circuits NNN AYS Photo Isolator D vV Figure 10 Isolate
41. e following situations Damage caused by not following instructions in the User s Manual Damage caused by carelessness on the user s part during product transportation Damage caused by fire earthquakes floods lightening pollution other acts of God and or incorrect usage of voltage transformers Damage caused by inappropriate storage environments such as with high temperatures high humidity or volatile chemicals Damage caused by leakage of battery fluid during or after change of batteries by customer user 96 e Warranty Policy e Damage from improper repair by unauthorized ADLINK technicians e Products with altered and or damaged serial numbers are not entitled to our service e This warranty is not transferable or extendible e Other categories not protected under our warranty 4 Customers are responsible for all fees necessary to transport damaged products to ADLINK For further questions please e mail our FAE staff service adlinktech com Warranty Policy e 97
42. e gain offset are steady at zero 6 Connect 5V to AD channel 1 pin 18 7 Adjust VR2 to obtain a reading between 16383 16384 PGA offset calibration For PCI 9114A and PCI 9114 Rev C2 or later 1 Set AD input signal type to single ended default input 2 Adjust JP2 to set AD channel 16 to ground D I mode Refer to section 2 7 2 and program the card to use AD ch 16 Use the multi meter to measure the voltage between TP1 and TP2 4 Set the gain register to maximum gain gain 8 for PCI 9114 A DG gain 1000 for PCI 9114 A HG 5 Adjust VR3 until the multi meter value approaches to zero 6 Set gain register to minimum gain gain 1 7 Adjust VR5 until the multi meter value approaches to zero 80 e Calibration amp Utilities 8 Repeat steps 4 7 until the multi meter value reads zero even after a gain changed A D offset calibration For PCI 9114A and PCI 9114 Rev C2 or later 1 2 3 4 Set the AD input signal type to single ended default input Adjust JP2 to set AD channel 16 to ground D I mode Refer to section 2 7 2 and program the card to use AD ch 16 Set gain register to minimum gain gain 1 Adjust VR7 to obtain reading between 1 1 A D full range calibration 1 2 Set the AD input signal type to single ended default input Use the multi meter to calibrate the reference voltage of an external power supply unit to 10V Connect the reference voltage to AD ch
43. er If the auto scan is set as enabled the selection seguence of A D channel is 0 1 2 3 ad ch nol 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 10 V ADB 1 V ADB 0 1 V ADB 0 01 V AD B 5 V AD B 2 5 V AD B 1 25 V count the number of A D conversion ad buffer the start address of the memory buffer to store 72 e C C Library 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 bit 0 15 A D converted data bit 16 20 converted channel no cl the frequency divider of Timer l c2 the frequency divider of Timer 2 Return Code ERR_InvalidADChannel ERR_AD_InvalidGain ERR InvalidTimerValue ERR _NoError 5 37 9114 AD FFHF INT Start Description This function is used to initiate and startup the AD EOC end of conversion interrupt by using AD FIFO Half Full Interrupt Transfer Mode This function can perform an A D conversion N times using interrupt data transfer and pacer trigger It takes place in the background and will not stop until the N th conversion has been completed or the program executes the _9114_AD_INT_Stop function to stop the process After executing this function it is necessary to check the status of the operation using the function 9114 AD FFHF INT Status The function can be perfor
44. free with the board You can install and use them without a license For more information about PCIS VEE please refer to the user s guide in the CD Manual_PDF Software PCIS VEE 1 4 4 DAQBench ActiveX Controls We suggest customers who are familiar with ActiveX controls and VB VC programming use the DAQBench Activex Control component library for developing applications The DAQBench is designed under Windows NT 98 For more information about DAQBench please refer to the user s guide in the CD Manual_PDF Software DAQBench DAQBench Manual PDF 1 4 5 DASYLabTM PRO DASYLab is an easy to use software package which provides easy setup instrument functions such as FFT analysis Please contact ADLINK to purchase a copy of DASYLab PRO which includes DASYLab and ADLINK hardware drivers 1 4 6 PCIS DDE DDE Server and InTouch DDE stands for Dynamic Data Exchange The PCIS DDE includes the PCI cards DDE server The PCIS DDE server is included in the ADLINK CD It needs a license The DDE server can be used in conjunction with any DDE client under Windows NT 1 4 7 PCIS ISG ISaGRAF driver The ISAGRAF WorkBench is an IEC1131 3 SoftPLC control program development environment The PCIS ISG includes ADLINK product drivers for ISaGRAF under Windows NT environment The PCIS ISG is included in the ADLINK CD A license is needed to use the drivers 6 e Introduction 1 4 8 PCIS ICL InContro Driver PCIS ICL is th
45. function is used to set the AD channel by means of writing data to the channel control register There are 32 single ended A D channels supported by the PCI 9114 A therefore the channel number can be set between 0 and 31 Under non auto scan mode the ADChannelNo stores the channel number setting Under auto scan mode the ADChannelNo records the channel number of the ending channel Syntax C C DOS ule 9114 AD Set Channel U16 cardNo ADChannelNo C C Windows 95 ule W 9114 AD Set Channel U16 cardNo ADChannelNo Visual Basic Windows 95 U16 W 9114 AD Set Channel ByVal cardNo As Integer ByVal ADChannelNo As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADChannelNo The selected channel number or the ending channel number to perform A D conversion Return Code ERR_NoError C C Library e 49 5 12 9114 AD Set Range Description This function is used to set the A D range by means of writing data to the AD range control register The initial value of the gain is 1 which is the default setting for the PCI 9114 A hardware The following tables specify the relationship between the gain and the input voltage range For PCI9114HG Input Range V Gain GainCode AD_B_10_V AD_B_1_V 100m V X100 AD BO TV X 1000 AD B 0 01 V For PCI9114DG Input Range V Gan GainCode C C DOS Ule6 9114 AD Set Range U16 cardNo U1
46. ghts and enjoy all the after sales services we offer please read the following carefully 1 Before using ADLINK s products please read the user manual and follow the instructions exactly When sending in damaged products for repair please attach an RMA application form which can be downloaded from http rma adlinktech com policy 2 All ADLINK products come with a limited two year warranty one year for products bought in China The warranty period starts on the day the product is shipped from ADLINK s factory Peripherals and third party products not manufactured by ADLINK will be covered by the original manufacturers warranty For products containing storage devices hard drives flash cards etc please back up your data before sending them for repair ADLINK is not responsible for any loss of data Please ensure the use of properly licensed software with our systems ADLINK does not condone the use of pirated software and will not service systems using such software ADLINK will not be held legally responsible for products shipped with unlicensed software installed by the user For general repairs please do not include peripheral accessories If peripherals need to be included be certain to specify which items you sent on the RMA Request amp Confirmation Form ADLINK is not responsible for items not listed on the RMA Request amp Confirmation Form 3 Our repair service is not covered by ADLINK s guarantee in th
47. ground program is too busy to poll the FIFO data then the FIFO half full interrupt transfer mode is useful In addition if an external A D trigger source is used the sampling rate may not be easy to predict then this method could be applied because the CPU only be interrupted when the FIFO is half full thus reserving the CPU load Under this mode an interrupt signal is generated when FIFO become half full that means there are 512 word data in the FIFO already The ISR can read a block of data at 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 4 1 5 Pre Trigger Control Only available in PCI 9114A or PCI 9114 Rev C2 and later In certain applications the data acquisition is applied and stopped under special hardware signals Without Pre Trigger functions the software can start the A D at any time but it is very difficult to stop the A D in real time using a software application Under Pre Trigger mode the pre trigger PTRG signal pin 9 of CN4 and the 8254 counter are used to STOP the A D sampling After setting up the Pre Trigger mode the hardware continuously acquires A D data and waits for the pre trigger signal Before the pre trigger signal is inserted the software must read data from the FIFO buffer to prevent the FIFO buffer from becoming full When the pre trigger signal is inserted the counter starts to count
48. he PCI 9114 A card The software library including a DOS library for Borland C C is available in the All in one CD Refer to chapter 5 for more information Registers e 25 Operation Theory The operation theory of the PCI 9114 A card is described in this chapter This will help assist in understanding how to manipulate or to program the PCI 9114 A 4 1 A D Conversion Before programming the PCI 9114 A to perform any A D conversion the following topics need to be understood A D conversion procedure A D signal source control A D trigger source control A D data transfer mode Interrupt System refer to section 4 2 A D data format Note Since some A D data transfer modes will use system interrupt resources an understanding of the interrupt system section 4 2 is required 26 e Operation Theory 4 1 1 AID Conversion Procedure To use the A D converter the properties of the signal to be measured must first be understood A decision on which channels to use to connect signals to must be made Refer to the chapter 2 In addition the A D signal sources including the A D channel A D gain and A D signal types must also be defined Refer to section 4 1 2 for A D signal source control information After deciding on the A D signal source the trigger source must be defined The A D converter will start to convert signals to a digital value when a trigger signal is on the rising edge Refer to section 4 1 3 for detai
49. her than what the users expects or the polling rate is too slow It is also possible due to system occupation of CPU resources thus reducing the polling rate When the FIFO is half full and not full the software can read one block 512 words of A D data without checking the FIFO status Usually the timer trigger is used under this mode therefore the sampling rate is fixed This method also utilizes the minimal CPU resources because it does not necessary need to be the highest priority The other benefit with this method is it does not use any hardware interrupt resources Therefore the interrupt is reserved for system clocks or emergency external interrupt requests EOC Interrupt Transfer The PCI 9114 A provides traditional hardware end of conversion EOC interrupt capabilities Under this mode an interrupt signal is generated when the A D conversion is ended and the data is ready to be read from the FIFO It is useful to combine the EOC interrupt transfer with the timer pacer trigger mode After an 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 rates Operation Theory e 31 FIFO Half Full Interrupt Transfer Sometimes the applications do not need real time processing but the fore
50. his function is used to check the status of the interrupt operation The 9114 AD FFHF INT Start is executed in the background Syntax C C DOS u16 9114 AD FFHF INT Status U16 cardNo U16 status U16 blockNo C C Windows 95 U16 W 9114 AD FFHF INT Status U16 cardNo U16 status U16 blockNo Visual Basic Windows 95 W 9114 AD FFHF INT Status ByVal cardNo As Integer status As Integer blockNo As Integer As Integer Argument cardNo the card number of PCI 9114 A card initialized status the status of the INT data transfer the possible values are AD FFHF INT RUN AD FFHF BLOCK FULL blockNo the A D conversion block number performed currently Return Code ERR_NoError 76 e C C Library 5 40 9114 AD FFHF INT Restart Description After calling the 9114 AD FFHF INT Start function the AD conversion and transfer will not stop until the Nth block of the AD data is acquired calling this function can restart the FIFO half full interrupt transfer without re initiating all its relative registers However if the interrupt operation was stopped by calling the 9114 AD FFHF INT Stop function the program should use 9114 AD FFHF INT Start to restart the interrupt transfer function Syntax C C DOS U16 9114 AD FFHF INT Restart U16 cardNo C C Windows 95 U16 W 9114 AD FFHF INT Restart U16 cardNo Visual Basic Windows 95 W 9114 AD FFHF INT Restart ByVal cardNo As Integer As Integer
51. ignment for CN4 CN4 is only supported on PCI 9114A and PCI 9114 Rev C2 or later CN4 is used for external signal connections The pin assignment for CN4 is illustrated in Figure 6 Legend Ext CIK N C Cnt_Out Clk_2M Cnt_Gate 5V GND Ext_Trg PreTrg 14 e Installation lal a love Sj g RI S 2 z 2 m ol 51 Cl Figure 6 Figure 2 3 Pin Assignment of CN4 External Clock for Counter 0 No Connection Output of Counter 0 Internal 2MHz Clock External Gate Control Signal for Counter 0 5V power supply Ground Plane External A D Trigger Signal External Pre trigger Signal 2 7 Jumper Descriptions 2 7 1 Analog Input Signal Type Selection JP1 JP1 is only supported on PCI 9114A or PCI 9114 Rev C2 and later JP1 is use to select the analog input signal type It can be either Single Ended or Differential Input The following diagram shows possible configurations O O DI OO JP1 Single Ended Input Default 6 OJ SE 2 7 2 Cold Junction Sensor Selection JP2 JP2 is used to set the cold junction sensor Note that JP2 is used in conjunction with JP1 The following diagrams illustrate possible configurations e CJ Sensor Disabled Default O O C J Senor Enabled C J Sensor Disabled Default e Connecting the C J sensor to an AD Channel under Differential Input mode Note if JP1 is wrongly set as SE mode the C J sensor will be connected to CH 0 and CH 16 is connected to the grou
52. in areas like medicine and process control The following illustration shows the fundamental function blocks of the PCI 9114 A PGA Gain 1 10 16 bits J16 Channels 32 SE ko AD Isolated DI 16DI H MUX p16 Channels R AD Controller 1K FIFO Isolated DO ASIC Cold Junction Sensor PCI Controller 8254 Timer JE lt 32 bits PCI Bus gt Figure 1 PCl 1114 A Fundamental function block Introduction e 1 1 1 Features The PCI 9114 A PCl Bus Advanced Data Acquisition Card provides the following advanced features 32 bit PCl Bus Plug and Play 32 single ended or 16 differential analog inputs channels 16 bits high resolution AD conversion High amplification gain of 1 10 100 1000 for PCI 9114 A HG Normal gain of 1 2 4 8 for PCI 9114 A DG Single channel sampling rate up to 100 KHz for PCI 9114 Single channel sampling rate up to 250 KHz for PCI 9114A Multi AD trigger mode software trigger timer pacer trigger On board A D 1K WORDS FIFO memory Auto scanning channel selection One user configurable general purpose Timer Counter Only available in PCI 9114A and PCI 9114 Rev C2 or later 16 Isolated Digital Input Channels 16 Isolated Digital Output Channels with high driving capability 5000 V rms high voltage isolation for DIO channels Applications Industrial process control Transducer thermocouple RTD Power monitor
53. in the background and will not stop until the N th conversion has been completed or your program executes the _9114_AD_INT_Stop function to stop the process After executing this function it is necessary to check the status of the operation by using the function 9114 AD INT Status This function can perform on a 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 from an internal timer source therefore you must specify c1 amp c2 as calling this function In addition this function in the DOS library supports just one PCI 9114 A card and provides only one ISR interrupt service routine for processing the interrupt events Syntax C C DOS ule 9114 AD INT Start U16 cardNo U16 auto scan U16 ad ch no U16 ad gain U16 count U32 ad buffer U16 c1 U16 c2 C C Windows 95 Ul6 W 9114 AD INT Start U16 cardNo U16 auto scan U16 ad ch no U16 ad gain U16 count U32 ad buffer U16 cl U16 c2 Visual Basic Windows 95 W_9114_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 9114 A card initialized auto_scan 0 autoscan is disabled 1 autoscan is enabled ad ch no A D channel numb
54. is used to write data to the digital output port There are 16 digital output channels supported by the PCI 9114 A Syntax C C DOS ule 9114 DO U16 cardNo U16 DOData C C Windows 95 ule W 9114 DO U16 cardNo U16 DOData Visual Basic Windows 95 W 9114 DO ByVal cardNo As Integer ByVal DOData As Integer As Integer Argument cardNo The card number of initialized PCI 9114 A card DOData The value will be written to digital output port Return Code ERR_NoError 5 6 9114 DI Description This function is used to read data from the digital input port There are 16 digital input channels supported by the PCI 9114 A The digital input status can be accessed using this function Syntax C C DOS U16 9114 DI U16 cardNo Ul6 far DIData C C Windows 95 Ul6 W 9114 DI U16 cardNo U16 DIData Visual Basic Windows 95 W 9114 DI ByVal cardNo As Integer DIData As Integer As Integer Argument cardNo The card number of initialized PCI 9114 A card DIData The value accessed from digital input port Return Code ERR_NoError 44 e C C Library 5 7 9114 AD Read Data Description This function is used to read AD converted data from the AD Data register The resolution of the A D converted data is 16 bits Syntax C C DOS Ul6 9114 AD Read Data U16 cardNo U16 far ADData C C Windows 95 Ul6 W 9114 AD Read Data U16 cardNo U16 ADData Visual Basic Windows 95 W 9114 AD Read Data
55. ling testing A D Interrupt Testing and A D FIFO Half Full Interrupt testing When you choose one of the testing functions from the function menu the screen below is displayed xxxkk PCI 9114 Function Testing lt l gt A D with Polling Test lt 2 gt A D with Interrupt Test lt 3 gt A D with FIFO Half Full Interrupt lt 4 gt DI DO Test lt Esc gt Quit Select 1 to 4 or Esc to quit function testing Calibration amp Utilities e 85 6 2 2 9114AUtl For PCI 9114A or PCI 9114 Rev C2 and later There are three basic functions provided by the 9114Autl utility They are System Configuration Calibration and Functional Testing This software utility is designed as a menu driven based windows environment It provides text messages and graphical indicators for operating guidance Running 9114util exe After finishing the DOS installation you can execute the utility by typing in the following command C gt cd ADLINK 9114 DOS Util C gt 9114AUTL The following displayed will appear on your screen The message at the bottom of each window guides you through the selected item follow the on screen instructions to change set a value WERKER PCT 9TLA A Utility Rev 2 0 ERK RR Copyright 2001 2003 ADLink Technology Inc All rights reserved Configuration Calibration Function testing Quit gt gt gt Select function key F1 F2 F3 or press lt Esc gt to quit lt
56. ls of the two available trigger sources The A D data is then transferred into the PC s memory for further processing The data can be read back using I O instructions which is handled by the software or transferred to memory via the interrupt Refer to section 4 1 4 for information about multi configurations of A D data transfers To process the A D data an understanding of the A D data format is required Refer to section 4 1 5 for details 4 1 2 A D Signal Source Control To control the A D signal source the signal type signal channel and signal range must be considered Signal Type The A D signal sources of the PCI 9114 A can be single ended SE or differential input DI There are 32 SE or 16 DI A D channels available To avoid ground loops and to obtain the most accurate measurement for the A D conversion it is important to understand the signal source type Single ended SE mode means the voltage of the signal to be measured is relative to an isolated ground IGND therefore is suitable in conditions where there is a floating signal source A floating source means the signal source have no connection to real ground or to the PC ground Figure 7 illustrates a single ended Analog Input signal connection Note that when more than two floating sources are connected the sources must have a common ground Differential input DI mode means the voltage of the signal to be measured is a pair of signals for example AI3L and AI3
57. lt lt 86 e Calibration amp Utilities System Configuration This function guides you through configuration of the PCI 9114 A card to set the correct hardware parameters The configuration window shows the setting items that you have to set before using the PCI 9114 A card The following diagram will be displayed on the screen as you choose the Configuration function from main menu xxkxx X Configuration of PCI 9114 A lt l gt Card Type PCI9114 A HG 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 Calibration This function is used to guide you through on how to calibrate the PCI 9114 A The calibration program serves as a useful test for the PCI 9114 A s A D and D A functions and can aid in troubleshooting if problems arise Note Foran environment with frequently large changes in 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 sub menu is displayed on the screen After you select one of the calibration items from the calibration sub menu a calibration window appears The upper window outlines procedures to be followed when calibrating the board The instructions guide you through the calibration process step
58. med on a 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 from an internal timer source therefore you must specify c1 amp c2 as calling this function In addition this function in the DOS library supports just one PCI 9114 A card and provides only one ISR interrupt service routine for processing the interrupt events C C Library e 73 Syntax C C DOS U16 9114 AD FFHF INT Start U16 cardNo U16 auto scan U16 ad ch no U16 ad gain U16 blockNo U32 ad buffer U16 cl U16 c2 C C Windows 95 U16 W 9114 AD FFHF INT Start U16 cardNo U16 auto scan U16 ad ch no U16 ad gain U16 blockNo U32 ad buffer U16 cl ULG c2 Visual Basic Windows 95 W 9114 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 cl As Integer ByVal c2 As Integer As Integer Argument cardNo the card number of PCI 9114 A 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 enable the selection sequence of A D channel is 0 1 2 3 ad ch no 0 1 2 3 ad ch nol Pa 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
59. n This function is used to write to the PCI 9114 A s 8254 Programmable Timer Syntax C C DOS Ul6 9114 Set 8254 U16 cardNo U16 tmr ch U8 count C C Windows 95 Ul6 W 9114 Set 8254 U16 cardNo U16 tmr ch U8 count Visual Basic Windows 95 W 9114 Set 8254 ByVal cardNo As Integer ByVal tmr ch As Integer ByVal count As Byte As Integer Argument cardNo The card number of PCI 9114 A card initialized tmr_ch Port of 8254 Timer the value is within 0 to 2 count The counter value Return Code ERR_NoError 58 e C C Library 5 22 9114 Get 8254 Description This function is used to read the PCI 9114 A s 8254 Programmable Timer The read value is stored to the counter Syntax C C DOS Ul6 9114 Get_8254 U16 cardNo U16 tmr ch U8 count C C Windows 95 U1l6 W 9114 Get 8254 U16 cardNo U16 tmr_ch U8 count Visual Basic Windows 95 W 9114 Get 8254 ByVal cardNo As Integer ByVal tmr_ch As Integer count As Byte As Integer Argument cardNo The card number of PCI 9114 A card initialized tmr_ch Port of 8254 Timer the value is within 0 to 2 count value read from 8254 programmable timer only 8 LSBs are effective Return Code ERR_NoError C C Library e 59 5 23 9114 AD Timer Description This function is used to set timers 1 and 2 These timers are used as freguency dividers for generating constant A D sampling rates lt is possible to stop the pacer trigger by
60. n level Users should calibrate the offset value for each gain value 6 2 Utility 6 2 1 9114util For PCI 9114 Rev B2 Only There are 3 functions provided by the 9114util exe It is used for system configuration calibration and functional testing This software utility is designed with a menu driven based Windows environment It provides text messages and graphical indicators for operating guidance Running 9114util exe After finishing the DOS installation you can execute the utility by typing in the following commands C gt cd ADLINK 9114 DOS Util C gt 9114UTIL 82 e Calibration amp Utilities The following displayed will appear on your screen The message at the bottom of each window guides you through the selected item follow the on screen instructions to change set a value ke eK PCI 9114 Utility Rev 2 1 Copyright 2000 2004 ADLINK Technology Inc All rights reserved Configuration Calibration Function testing Quit gt gt gt Select function key F1 F2 F3 or press lt Esc gt to quit lt lt lt System Configuration This function guides you through configuration of the PCI 9114 card to set the correct hardware parameters The configuration window shows the setting items that you have to set before using the PCI 9114 card The following diagram will be displayed on the screen as you choose the Configuration function from main menu KEKER Configuration of PCI 9114
61. nd plane The following diagram illustrates the correct setting under D I mode with the C J sensor enabled DI o ol lo JP1 Differential Input O O D m Enable C J e o lo o JP2 Enable C J Sensor O O Disable Normal Installation e 15 Connecting the C J Sensor to an AD Channel under Single Ended Input mode CH 16 is used as normal single ended input OO DI OIE JP1 Single Ended Input Default se olo Enable C J JP2 Enable C J Senor S E mode Disable Normal 2 7 3 Counter 0 Function Selection JP4 JP4 is only supported on PCI 9114A or PCI 9114 Rev C2 and later JP4 is used to set the operation mode for Counter 0 Counter 0 can be set to either a Pre trigger controller or a user configurable Timer Counter When Counter 0 is set as a user configurable Timer Counter the Clock input Gate control signal and the Counter Output of Counter 0 can be connected via CN4 User PreTrg JP4 Set Counter 0 as a Pre Trigger Controller Default O JP4 Set Counter 0 as a User Configurable O PreTrg R User 2 16 e Installation 2 8 Termination Board Connection The PCI 9114 A is equipped with a DB 37 connector The available termination boards include Connection to ACLD 9137 The ACLD 9137 can be directly connected to the card which is equipped with a 37 pin D sub connector Itis suitable for simple applications that do not need
62. oError ERR FIFO Half NotReady 68 e C C Library 5 33 9114 AD FFHF Polling MUX Description This function is used to perform an AD data transfer by applying the half full polling mode This method checks the FIFO half full signal each time this function is called If the FIFO is not half full the software will not read the data The difference between this function and 9114 AD FFHF Polling is that the former reads data from a 16 bit register and this function reads data from a 32 bit data register Refer to section 5 1 4 for the details of half full polling mode Syntax C C DOS ule 9114 AD FFHF Polling MUX U16 cardNo U32 far ad buf C C Windows 95 U16 W 9114 AD FFHF Polling MUX U16 cardNo U32 ad buf Visual Basic Windows 95 U16 W 9114 AD FFHF Polling MUX ByVal cardNo As Integer ad_buf As Long As Integer Argument cardNo The card number of PCI 9114 A 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 C C Library e 69 5 34 9114 AD Aduire Description This function is used to poll the A D converted data using a software trigger It reads the A D data when the data is ready Syntax C C DOS Ul6 9114 AD Aquire U16 cardNo C C Windows 95 Ul6 W 9114 AD Aquire U16 cardNo Visual Basic Windows 95 W_9114 AD Aquire ByVal cardNo As Integer As Integer
63. ows 95 W 9114 AD Read Data MUX ByVal cardNo As Integer ADData As Long As Integer Argument cardNo The card number of PCI 9114 A card initialized ADData A D converted value The resolution of A D conversion data is 16 bit The unsigned integer data format of ADData is as follows bit 0 15 A D converted data bit 16 20 converted channel no Return Code ERR_NoError C C Library e 47 5 10 9114 AD Read Data Repeat MUX Description This function is used to read data from the A D Data and Channel Number Register n times continuously The A D Data and Channel Number Register is a 32 bit register Refer to section 4 2 for descriptions of the A D Data and Channel Number Register Syntax C C DOS U16 9114 AD Read Data Repeat MUX U16 cardNo U32 far ADData U16 n C C Windows 95 U16 W 9114 AD Read Data Repeat MUX U16 cardNo U32 ADData U16 n C C Windows 95 W 9114 AD Read Data Repeat MUX ByVal cardNo As Integer ADData As Long ByVal n As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADData A D converted value The resolution of the AD conversion data is 16 bit The unsigned integer data format of ADData is as follows bit 0 15 A D converted data bit 16 20 converted channel no n The timer of times to read the AD conversion data Return Code ERR_NoError 48 e C C Library 5 11 9114 AD Set Channel Description This
64. ows 95 W 9114 AD Get Mode ByVal cardNo As Integer ADMode As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADMode The value of AD mode The returned value could be one or a combination of the following modes A_9114 AD TimerTrig A_9114 AD SoftTrig A 9114 AD AutoScan Return Code ERR_NoError 54 e C C Library 5 17 9114 INT Set Reg Description This function is used to select the interrupt sources by writing data to the interrupt control register Refer to section 4 9 for details of using the interrupt control register Syntax C C DOS U16 9114 INT Set Reg U16 cardNo U16 INTC C C Windows 95 U16 W 9114 INT Set Reg U16 cardNo U16 INTC Visual Basic Windows 95 W 9114 INT Set Reg ByVal cardNo As Integer ByVal INTC As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized INTC The value written to the interrupt control register Return Code ERR_NoError C C Library e 55 5 18 9114 AD Get Reg Description This function is used to retrieve the AD mode setting and interrupt control setting by reading data from the Interrupt control read back register The settings returned are stored in INTC Refer to section 4 7 and section 4 9 for details of each bit of the returned data Syntax C C DOS U16 9114 INT Get Reg U16 cardNo U16 INTC C C Windows 95 U16 W 9114 INT Get Reg U16 cardNo U16 INTC Visual B
65. r a prompt satisfactory and constant service Detailed Company Information Company Organization Contact Person mail Address FEE Address Country EL EE cee OS Computer Brand CPU Environment to Use i BIOS Network Interface Card Other Detail Description Suggestions to ADLINK Table of Contents Chapter 1 Introduction res ses Ee se se Ee GESE Ee NEGE ESEG Ee EE ke Ve EE Ve Ee Ge ME 1 1 1 FeatufeS ies EE Gee Ee Ee Gee EE Ed Ge Ge Ge ee RE se ed Ee Gede ee Ee N Ee GE Gee 2 EE se ie AI OE EN OR OE EE es 2 1 3 Specifications as EE EE Ge EE RE De e Ge GN Ee Ed RR Ek RD Ge Dee 3 14 Supporting Software se ee ee ek ee Ge ee ee ee Re Re ee ee ee ee ee Re ee ee 5 1 4 1 Programming Library iese ER ee ee GR GR Re Re ee ee ee ee Ge Re Re ee 5 1 4 2 PCIS LVIEW LabVIEW Driver 6 14 3 PCIS VEE HP VEE DIiVel iese ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 6 1 4 4 DAQBench ActiveX Controls ii ee ee 6 14 5 DASYLab TM PRO ese ee ee nadreda Re Ee Ee Re Ee Re ee Re Ee Re ee ee 6 1 4 6 PCIS DDE DDE Server and INTOuCRT Mee ee 6 1 4 7 PCIS ISG ISAGRAF driver ee ee ee se ee 6 1 4 8 PCIS ICL InControl Driver ee ee ee 7 1 4 9 PCIS OPC OPC Server iese ee ee ee ee ee ee ee Ee ee ee ee ee Ee ee ee 7 Chapter 2 Installation e eie see ee EK RR ee Ee AE AR RR Re Ge Ge AE ER RR EG Ge Ge ee ee 8 2 1 What Yow Have Re es bation notte Ve ee ee ee EE Re Ges Se 8 2 2 UI et ee RE
66. r the A D converter Address BASE 0Ah Attribute write only Data Format EK te eee ee te 3 10 Hardware Interrupt Clear Registers Since the PCI interrupt signal is level triggered the interrupt clear register must be written to in order to clear the flag after processing an interrupt request event otherwise any further interrupt request inserted will cause the software to hang on processing the interrupt event There are two interrupt clear registers The two registers are used to clear IRQ1 and IRQ2 respectively Address BASE 0Ch Attribute write only Data Format Address BASE 0Eh Attribute write only Data Format EIE Meat NE EE EE AG ER 24 e Registers 3 11 Timer Counter Register The 8254 chip occupies 4 I O address locations in the PCI 9114 A as shown below Refer to NEC s or Intel s data sheet for full description of the 8254 features Data sheets are available for download from the following web sites 1 http support intel com support controllers peripheral 231164 htm 2 http www tundra com Address BASE 20h BASE 26h Attribute read write Data Format Base 20h Counter 0 Register R W Base 22h Counter 1 Register R W Base 24h Counter 2 Register R W Base 26h 8254 CONTROL BYTE W 3 12 High Level Programming To operate the PCI 9114 A the register structures can be bypassed if high level application programming interface API is used to control t
67. r this card Return Code None 66 e C C Library 5 31 9114 Get IRO Status Description This function is used to retrieve the status of the two IRQs INT1 and INT2 in the PCI 9114 A card Syntax C C DOS void 9114 Get_IRQ Status U16 cardNo U16 chl U16 ch2 C C Windows 95 void W_9114 Get_IRQ Status U16 cardNo U16 chl U16 ch2 Visual Basic Windows 95 W 9114 Get_IRQ Status ByVal cardNo As Integer chl As Integer ch2 As Integer Argument cardNo the card number of PCI 9114 A chl the IRQ status of INT1 ch2 the IRQ status of INT2 Return Code None card initialized C C Library e 67 5 32 9114 AD FFHF Polling Description This function is used to perform an AD data transfer by applying the half full polling mode This method checks the FIFO half full signal each time this function is called Refer to section 5 1 4 for details of the half full polling mode Syntax C C DOS ule 9114 AD FFHF Polling U16 cardNo 116 far ad_buf C C Windows 95 ule W 9114 AD FFHF Polling U16 cardNo 116 ad_buf Visual Basic Windows 95 W 9114 AD FFHF Polling ByVal cardNo As Integer ad_buf As Integer As Integer Argument cardNo the card number of PCI 9114 A 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_N
68. rupt is used to transfer any A D converted data this function must be used to clear the interrupt request status otherwise the new incoming interrupt will not be generated Syntax C C DOS void 9114 CLR_IRQ1 U16 cardNo C C Windows 95 void W 9114 CLR IRO1 U16 cardNo Visual Windows 95 W 9114 CLR TRO1 ByVal cardNo As Integer Argument None Return Code None 5 29 9114 CLR_IRQ2 Description This function is used to clear interrupt request that is requested by PCI 9114 INT2 Ifan interrupt is used to transfer any A D converted data this function must be used to clear the interrupt request status otherwise the new incoming interrupt will not be generated Syntax C C DOS void _9114 CLR_IRQ2 U16 cardNo C C Windows 95 void W_9114 CLR_IRQ2 U16 cardNo Visual Windows 95 W_9114 CLR_IRQ2 ByVal cardNo As Integer Argument None Return Code None C C Library e 65 5 30 9114 Get IRO Channel Description This function is used to retrieve the IRQ level of the PCI 9114 A card currently used Syntax C C DOS void 9114 Get_IRQ Channel U16 cardNo U16 irg no C C Windows 95 void W_91 4 Get_IRQ Channel U16 cardNo U16 irg no Visual Basic Windows 95 W 9114 Ge Integer Argument cardNo T t TRO Channel ByVal cardNo As Integer irq_no As he card number of PCI 9114 A card initialized Irq_no The IRQ level used to transfer A D data fo
69. selection The PCI card can be inserted into any PCI slot without any configuration modification to the system resources Please note that the PCI system board and slot must provide bus mastering capability to operate at its optimum level 2 4 3 Installation Procedures 1 Turn off your computer 2 Turn off all accessories printer modem monitor etc connected to your computer Remove the cover from your computer 4 Setup jumpers on the PCI or CompactPCI card Select a 32 bit PCI slot PCI slot are shorter than ISA or EISA slots and are usually white or ivory 6 Before handling the PCI cards discharge any static buildup on your body by touching the metal case of the computer Hold the edge and do not touch the components 7 Position the board into the PCI slot you have selected 8 Secure the card in place at the rear panel of the system Installation e 11 2 5 Device Installation for Windows Systems Once Windows 95 98 2000 has started the Plug and Play function of Windows will find the new NuDAQ NuIPC cards If this is the first time the NuDAO NuIPC cards are running on your Windows system you will be prompted to input the device information source Please refer to the Software Installation Guide for step by step installation procedures 2 6 Connector Pin Assignments 2 6 1 Pin Assignment of CN1 The PCI 9114 A comes equipped with a 37 pin D type connector CN1 The pin assignment for CN1 is illustrated in
70. setting any one of the dividers as 0 Since the AD conversion rate is limited due to the conversion time of the AD converter the highest sampling rate of the PCI 9114 A can not be exceeded 100 KHz Thus the multiplication of the dividers must be larger than 20 Syntax C C DOS ule 9114 AD Timer U16 cardNo U16 cl U16 c2 C C Windows 95 U16 W 9114 AD Timer U16 cardNo U16 cl U16 c2 Visual Basic Windows 95 W 9114 AD Timer ByVal cardNo As Integer ByVal cl As Integer ByVal c2 As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized cl frequency divider of timer 1 c2 frequency divider of timer 2 Return Code ERR_NoError 60 e C C Library 5 24 9114 Counter Start Only supported by the PCI 9114A or PCI 9114 Rev C2 and later Description Counter 0 of the PCI 9114 A Timer Counter chip is freely available for programming This function is used to program counter 0 This counter can be used as a frequency generator if an internal clock is used It can also be used as an event counter if an external clock is used All 8254 modes six operating modes are available Syntax C C DOS ule 9114 Counter Start U16 cardNo U16 mode U16 c0 C C Windows 95 Ul6 W 9114 Counter Start U16 cardNo U16 mode U16 c0 Visual Basic Windows 95 W_9114 Counter Start ByVal cardNo As Integer ByVal mode As Integer ByVal c0 As Integer As Integer Argument cardNo The card n
71. software can wait for at least 101s or dus before reading the A D register without polling The data polling transfer is suitable for applications that requires to process AD data in real time Especially when combined with a timer interrupt the timer interrupt service routine can use the data polling method to get multi channel A D data in real time and with a fixed data sampling rate 30 e Operation Theory FIFO Half Full Polling The FIFO half full polling mode is the most powerful AD data transfer mode The 1K word FIFO buffer can store up to 10 24 ms of analog data with a 100KHz sampling rate 10 24ms 1024 100KHZ or 4 096 ms of analog data under a 250KHz sampling rate 4 096ms 1024 250KHz Theoretically the software can poll the FIFO buffer every 10 or 4 ms It s recommended that users check their system to find out the user software s priority in 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 if it is full or empty every time the data is read To avoid problems 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 for half full signals every 5 ms and the FIFO is not half full the software does not read the data When the FIFO is full the AD FIFO is overflowing This means the sampling rate is hig
72. stband grounded at the same point as the anti static mat Inspect the card module carton for obvious damages Shipping and handling may cause damage to your module Be sure there are no shipping and handling damages on the modules carton before continuing After opening the card module carton extract the system module and place it only on a grounded anti static surface with component side up Again inspect the module for damages 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 ATTEMPT TO INSTALL A DAMAGED BOARD IN THE COMPUTER You are now ready to install your card Installation e 9 23 PCB Layout of PCI 9114 A 2 3 1 PCI 9114 Rev B1 sd lae 3 z3 Ea ss ee TP2 O Q EA al Sensor o se a o gt A ee d E p JA 2 ea ves enal El LJ 8 Ld Boot Rom TPL Crystal 5 Tysta E JP EN PGA 3 CN1 Gah Liisa R Coy Cd iene pel CPLD BEY FI lend onverter CAPSS MUX Controller T a fg 8 o GIE 8 m OED S MUX Toen Converter H a a Figure 2 PCB Layout of P
73. sual Basic Windows 95 W_9114 AD Get_Status ByVal cardNo As Integer ADStatus As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADStatus The status of AD FIFO The AD FIFO status could be one of the following ADSTS FF_EF FIFO is not empty ADSTS FF_HF FIFO is not half full ADSTS FF FF FIFO is not full ADSTS_BUSY AD is not busy Return Code ERR_NoError 52 e C C Library 5 15 9114 AD Set Mode Description This function is used to set the AD trigger mode Refer to section 5 1 3 for descriptions of the AD trigger modes Syntax C C DOS Ul6 9114 AD Set Mode U16 cardNo U16 ADMode C C Windows 95 U1l6 W 9114 AD Set Mode U16 cardNo U16 ADMode Visual Basic Windows 95 W 9114 AD Set Mode ByVal cardNo As Integer ByVal ADMode As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized ADMode The value of AD mode The returned value could be one or a combination of the following modes A_9114 AD TimerTrig A_9114 AD SoftTrig A 9114 AD AutoScan Return Code ERR_NoError C C Library e 53 5 16 9114 AD Get Mode Description This function is used to retrieve the AD mode from the AD trigger mode control register Refer to section 5 1 3 for details of the AD trigger modes Syntax C C DOS U16 9114 AD Get Mode U16 cardNo U16 ADMode C C Windows 95 Ul6 W 9114 AD Get Mode U16 cardNo U16 ADMode Visual Basic Wind
74. ter specifying the card type the program displays a set of instructions to guide you through to enable or disable the interrupts of the PCI 9114 A board Calibration amp Utilities e 89 Appendix A 8254 Programmable Interval Timer A 1 The 8254 Timer Counter Chip The Intel NEC 8254 contains three independent programmable multi mode 16 bit counter timers The three independent 16 bit counters can be clocked at rates from DC to 5 MHz Each counter can be individually programmed with 6 different operating modes by appropriately formatted control words The most common uses for the 8254 in microprocessor based systems are e Programmable baud rate generator e Event counter e Binary rate multiplier e Real time clock e Digital one shot e Motor control 90 e Appendix b 8254 Programmable Interval Timer A 2 The Control Byte The 8254 occupy 4 I O address locations in the PCI 9114 A VO map As shown in the following table LSB OR MSB OF COUNTER 0 LSB OR MSB OF COUNTER 1 LSB OR MSB OF COUNTER 2 CONTROL BYTE Before loading or reading any of these individual counters the control byte Base 26 must be loaded first The format of the control byte is Control Byte Line he IE EE IE EE EIE EI ee Sct Sco RET R0 v MT MO BCD e SC1 amp SC1 Select Counter Bit7 amp Bit 6 COUNTER e RL1 amp RLO Select Read Load operation Bit 5 amp Bit 4 Fo o COUNTERIATCH 07 ___ READILOADISB_
75. ter output An interrupt source multiplexer MUX is used to select the IRQ sources Fig 9 shows the interrupt system INT1 PCI IRQ INT A Controller iNT2 Flip Flops Clear IRQ 1 2 AD EOC FIFO Half full Timer Pacer ae Figure 9 Dual Interrupt System of PCI 9114 A 4 2 2 IRQ Level Setting There is only one IRQ level is used by this card although it is a dual interrupt system This card uses INT A interrupt request signal on the 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 is saved in the PCI controller It is not necessary for users to set the IRQ level Operation Theory e 35 4 2 3 Dual Interrupt System The PCI controller of the PCI 9114 can receive two hardware IRQ sources However a PCI controller can generate only one IRQ on the PCI bus the two IRQ sources must be distinguished by the ISR of the application software if the two IRQ are both used The application software can use the 9114 Get_Irq_Status function to distinguish which interrupt is inserted After servicing an IRQ signal users must check if another IRQ is also asserted then clear the current IRQ to allow the next IRQ to occur The two IRQs are named as INT1 and INT2 INT1 comes from AD EOC or the FIFO half full flag INT2 comes from timer s pacer output or the external interrupt request The sources of INT1 and INT2 are selective by th
76. the plug amp play PnP PCI BIOS User can study the PCI BIOS specification to understand the operation of the PCR Please contact PCISIG to acquire the specifications of the PCI interface The PCI bus controller PCI 9050 is provided by PLX technology Inc www plxtech com For more detailed information of the LCR please visit PLX technology s web site It is not necessary for users to fully understand in detail the LCR if the software library is used The PCI PnP BIOS assigns the base address of the LCR The assigned address is located at 14h of PCR The PCI 9114 A registers are shown in the next section The base address which is also assigned by the PCI PnP BIOS is located at an offset of 18h of the PCR Do not try to modify the base address and interrupt which is assigned by the PCI PnP BIOS it may cause resource conflicts in your system 18 e Registers 3 2 VO Address Map Most of the PCI 9114 A registers are 16 bits Users may access these registers with 16 bit I O instructions There is one 32 bit register on the PCI 9114 A This 32 bit register occupies a LCR address space its base address is 2 The base address is allocated by the PCI BIOS and is located at an offset 1Ch of the PCR Users may read the PCR to obtain the LCR base address and the two PCI 9114 A base addresses by using the PCI BIOS function call VO Base Address 1 Wie Ret Base 0Ch ClearHWIRQ Base 0Eh ClearHWIRQ2 _
77. umber of PCI 9114 A 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 Code ERR_NoError C C Library e 61 5 25 9114 Counter Read Only supported by the PCI 9114A or PCI 9114 Rev C2 and later Description This function is used to read the counter value from Counter 0 Syntax C C DOS U16 9114 Counter Read U16 cardNo U16 c0 C C Windows 95 u16 W 9114 Counter Read U16 cardNo U16 c0 Visual Basic Windows 95 W 9114 Counter Read ByVal cardNo As Integer c0 As Integer As Integer Argument cardNo The card number of PCI 9114 A card initialized c0 count value of counter 0 Return Code ERR_NoError 62 e C C Library 5 26 9114 Counter Stop Only supported for the PCI 9114A and PCI 9114 Rev C2 or later Description This function is used to stop the timers operation The timer is set as a 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 ule 9114 Counter Stop U16 cardNo U16 c0 C C Windows 95 U16 W 9114 Counter Stop U16 cardNo U16 c0 Visual Basic Windows 95 Ul6 W 9114 Counter Stop ByVal cardNo As Integer c0 As Integer As Integer Argument card
78. wing table shows the data type names and their range F32 32 bit single precision floating point 3 402823E38 to 3 402823E38 F64 64 bit double precision 1 797683134862315E308 to floating point 1 797683134862315E309 Boolean logic value TRUE FALSE 42 e C C Library 5 3 9114 Initial Description This function is used to initialize the PCI_9114 A Each PCI_9114 A card must be initialized by this function before other function calls are permitted Syntax C C DOS u16 9114 Initial U16 existCards PCI INFO info C C Windows 95 u16 W 9114 Initial U16 existCards PCI INFO info Visual Basic Windows 95 W 9114 Initial existCards As Integer info As PCI_INFO As Integer Argument existCards numbers of existing PCI 9114 A cards info relative information of the PCI 9114 A cards Return Code ERR_NoError ERR_BoardNoInit ERR_PCIBiosNotExist 5 4 9114 Software_Reset Description This function is used to reset the I O port configuration Note that this function does not reset the PCI bus and the hardware setting won t be changed Syntax C C DOS void _9114 Software Reset U16 cardNo C C Windows 95 void W_9114 Software Reset U16 cardNo Visual Basic Windows 95 W_9114 Software Reset ByVal cardNo As Integer Argument cardNo The card number of initialized PCI 9114 A card Return Code None C C Library e 43 5 5 9114 DO Description This function
Download Pdf Manuals
Related Search
Related Contents
DAD Sierra Leone User Manual XP24-300 XP24-600 User Manual NA-9161 Lightolier Eye-QLB EYS4LNFX354 User's Manual Phase One H 5 User's Manual 主な部品交換方法(取扱説明書より抜粋)pdf L2 / L3 Switches Internet Protocol (IP) Configuration MODE D`EMPLOI IME 1 A 取扱説明書 PSC - Allegato 2 - AQ Elettrico Quadriennale Copyright © All rights reserved.
Failed to retrieve file