Home

PCI 14 Series

image

Contents

1. Eagle Technology Copyright 2001 28 PCI 14 Series User Manual Eagle Technology Data Acguisition C Ordering Information Board Description PCI 14B 48 channel digital VO and 6 counters board PCI 14C 48 channel digital VO and 2 counters board Table C 1 Ordering Information Eagle Technology Copyright 2001 29
2. PCI 14 Series PCI PnP Digital I O Board Users Manual Revision 1 3 Eagle Technology Cape Town South Africa Copyright 2001 PCI 14 Series User Manual Eagle Technology Data Acguisition Digital I O Boards Data Acduisition and Process Control Eagle Technology 31 35 Hout Street e Cape Town e South Africa Eagle Technology Copyright 2001 i PCI 14 Series User Manual Eagle Technology Data Acguisition Copyright All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or any means electronic mechanical by photographing recording or otherwise without prior written permission Copyright Eagle Technology South Africa August 2001 Revision 1 3 Information furnished in this manual is believed to be accurate and reliable however no responsibility is assumed for its use or any infringements of patents or other rights of third parties which may result from its use Trademarks and Logos in this manual are the property of their respective owners Product Warranty Eagle Technology South Africa warrants its products from defect in material and workmanship from confirmed date of purchase for a period of one year if the conditions listed below are met The product warranty will call the Eagle Technology Data Acquisition Device short as ETDAQD e The warranty does not apply to an ETDAQD that has been previously repaired altered ex
3. ER GEK DER EE Ee ERK ER NE i 11 Table 4 1 Device Address Map iss EER cies RE RR EER Pe Ee 13 Table 4 2 Counter Mode Register sesse ee ee ee ee 14 Table 4 3 Counter Configuration Register see ee ee ee ee ee ee 14 Table 4 4 Interrupt Mask Register sees ee ee RR Re ee ee ee ee 15 Table 4 5 Interrupt Control Register ee ee ee 15 Table 4 6 Mode and initial count limits 0 2 0 0 eee RR ee ee 18 Table 5 1 Clock Configuration SS iv cscs oe Ge ereen 22 Table 5 2 Gate Configuration sesde ie ee ek ke ee ke ee ek Ge Mk 22 Table 5 3 Multiple VO GonfiGUFAHOR sie GEE EK EER DEE Dee ERGE DEE eb Week Eed 23 Table 5 4 EDRE_IntConfigure Parameters 24 Table A 1 VO Electrical Specifications 2 0 0 0 ee ee ee 26 Table B 1 Query Gode ss ES EE ae aie ies 27 Table B 2 Error Godes si EO EE RD ER DO RI DO ER Ee n Ee ER De RR eN 28 Table B 3 Digital VOE ode 8 RR RE EE RI SEER RE GEE KG GE ER REG GE Ke GE kig Es 28 Table C 1 Ordering Information esse ee ee ee Re ee 29 Eagle Technology Copyright 2001 vii PCI 14 Series User Manual Eagle Technology Data Acguisition 1 Introduction The PCI14 series are 32 bit PCI bus architecture data acquisition boards They are available in two basic models the B and C The PCI14 contains digital input and output ports and onboard counters The PCI14 is a multi purpose digital board that can be used in many applications It also contains featur
4. Eagle Technology Data Acguisition Counter Configuration Register 2 0 Interrupt Mask Register 13 0 Interrupt Control Register 27 0 Interrupt Status Register 13 0 Counter Mode 0 Interrupt on terminal count Counter Mode 1 Hardware re triggerable one shot Counter Mode 2 Rate Generator Counter Mode 3 Sguare Wave Generator Counter Mode 4 Software Triggered Strobe Counter Mode 5 Hardware Triggered Strobe Minimum Initial Counter Limits 5 PROGRAMMING GUIDE EDR Enhanced API Examples Digital Inputs Reading the Digital Inputs Digital Outputs Writing to the Digital Outputs Counters Writing the initial counter value Reading a Counter Configuring a counter Controlling the counter gate Configuration Constants Multi Function VO Configuring the outputs Programming Interrupts Configuring the Interrupt sub system Enabling Interrupts Disabling Interrupts Programming interrupts by using the EDREIntX OCX Visual Basic Interrupt Example A VO ELECTRICAL SPECIFICATIONS 14 14 15 15 15 16 16 17 17 18 18 19 19 19 19 20 20 20 20 20 21 21 21 22 22 22 23 23 24 24 25 25 26 Eagle Technology Copyright 2001 PCI 14 Series User Manual Eagle Technology Data Acguisition B CONFIGURATION CONSTANTS Query Codes Error Codes Digital VO Codes C ORDERING INFORMATION 27 27 28 28 29 Eagle Technology Copyright 2001 PCI 14 Series User
5. Insert bracket screw and ensure that the board sits firmly in the PCI socket e Replace the cover of the PC e Reconnect all power cables and switch the power on e The hardware installation is now completed Eagle Technology Copyright 2001 3 PCI 14 Series User Manual Eagle Technology Data Acguisition Software Installation Windows 98 2000 ME Installing the Windows 98 2000 device driver is a very straightforward task Because it is plug and play Windows will auto detect the PCI14 as soon as it is installed No setup is necessary You simply have to supply Windows with a device driver Wait until Windows detects the new hardware Add New Hardware Wizard Figure 2 1 Add New Hardware Wizard Step1 Select Next Eagle Technology Copyright 2001 4 PCI 14 Series User Manual Eagle Technology Data Acguisition Add New Hardware Wizard What do vou want Windows to do rd Display a list of all the drivers in a specific location so you can select the driver vou want lt Back Cancel Figure 2 2 Add New Hardware Wizard Step2 Select default option search for best driver and select next Add New Hardware Wizard Windows will search for new drivers in its driver database on your hard drive and in any of the following selected locations Click Next to start the search I Floppy disk drives T CD ROM drive I Microsoft Windows Update IV Specify a location JEADRIVE
6. board s revision Query a board s manufactured year Query a board s manufactured month Query a board s manufactured day Query a board s serial number Query a drivers major version number Query a driver s minor version number Query a driver s build version number Query number of ADC channel Query number of samples and hold channels Query maximum sampling frequency Check if ADC system is busy Get ADC hardware FIFO size Check for FIFO overrun condition Check software buffer size Check for circular buffer overrun Check if software buffer is allocated Get number of samples available Get status of external clock line PCI30FG Get status of external trigger line PCI30FG Check if burst mode is enabled Get ADC range Query number of DAC channels Query maximum DAC output frequency Check if DAC system is busy Get DAC FIFO size Query number of counter timer channels Check if counter timer system is busy Query number of digital I O ports Query a specific port for capabilities Get a specific port s width Query number of interrupts sources Queries interrupt systems status Connect interrupt system to bus Check if an interrupt is available Check number times interrupted Eagle Technology Copyright 2001 27 PCI 14 Series User Manual Error Codes EDRE OK EDRE_FAIL EDRE_BAD_FN EDRE_BAD_SN EDRE_BAD_DEVICE EDRE_BAD_OS EDRE_EVENT_FAILED EDRE_EVENT_TIMEOUT EDR
7. needs to be passed and the returned value will either hold an error or the value read If the value is negative an error did occur Digital Outputs Digital outputs are used to control devices with digital inputs The PCI14B C has got 24 inputs and depending on which version extensive or minimal output protection The 24 inputs lines are split into 3 x 8 bit ports and assigned in the following configuration lines 0 7 represents port 0 lines 8 15 represents port 1 lines 16 23 represents port 2 Writing to the Digital Outputs A single call is necessary to write to a digital VO port API CALL Long EDRE DioWrite ulng Sn ulng Port ulng Value The serial number port and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Write long Port ulng Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Counters The counter sub system is supported by functions to Read Write Configure and controlling the gate Writing the initial counter value A single call is necessary to write a counter s initial load value API CALL Long EDRE_CTWrite uIng Sn ulng Ct ulng Value The serial number counter number and a value must be passed by the calling function A return code will indicate if any errors occurred Eagle Technology Copyright 2001 2
8. re triggerable if the initial count is written before the terminal count condition is reached Gate 1 enables counting Gate 0 disables counting Counter Mode 5 Hardware Triggered Strobe Clk fk eG A E 4 Eh fe Fe FRE yJ Load f ICout 35 i Gate Coun an 0 TC Figure 4 6 Counter Mode 5 Edge rather than level dependent Similar to mode four with the exception that the rising edge of GATE is used to re trigger the initial counter and TC conditions Minimum Initial Counter Limits The minimum initial counter values are mode dependent and defined as in the Table below Mode Minimum initial count value 1 Table 4 6 Mode and initial count limits Eagle Technology Copyright 2001 18 PCI 14 Series User Manual Eagle Technology Data Acguisition 5 Programming Guide The PCI14B C is supplied with a complete software development kit EDR Enhanced EDRE SDK comes with drivers for many operating systems and a common application program interface API The API also serves as a hardware abstraction layer HAL between the control application and the hardware The EDRE API makes it possible to write an application that can be used on all hardware with common sub systems The PCI14B C can also be programmed at register level but it is not recommended A detailed knowledge of the PCI14B C is needed and some knowledge about programming Plug and Play PCI devices We recommend that you only m
9. that is faster than what Windows can service Don t try and generate interrupt faster than 10KHz This will not work Remember this is 10KHz in total and not per source The PCI14B interrupt service routine will stop servicing interrupts if at any stage it is still busy with an interrupt and the next one is generated Configuring the Interrupt sub system A single call is necessary to configure the interrupt sub system API CALL Long EDRE IntConfigure ulng Sn ulng Src ulng Mode ulng Type Parameter Description Sn Unsigned long Board s Serial Number Src Unsigned long Interrupt Source No Description DIO Line 0 DIO Line 1 DIO Line 2 DIO Line 3 DIO Line 4 DIO Line 5 DIO Line 6 DIO Line 7 TC Counter 0 TC Counter 1 TC Counter 2 oO WO oo OU ELE ml O Eagle Technology Copyright 2001 23 PCI 14 Series User Manual Eagle Technology Data Acguisition TC Counter 2 TC Counter 3 TC Counter 4 TC Counter 5 Unsigned long e or Enable a source 0 Disable 1 Enable Unsigned long Set the type of trigger for the interrupt No Description 0 Rising Edge 1 Falling Edge 2 Levels 3 Level s 0 RETURN This parameter contains the error code return If 0 then no error occurred Table 5 4 EDRE_IntConfigure Parameters ACTIVEX CALL Long EDREIntX Configure long Source long Mode long Type As the DLL
10. type this parameter is ignored clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred Controlling the counter gate A single call is necessary to setup control a counter s gate API CALL Long EDRE_CTSoftGate ulng Sn ulng Ct ulng Gate The serial number counter number and gate is needed to control a counters gate A return code will indicate if any errors occurred Eagle Technology Copyright 2001 21 PCI 14 Series User Manual Eagle Technology Data Acguisition ACTIVEX CALL Long EDRECTX SoftGate ulng Ct ulng Gate The counter number and mode is needed to control a counter s gate A return code will indicate if any errors occurred Configuration Constants These values are acceptable as a clock source Value Description 0 Internal 40Mhz 1 External Table 5 1 Clock Configuration These values are acceptable as a gate source Description Gate disabled Gate enabled Gate external Table 5 2 Gate Configuration Multi Function VO The PCI14 has got some multi VO lines These are VO lines on the connector that is shared by the counter and digital outputs The output lines can also be configured to be high impedance or enabled The multi VO configure function is used to set this up Configuring the outputs A single call is necessary to configure the output lines of the PCI14 API CALL Long EDRE MioConfig ulng Sn ulng Port u
11. 0 PCI 14 Series User Manual Eagle Technology Data Acguisition ACTIVEX CALL Long EDRECTX Write long Port ulng Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Reading a Counter A single call is necessary to read a counter s current value API CALL Long EDRE_CTRead ulng Sn ulng Ct ulng Value The serial number counter number and a pointer to variable to hold the result must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Read long Ct Only the counter number needs to be passed and the returned value will either hold an error or the value read If the value is negative an error did occur The counter number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Configuring a counter A single call is necessary to configure a counter API CALL Long EDRE CTConfig ulng Sn ulng Ct ulng Mode ulng Type ulng ClkSrc uing GateSrc The serial number counter number mode type this parameter is ignored clock source and gate source is needed to specify a counter s configuration A return code will indicate if any errors occurred ACTIVEX CALL Long EDRECTX Configure long ct long mode long type ulng source ulng gate The counter number mode
12. 5V 18 mA 18 mA Maximum Output Frequency 8 MHz 8 MHz Short Circuit protection 40 to 140 mA 40 to 140 mA Maximum Continuous Over Voltage Stress Note 1 32V 5 5V Maximum Continuous Under Voltage Stress Note 1 32V 0 8 V Maximum Output Voltage Spike lt 50 ms Relative to DGND 80 V Table A 1 I O Electrical Specifications Note 1 For Option B the outputs are protected by 100 mA 20 mA at 25 C polyfuses and 5 6V transorbs Over or under voltage stress levels longer than 50 ms will activate the fuse protecting the driver Note also that once activated such fuses have a fairly long recovery time Eagle Technology Copyright 2001 26 PCI 14 Series User Manual Eagle Technology Data Acduisition B Configuration Constants Query Codes APIMAJOR APIMINOR APIBUILD APIOS APINUMDEV BRDTYPE BRDREV BRDYEAR BRDMONTH BRDDAY BRDSERIALNO DRVMAJOR DRVMINOR DRVBUILD ADNUMCHAN ADNUMSH ADMAXFREQ ADBUSY ADFIFOSIZE ADFIFOOVER ADBUFFSIZE ADBUFFOVER ADBUFFALLOG ADUNREAD ADEXTCLK ADEXTTRIG ADBURST ADRANGE DANUMCHAN DAMAXFREQ DABUSY DAFIFOSZ CTNUM CTBUSY DIONUMPORT DIOQRYPORT DIOPORTWIDTH INTNUMSRC INTSTATUS INTBUSCONNECT INTISAVAILABLE INTNUMTRIG Table B 1 Query Code Description Query EDRE API major version number Query EDRE API minor version number Query EDRE API build version number Query EDRE API OS type Query number of devices installed Query a board s type Query a
13. E_INT_SET EDRE_DA_BAD_RANGE EDRE_AD_BAD_CHANLIST EDRE_BAD_FREQUECY EDRE_BAD_BUFFER SIZE EDRE_BAD_PORT EDRE_BAD_PARAMETER EDRE_BUSY EDRE IO FAIL EDRE BAD ADGAIN EDRE BAD OUERY EDRE BAD CHAN EDRE BAD VALUE EDRE BAD CT EDRE_BAD_CHANLIST EDRE_BAD_CONFIG EDRE BAD MODE EDRE HW ERROR EDRE HW BUSY EDRE BAD BUFFER EDRE REG ERROR EDRE OUT RES EDRE IO PENDING Table B 2 Error Codes Digital I O Codes DIOOUT DIOIN DIOINOROUT DIOINANDOUT Table B 3 Digital VO Codes Eagle Technology Data Acduisition Description Function successfully Function call failed Invalid function call Invalid serial number Invalid device Function not supported by operating system Wait on event failed Event timed out Interrupt in use DAC value out of range Channel list size out of range Freguency out of range Data passed by buffer incorrectly sized Port value out of range Invalid parameter value specified System busy IO call failed ADC gain out of range Query value not supported Channel number out of range Configuration value specified out of range Counter timer channel out of range Channel list invalid Configuration invalid Mode not valid Hardware error occurred Hardware busy Buffer invalid Registry error occurred Out of resources Waiting on I O completion Description Port is an output Port is an input Port can be configured as in or out Port is an input and an output
14. End Sub Private Sub EDREIntX1_Interrupt ByVal Source As Long this is the interrupt service routine End Sub Private Sub Form Load sn EDREUtIX1 SelectDialog get a board s serial number EDREIntX1 SerialNumber sn set the interrupt OCX serial number err EDREIntX1 Configure 0 1 0 configure interrupt system source 0 mode enable type 0 End Sub Eagle Technology Copyright 2001 25 PCI 14 Series User Manual Eagle Technology Data Acguisition A I O Electrical Specifications SPECIFICATION PCI 14B PCI 14C Digital Inputs Minimum input voltage Relative to DGND to register a logic 1 2 5V 2 5V Maximum input voltage Relative to DGND to register a logic 0 1 0V 1 0V Maximum Input Frequency 8 MHz 8 MHz Maximum Continuous Input Voltage Relative to DGND 32V 32V Maximum Input Voltage Spike lt 100 ms Relative to DGND 80V 80V Counter Clock and Gate Control Inputs Minimum input voltage Relative to DGND to register a logic 1 2 5V 2 5V Maximum input voltage Relative to DGND to register a logic 0 1 0 V 1 0V Maximum Input Frequency 8 MHz 8 MHz Maximum Continuous Input Voltage Relative to DGND 32V 32V Maximum Input Voltage Spike lt 50 ms Relative to DGND 80V 80V Digital Outputs amp Counter Timer Outputs Number of Digital Outputs Multiplexed with counter TC outputs 24 24 Sink current Output voltage lt 0 5V 48 mA 48 mA Source current Output voltage gt 2
15. Input 1 Bit 5 4 Input 2 Bit 7 6 Input 3 Bit 9 8 Input 4 it 11 10 Input 5 it 13 12 Input 6 it 15 14 Input 7 it 17 16 Counter 0 TC it 19 18 Counter 1 TC it 21 20 Counter 2 TC it 23 22 Counter 3 TC it 25 24 Counter 4 TC it 27 26 Counter 5 TC B B B B B B B B B Table 4 5 Interrupt Control Register Interrupt Status Register 13 0 The Interrupt Status Register supply information on current triggered interrupts The register is 14 bit wide for each interrupt source If set Counter Mode 0 Interrupt on terminal count Eagle Technology Copyright 2001 15 PCI 14 Series User Manual Eagle Technology Data Acduisition Coe 6 LRO Ny fy i Ba EN 9 4 Load Count Gate 7 TEI 0 BY B WA MR Figure 4 1 Counter Mode 0 TC will be initialized to 0 two clocks after the counter is loaded with an initial count TC will toggle to a 1 one clock after the counter has reached zero This state is maintained until the initial count is re loaded Gate 1 enabled counting Gate 0 disable counting Only the rising edge of Gate is significant Counter Mode 1 Hardware re triggerable one shot Che ea EUO rA pod a E3 fv FY Load Cot zy Gate OER ne Ta Se E pe 9 EE EE O Oo o iin Figure 4 2 Counter Mode 1 The rising edge of GATE reloads the counter with the initial count initializes TC to 1 and starts the down count sequence Further ris
16. Manual Eagle Technology Data Acguisition Table of Figures Figure 2 1 Add New Hardware Wizard Step 2222 ssszz ee ee ee ee ee 4 Figure 2 2 Add New Hardware Wizard Step2 iis ss ese ee ee ee ee ee ee ee ee ee 5 Figure 2 3 Add New Hardware Wizard Step iese ese ee ee ee ee ee ee ee ee ee 5 Figure 2 4 Add New Hardware Wizard Step4 esse ee ee ee ee ee ee ee ee ee 6 Figure 2 5 Add New Hardware Wizard Stepd i iis ss ee ee ee ee ee ee ee ee ee 6 Figure 2 6 Restart Your Computer EE EN SEE EE AE ER RE ee GEEN ed 7 Figure 2 7 System Properties ccccccceeesssssscccceeeeeeeeeeeesseeeeeeeeeeeseeesenseeeeaes 7 Fig re 2 SEadle DA oe esetet EER Me kel s beee RE ig AE de ke ve 8 Figure 4 1 Counter Mode 0 iese ee ee AA ee ee 16 Figure 4 2 Counter Mode 1 EE de ee Be De ee Re see 16 Figure 4 3 Counter Mode 2 En EE EER os MEER ED ud ee ke ee cet 17 Figure 4 4 Counter Mode 3E Ee De GE GE 2 17 Figure 4 5 Counter Mode 4 iese ee ee AA ee ee 17 Figure 4 6 Counter Mode 5 EE SERE Ge ee ee DEE EER EER EE EE ee Ee kg ee 18 Eagle Technology Copyright 2001 Vi PCI 14 Series User Manual Eagle Technology Data Acguisition Table of Tables Table dt PEL VS SI NS AE Ee GE Ge ee sie 1 Table 3 1 External Connector SCSI 68F CENT 2 2 11 Table 3 2 Input ports tact eh Ae El ets HE Aa Ue eat ems 11 Table 3 3 QUtPU POS ese EE Ed ee ER RE EER RE Ee ER GEE
17. RSSWINSX PCI36C 7 Browse oaee Figure 2 3 Add New Hardware Wizard Step3 Select specify a location and enter the directory location of the driver on the Eagle CD Rom The driver should be located in the lt CDROM gt EDRE Drivers WDM PCI14B directory Select Next to proceed Eagle Technology Copyright 2001 5 PCI 14 Series User Manual Eagle Technology Data Acguisition Add New Hardware Wizard Windows driver file search for the device PCI36C Digital 1 0 Board Windows is now ready to install the best driver for this device Click Back to select a different driver or click Next to continue Location of driver Figure 2 4 Add New Hardware Wizard Step4 Windows should have detected the proper driver and ready to install it Select Next to proceed Add New Hardware Wizard 2 PCI36C Digital IZ Board Windows has finished installing the software that your new hardware device requires Figure 2 5 Add New Hardware Wizard Step5 Click on the finish button to complete the installation Click Yes to restart your computer Eagle Technology Copyright 2001 6 PCI 14 Series User Manual Eagle Technology Data Acguisition System Settings Change Q To finish setting up your new hardware you must restart your computer Do you want to restart your computer now Figure 2 6 Restart Your Computer Post installation After your installation was complete there
18. ake use of the software provided by Eagle Technology EDR Enhanced API The EDR Enhanced SDK comes with both ActiveX controls and a Windows DLL API Examples are provided in many different languages and serve as tutorials EDRE is also supplied with a software manual and user s guide The EDRE API hides the complexity of the hardware and makes it really easy to program the PCI14 It has got functions for each basic sub system and is real easy to learn Examples Please refer to the examples directory found in the EDRE folder of the CD Rom There are some complete PCI14B examples Digital Inputs Digital inputs are used to read or monitor devices with a digital output capability The PCI14B C has got 24 inputs and depending on which version extensive or minimal input protection The 24 inputs lines are split into 3 x 8 bit ports and assigned in the following configuration lines 0 7 represents port 0 lines 8 15 represents port 1 lines 16 23 represents port 2 Eagle Technology Copyright 2001 19 PCI 14 Series User Manual Eagle Technology Data Acguisition Reading the Digital Inputs A single call is necessary to read a digital VO port API CALL Long EDRE_DioRead ulng Sn uing Port ulng Value The serial number port and a pointer to variable to hold the result must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX Read long Port Only the port number
19. ation Register 2 0 The counter configuration register is used to setup the source clock and gate for each counter Writing to this register always forces the Terminal Count TC line to initialize Bit 0 2 Description Bit 0 Specifies the Clock Source 0 Clock source is internal 40 MHz 1 Clock source is external Bit 2 1 00 Gate is disabled 01 Gate is enabled 10 Gate is external Table 4 3 Counter Configuration Register Interrupt Mask Register 13 0 The interrupt mask register is used to enable or disable all 14 interrupt sources Eight interrupt are derived from the first 8 digital input lines and 6 from the counters A logic 1 mask an interrupt and a logic 0 enables an interrupt Bits 0 13 Description Input line 0 Input line 1 Input line 2 Input line 3 Input line 4 Input line 5 Eagle Technology Copyright 2001 14 PCI 14 Series User Manual Eagle Technology Data Acduisition Input line 6 Input line 7 Counter terminal count 0 Counter terminal count 1 Counter terminal count 2 Counter terminal count 3 Counter terminal count 4 Counter terminal count 5 Table 4 4 Interrupt Mask Register Interrupt Control Register 27 0 The interrupt control register is used to setup each interrupt source Each source can be programmed for edge level or polarity trigger Bits 0 27 Description Bit 1 0 Input 0 0 0 Rising Edge 0 1 Falling Edge 1 0 Level 1 0 0 Level 0 Bit 3 2
20. call the ActiveX function takes the same parameters except the serial number Enabling Interrupts A single call is necessary to enable the interrupt sub system This will also enable the global interrupt on the PCI14B and connect it to the PCI Bus API CALL Long EDRE IntEnable ulng Sn Only a serial number needs to be specified The return code will contain the status of the call ACTIVEX CALL Long EDREiIntX Enable A returned error code will contain the status of the call Disabling Interrupts A single call is necessary to disable the interrupt sub system API CALL Long EDRE_IntDisable uIng Sn Only a serial number needs to be specified The return code will contain the status of the call ACTIVEX CALL Long EDREIntX Disable A returned error code will contain the status of the call Eagle Technology Copyright 2001 24 PCI 14 Series User Manual Eagle Technology Data Acguisition Programming interrupts by using the EDREIntX OCX The interrupt OCX makes programming interrupts very easy You only have to configure the interrupts Enable Disable it and implement a trigger The trigger will also supply you with the source of the interrupt By simply clicking on the control your programming language will jump to the code for you trigger procedure Visual Basic Interrupt Example Option Explicit Dim err As Long Private Sub Command1 Click EDREIntX1 Enable End Sub Private Sub Command2_Click EDREIntX1 Disable
21. es for digital input and output protection The counter modes are compatible with the Intel 8254 Features The PCI14 does have some very unigue features and are short listed below 32 bit PCI bus Revision 2 2 compliant at 33MHz PCI Bus 3 3V compatible 6 counters for B version and 2 for C version Counter modes are compatible with Intel 8254 Fully configurable counter sub system includes internal clock source 4OMHZ or external internal or external gates 24 x digital input lines and 24 x digital output lines e 50 mA sink 20 mA source digital outputs with short circuit protection High impedance on power up or loss e Overvoltage protection on all digital inputs e Overvoltage protection on digital outputs B version only e Fully programmable interrupt system interrupts generated from counters or 8 x digital inputs Feature PCI14B PCI14C Number of digital input channels 24 24 Number of digital output channels 24 24 Number of 24 bit counters 6 2 High voltage digital input protection Yes Yes High voltage digital output protection Yes No Table 1 1 PCI14 Versions Eagle Technology Copyright 2001 1 PCI 14 Series User Manual Eagle Technology Data Acguisition Applications The PCI14 can be used in the following applications Digital control applications Digital monitoring applications Freguency measurement Pulse generation Timing applications Pulse counting Key Specifications e 24 bit dig
22. fset of base address 0 Offset Register Name Description Read Write Address HEX CNTO MODE Mode Register CNTO COUNT Initial count Current count CNTO_CONFIG iguration CNT1 MODE ister CNTI COUNT itial count Current count CNT1 CONFIG iguration CNT2 MODE ister CNT2 COUNT itial count Current count CNT2 CONFIG iguration CNT3 MODE ister CNT3 COUNT itial count Current count CNT3 CONFIG iguration CNT4 MODE ister CNT4 COUNT itial count Current count CNT4 CONFIG iguration CNT5 MODE ister CNT5 COUNT itial count Current count CNT5 CONFIG iguration INT_MASK Interrupt mask INT CONTROL Interrupt control INT STATUS Interrupt status Reset OUTPUT CNTRL Setup output sources OUTPUT REG Setting output lines INPUT REG Reading input lines EEPROM REG EEPROM Interface Table 4 1 Device Address Map Eagle Technology Copyright 2001 13 PCI 14 Series User Manual Eagle Technology Data Acduisition Counter Mode Register 2 0 This is a 3 bit register defining the mode of a specific counter If written to the Terminal Count TC will be initialized Bits 0 2 Description Table 4 2 Counter Mode Register Counter Count Register 23 0 By writing to the count register the initial count of the counter is determined The value will be loaded and when clocked the counter will start to count down By reading the count register the current count value is returned This register is 24 bits wide Counter Configur
23. he 24 lines are split into 3 ports of 8 bits This is to be compatible with the ISA PC14B Port Lines 0 1 8 1 9 16 2 17 24 Table 3 2 Input ports Digital Outputs The PCl14 has got 24 digital output lines See specification for output protection Please note when programming the PCI14 the 24 lines are split into 3 port of 8 bits This is to be compatible with the ISA PC14B The outputs can also be configured to be high impedance Lines 1 6 are the same as the 6 terminal count lines of the counters and must be configured for either Port Lines 0 1 8 1 9 16 2 17 24 Table 3 3 Output ports Eagle Technology Copyright 2001 11 PCI 14 Series User Manual Eagle Technology Data Acguisition Counters There are 6 counter or 2 counters on the PCI14 depending on the version The counter modes are fully compatible with the Intel 8254 and can be programmed for internal clock or gate or external clock or gate or a combination of clock and gates All external clock and gate lines are accessed via the external connector The terminal count lines are shared with the first 6 digital output lines and have to be configured for either It has an internal clock of AOMHz Eagle Technology Copyright 2001 12 PCI 14 Series User Manual Eagle Technology Data Acduisition 4 Functional Overview This section provides a functional overview of the PCI14B board Device Address Map The table below defines the address map as per of
24. ing edges of GATE will re initialize this state TC will toggle to 0 whenever the counter reaches the count of two This state is maintained until a new GATE trigger event is detected Counter Mode 2 Rate Generator Eagle Technology Copyright 2001 16 PCI 14 Series User Manual Eagle Technology Data Acduisition AE EE EEN ME 32 Ti Pi fi Load Count 3 Figure 4 3 Counter Mode 2 TC will be initialized to 1 two clocks after the counter is loaded with an initial count and the counter enabled to count down GATE 1 On the clock following the count of ONE the counter will be reloaded with the initial count and TC toggled to a 0 TC will toggle back to a 1 on the next clock This sequence is maintained Gate 1 enables counting Gate 0 disable counting Counter Mode 3 Square Wave Generator Load S ICount Figure 4 4 Counter Mode 3 This is the similar to mode 2 except that TC has a 50 duty cycle signal Counter Mode 4 Software Triggered Strobe CKA RK TA Jo ru Fa RA FT ae Load i ICout 7 Gate Coun 0 0 0 TE f Figure 4 5 Counter Mode 4 Eagle Technology Copyright 2001 17 PCI 14 Series User Manual Eagle Technology Data Acduisition TC and the counter are initialized whenever the software writes the initial count register TC will pulse low for one clock period after the counter has reached zero Note that is seguence is
25. is a few steps that can be followed to check that your installation was successful e First make sure that the driver is working properly by opening the system folder in the control panel e Check under the Eagle Data Acquisition list if your board is listed and working properly See picture below 15x lt D Ac Bl Computer EI Disk drives Em Display adapters di DYD CD ROM drives lt p Eagle Data Acquisition SP Pcil4b DIO and CT Board 3 Floppy disk controllers 9 Floppy disk drives SS IDE ATA ATAPI controllers 3 Keyboards A Mice and other pointing devices 3 Ports COM amp LPT g Sound video and game controllers Mm System devices Universal Serial Bus controllers e a os Go Je E E H H Figure 2 7 System Properties e Clearly you can see that the PCI14 is listed and working properly Eagle Technology Copyright 2001 7 PCI 14 Series User Manual Eagle Technology Data Acguisition e Further open the control panel and then the EagleDAQ folder This dialog should list all installed hardware Verify your board s properties on this dialog See picture below EDRE DAQ Board Configuration amp Information EDR Enhanced Software Development Kit Eagle Technology Copyright c 1994 2000 Cape Town South Africa http www eagle co za email eagle eagle co za EDRE API Information EDRE API Version 7 30 Operina System Wind
26. ital input port e 24 bit digital output port e 24 bit counters Software Support The PCl14 is supported by EDR Enhanced and comes with an extensive range of examples The software will help you to get your hardware going very quickly It also makes it easy to develop complicated control applications quickly All operating system drivers utility and test software are supplied on the EDR Enhanced CD Rom The latest drivers can also be downloaded from the Eagle Technology website For further support information see the Contact Details section Contact Details Eagle Technology Copyright 2001 2 PCI 14 Series User Manual Eagle Technology Data Acguisition 2 Installation This chapter describes how to install and configure the PCI14 for the first time Minimal configuration is necessary almost all settings are done through software The PCI BIOS or operating system will take care of all resource assignments Package PCI14 package will contain the following e PCI14 PCI board e EDR Enhanced Software Development Kit CD Rom Hardware Installation This section will describe how to install your PCI14 into your computer e Switch off the computer and disconnect from power socket Failure to disconnect all power cables can result in hazardous conditions as there may be dangerous voltage levels present in externally connected cables e Remove the cover of the PC e Choose any open PCI slot and insert PCI14 board e
27. lng Value The serial number Port Line number and a value must be passed by the calling function A return code will indicate if any errors occurred ACTIVEX CALL Long EDREDioX MioConfigure long Port long Value The port number and value to be written needs to be passed and the returned value holds an error or the value read If the value is negative an error did occur Please use the table below as reference 0 Output 0 1 Counter 0 TC 0 Output 1 1 Counter 1 TC 0 Output 2 Eagle Technology Copyright 2001 22 PCI 14 Series User Manual Eagle Technology Data Acguisition Counter 2 TC Output 3 Counter 3 TC Output 4 Counter 4 TC Output 5 Counter 6 TC Outputs are high impedance Outputs are active 1 0 1 0 1 0 1 0 1 Table 5 3 Multiple I O Configuration Programming Interrupts The PCI14B can generate interrupts from 14 different sources which include digital inputs and counters The interrupt sub system is totally programmable and user space interrupt service routines are triggered through events from the driver If an event is triggered it also needs to be cleared The EDRE interrupt system includes functions to configure enable disable The configuration function is used to configure a specific interrupt source and Enable and Disable to globally control interrupts WARNING Be careful when programming the interrupt sub system because it is easy to generate interrupts
28. ows 95 98 VD Installed Boards Board Information l PCI36C 24 Ch DIO Board 16 O C Outputs 100000001 Board Type 2 Driver Version fi 1 6 Manufactured On 2776 2000 Revision E Figure 2 8 EagleDAQ Now the first part of your installation has been completed and ready to install the EDR Enhanced Software Development Kit e Run setup exe found on the EDR Enhanced SDK CD Rom and follow the on screen instructions Windows NT Windows NT does not require any special setup procedure The Windows NT driver does not support plug and play If Windows 2000 detects a new device simply install a default driver or so called placeholder To install the Windows NT drivers simply run EDREWinnt exe on the Eagle CD Rom This will automatically install the device drivers Restart your computer when done Open the EagleDAQ folder in the control panel to check if your installation was successful Figure 2 8 shows a successful installation Eagle Technology Copyright 2001 8 PCI 14 Series User Manual Eagle Technology Data Acguisition Testing your board To test your board run the application supplied on the Eagle CD Rom Install the following program lt EAGLECD gt EDRE APPS PC 14B pci14b exe Run it to test all features on your board Accessories The PCI14 does have a wide variety of accessories that it can be connected too See the Eagle Technology catalog for more information Eagle Technology Copy
29. right 2001 9 PCI 14 Series User Manual Eagle Technology Data Acguisition 3 Interconnections The PCI14 has got one external connector that includes both digital VO and counter signals All connections are made through this connector situated on the cards bracket External Connectors The PCI14 has a SCSI female centronics 68 way connector As part of the accessories a cable and adapter can be ordered Pin Assignments The table below shows the pin assignments for the PCl14 DI10 DIT2 Di14 DI16 DI18 DI20 DI22 DI24 DGND CNTRO_CLK CNTRO_GATE CNTR1_CLK CNTR1 GATE CNTR2 CLK CNTR2 GATE CNTR3 CLK CNTR3 GATE CNTR4 CLK CNTR4 GATE CNTR5 CLK CNTR5 GATE DGND DGND DOI CNTRO TC DO2 CNTR1 TC Eagle Technology Copyright 2001 10 PCI 14 Series User Manual Eagle Technology Data Acguisition DO3 CNTR2 TC DO4 CNTR3 TC DO5 CNTR4 TC DO6 CNTR5 TC DOT DO8 DO9 DO10 DO11 DO12 DO13 D014 D015 D016 D017 D018 D019 DO20 D021 D022 D023 D024 DGND DGND Table 3 1 External Connector SCSI 68F CENT Signal Definitions This sections deal with all the signals abbreviations Description DI1 24 Digital Inputs DO1 24 Digital outputs CNTRx_CLK External clock lines CNTRx_GATE External gate lines TV 5V power supply line DGND Digital ground Table 3 2 Signal definitions Digital Inputs The PCl14 has got 24 digital input lines See specification for input protection Please note when programming the PCI14 t
30. tended by any other company or individual outside the premises of Eagle Technology e That a qualified person configure and install the ETDAQD and damages caused to a device during installation shall make the warranty void and null e The warranty will not apply to conditions where the ETDAQD has been operated in a manner exceeding its specifications Eagle Technology South Africa does not take responsibility or liability of consequential damages project delays damaging of equipment or capital loss as a result of its products Eagle Technology South Africa holds the option and final decision to repair or replace any ETDAQD Proof of purchase must be supplied when requesting a repair Eagle Technology Copyright 2001 ii PCI 14 Series User Manual TABLE OF CONTENTS 1 INTRODUCTION Features Applications Key Specifications Software Support Contact Details 2 INSTALLATION Package Hardware Installation Software Installation Windows 98 2000 ME Post installation Windows NT Testing your board Accessories 3 INTERCONNECTIONS External Connectors Pin Assignments Signal Definitions Digital Inputs Digital Outputs Counters 4 FUNCTIONAL OVERVIEW Device Address Map Counter Mode Register 2 0 Counter Count Register 23 0 Eagle Technology Data Acduisition Ge VO oo PR 10 10 10 11 11 11 12 13 13 14 14 Eagle Technology Copyright 2001 PCI 14 Series User Manual

Download Pdf Manuals

image

Related Search

Related Contents

パナクリア®MMP−3「ラテックス」  LSU 110 / 32 Local Signalization Unit User manual  Bedienungsanleitung  Operational Manual  Bull 7 Burner Premium Cart    ES-210MXBLU  Videoregistratori Digitali Serie VG600 MANUALE TECNICO  Zelmer FP1100  

Copyright © All rights reserved.
Failed to retrieve file